next() — tailwindcss Function Reference
Architecture documentation for the next() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD ca21c5b0_9a8b_3e9e_e91a_c6153afa2996["next()"] 3e24cbbb_d0d2_be5b_ec36_1f076cc42d7f["next()"] 3e24cbbb_d0d2_be5b_ec36_1f076cc42d7f -->|calls| ca21c5b0_9a8b_3e9e_e91a_c6153afa2996 3e24cbbb_d0d2_be5b_ec36_1f076cc42d7f["next()"] ca21c5b0_9a8b_3e9e_e91a_c6153afa2996 -->|calls| 3e24cbbb_d0d2_be5b_ec36_1f076cc42d7f 63344b28_9b99_e315_b3dc_2e05147fb824["walkdir_is_dir()"] ca21c5b0_9a8b_3e9e_e91a_c6153afa2996 -->|calls| 63344b28_9b99_e315_b3dc_2e05147fb824 8dcded00_73b5_510f_35e9_d6a8a17b3f61["depth()"] ca21c5b0_9a8b_3e9e_e91a_c6153afa2996 -->|calls| 8dcded00_73b5_510f_35e9_d6a8a17b3f61 style ca21c5b0_9a8b_3e9e_e91a_c6153afa2996 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 1190–1215
fn next(&mut self) -> Option<walkdir::Result<WalkEvent>> {
let dent = self.next.take().or_else(|| self.it.next());
let depth = match dent {
None => 0,
Some(Ok(ref dent)) => dent.depth(),
Some(Err(ref err)) => err.depth(),
};
if depth < self.depth {
self.depth -= 1;
self.next = dent;
return Some(Ok(WalkEvent::Exit));
}
self.depth = depth;
match dent {
None => None,
Some(Err(err)) => Some(Err(err)),
Some(Ok(dent)) => {
if walkdir_is_dir(&dent) {
self.depth += 1;
Some(Ok(WalkEvent::Dir(dent)))
} else {
Some(Ok(WalkEvent::File(dent)))
}
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does next() do?
next() is a function in the tailwindcss codebase.
What does next() call?
next() calls 3 function(s): depth, next, walkdir_is_dir.
What calls next()?
next() is called by 1 function(s): next.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free