new() — tailwindcss Function Reference
Architecture documentation for the new() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD ed86e033_a10d_455e_d355_a5c9ba54152d["new()"] b82a42d6_b7d3_c6d2_1e14_451f8382da81["mod.rs"] ed86e033_a10d_455e_d355_a5c9ba54152d -->|defined in| b82a42d6_b7d3_c6d2_1e14_451f8382da81 31b87bd8_91a3_da66_ab41_589f13d8021f["init_tracing()"] ed86e033_a10d_455e_d355_a5c9ba54152d -->|calls| 31b87bd8_91a3_da66_ab41_589f13d8021f e96b10b1_bcb7_2953_0717_4d9e2a94d8fc["create_walker()"] ed86e033_a10d_455e_d355_a5c9ba54152d -->|calls| e96b10b1_bcb7_2953_0717_4d9e2a94d8fc style ed86e033_a10d_455e_d355_a5c9ba54152d 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