scan() — tailwindcss Function Reference
Architecture documentation for the scan() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD b6156d89_15ec_7ff3_0888_52940c8f752e["scan()"] b82a42d6_b7d3_c6d2_1e14_451f8382da81["mod.rs"] b6156d89_15ec_7ff3_0888_52940c8f752e -->|defined in| b82a42d6_b7d3_c6d2_1e14_451f8382da81 f04fc7f4_b2ad_75cf_e7ec_891de17532e6["scan_sources()"] b6156d89_15ec_7ff3_0888_52940c8f752e -->|calls| f04fc7f4_b2ad_75cf_e7ec_891de17532e6 a3631bf8_302f_3c65_1542_da5537cb94cb["extract_candidates()"] b6156d89_15ec_7ff3_0888_52940c8f752e -->|calls| a3631bf8_302f_3c65_1542_da5537cb94cb style b6156d89_15ec_7ff3_0888_52940c8f752e 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
Defined In
Source
Frequently Asked Questions
What does scan() do?
scan() is a function in the tailwindcss codebase, defined in crates/oxide/src/scanner/mod.rs.
Where is scan() defined?
scan() is defined in crates/oxide/src/scanner/mod.rs at line 181.
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