Home / Function/ walk_collect() — tailwindcss Function Reference

walk_collect() — tailwindcss Function Reference

Architecture documentation for the walk_collect() function in walk.rs from the tailwindcss codebase.

Function rust RustCore FileScanner calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  6d03a6f0_6419_e6c7_760d_e2673e72859e["walk_collect()"]
  5fe9aa4d_d793_b1a2_d187_4991d92c8d6e["assert_paths()"]
  5fe9aa4d_d793_b1a2_d187_4991d92c8d6e -->|calls| 6d03a6f0_6419_e6c7_760d_e2673e72859e
  2fcdc00d_9979_79c1_5408_d697c67c1905["push()"]
  6d03a6f0_6419_e6c7_760d_e2673e72859e -->|calls| 2fcdc00d_9979_79c1_5408_d697c67c1905
  9d066ad9_ea6a_6b73_8a07_beba8961e765["normal_path()"]
  6d03a6f0_6419_e6c7_760d_e2673e72859e -->|calls| 9d066ad9_ea6a_6b73_8a07_beba8961e765
  d723fee5_6735_de38_e918_7afbac537f66["build()"]
  6d03a6f0_6419_e6c7_760d_e2673e72859e -->|calls| d723fee5_6735_de38_e918_7afbac537f66
  afe9c39f_a243_0367_bdf6_a556fadd6383["path()"]
  6d03a6f0_6419_e6c7_760d_e2673e72859e -->|calls| afe9c39f_a243_0367_bdf6_a556fadd6383
  style 6d03a6f0_6419_e6c7_760d_e2673e72859e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 2075–2090

    fn walk_collect(prefix: &Path, builder: &WalkBuilder) -> Vec<String> {
        let mut paths = vec![];
        for result in builder.build() {
            let dent = match result {
                Err(_) => continue,
                Ok(dent) => dent,
            };
            let path = dent.path().strip_prefix(prefix).unwrap();
            if path.as_os_str().is_empty() {
                continue;
            }
            paths.push(normal_path(path.to_str().unwrap()));
        }
        paths.sort();
        paths
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does walk_collect() do?
walk_collect() is a function in the tailwindcss codebase.
What does walk_collect() call?
walk_collect() calls 4 function(s): build, normal_path, path, push.
What calls walk_collect()?
walk_collect() is called by 1 function(s): assert_paths.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free