new() — tailwindcss Function Reference
Architecture documentation for the new() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD fc9cb72c_75d6_6080_97ee_d75864020703["new()"] 220d6d8d_14c9_3b64_e1b2_32087c764f91["init_tracing()"] fc9cb72c_75d6_6080_97ee_d75864020703 -->|calls| 220d6d8d_14c9_3b64_e1b2_32087c764f91 266d284d_60ce_666f_ec28_c6df4f10b41b["public_source_entries_to_private_source_entries()"] fc9cb72c_75d6_6080_97ee_d75864020703 -->|calls| 266d284d_60ce_666f_ec28_c6df4f10b41b a24547bd_a4d8_c969_9693_3649cf9918a1["iter()"] fc9cb72c_75d6_6080_97ee_d75864020703 -->|calls| a24547bd_a4d8_c969_9693_3649cf9918a1 0f058516_1b91_62d1_ca81_aef8b98e4c52["create_walker()"] fc9cb72c_75d6_6080_97ee_d75864020703 -->|calls| 0f058516_1b91_62d1_ca81_aef8b98e4c52 style fc9cb72c_75d6_6080_97ee_d75864020703 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
Source
Frequently Asked Questions
What does new() do?
new() is a function in the tailwindcss codebase.
What does new() call?
new() calls 4 function(s): create_walker, init_tracing, iter, public_source_entries_to_private_source_entries.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free