scan() — tailwindcss Function Reference
Architecture documentation for the scan() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD f393909c_34c9_43c4_59ec_fe5fc5e381be["scan()"] 6fc6e572_e476_ad9b_5f94_76ef88bfc436["scan_sources()"] f393909c_34c9_43c4_59ec_fe5fc5e381be -->|calls| 6fc6e572_e476_ad9b_5f94_76ef88bfc436 e14107a2_1bdc_7eeb_cfd3_5f70e1726e22["extract_candidates()"] f393909c_34c9_43c4_59ec_fe5fc5e381be -->|calls| e14107a2_1bdc_7eeb_cfd3_5f70e1726e22 style f393909c_34c9_43c4_59ec_fe5fc5e381be fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/scanner/mod.rs lines 181–197
pub fn scan(&mut self) -> Vec<String> {
self.scan_sources();
// TODO: performance improvement, bail early if we don't have any changed content
// if self.changed_content.is_empty() {
// return vec![];
// }
let _new_candidates = self.extract_candidates();
// Make sure we have a sorted list of candidates
let mut candidates = self.candidates.iter().cloned().collect::<Vec<_>>();
candidates.par_sort_unstable();
// Return all candidates instead of only the new ones
candidates
}
Domain
Subdomains
Source
Frequently Asked Questions
What does scan() do?
scan() is a function in the tailwindcss codebase.
What does scan() call?
scan() calls 2 function(s): extract_candidates, scan_sources.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free