new() — tailwindcss Function Reference
Architecture documentation for the new() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 911969ab_7e19_53fd_8262_b2a85d4506d3["new()"] d865d4fd_bb15_6d9a_a900_10e82a6856fb["mod.rs"] 911969ab_7e19_53fd_8262_b2a85d4506d3 -->|defined in| d865d4fd_bb15_6d9a_a900_10e82a6856fb 69523d21_4c10_d049_62a2_79cabdb89ab2["init_tracing()"] 911969ab_7e19_53fd_8262_b2a85d4506d3 -->|calls| 69523d21_4c10_d049_62a2_79cabdb89ab2 661ecb16_7e26_4565_42ab_15fa6ee9af64["create_walker()"] 911969ab_7e19_53fd_8262_b2a85d4506d3 -->|calls| 661ecb16_7e26_4565_42ab_15fa6ee9af64 style 911969ab_7e19_53fd_8262_b2a85d4506d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/scanner/mod.rs lines 155–179
pub fn new(sources: Vec<PublicSourceEntry>) -> Self {
init_tracing();
if *SHOULD_TRACE {
event!(tracing::Level::INFO, "Provided sources:");
for source in &sources {
event!(tracing::Level::INFO, "Source: {:?}", source);
}
}
let sources = Sources::new(public_source_entries_to_private_source_entries(sources));
if *SHOULD_TRACE {
event!(tracing::Level::INFO, "Optimized sources:");
for source in sources.iter() {
event!(tracing::Level::INFO, "Source: {:?}", source);
}
}
Self {
sources: sources.clone(),
walker: create_walker(sources),
..Default::default()
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does new() do?
new() is a function in the tailwindcss codebase, defined in crates/oxide/src/scanner/mod.rs.
Where is new() defined?
new() is defined in crates/oxide/src/scanner/mod.rs at line 155.
What does new() call?
new() calls 2 function(s): create_walker, init_tracing.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free