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.

Entity Profile

Dependency Diagram

graph TD
  03862f32_0dc6_e03e_d1bf_0af2da8f3748["walk_collect()"]
  03f45cf3_87f6_e91f_bef8_2f9380aab005["assert_paths()"]
  03f45cf3_87f6_e91f_bef8_2f9380aab005 -->|calls| 03862f32_0dc6_e03e_d1bf_0af2da8f3748
  e16c7a27_1865_9055_554b_f50df737dd8e["push()"]
  03862f32_0dc6_e03e_d1bf_0af2da8f3748 -->|calls| e16c7a27_1865_9055_554b_f50df737dd8e
  a9a36b56_7e94_7ba9_cb03_f0a329430fd9["normal_path()"]
  03862f32_0dc6_e03e_d1bf_0af2da8f3748 -->|calls| a9a36b56_7e94_7ba9_cb03_f0a329430fd9
  9d894c7c_30e0_c74a_cfb3_a68f088d0048["build()"]
  03862f32_0dc6_e03e_d1bf_0af2da8f3748 -->|calls| 9d894c7c_30e0_c74a_cfb3_a68f088d0048
  5a41a98a_774e_c950_dcbd_cc7fe1960b89["path()"]
  03862f32_0dc6_e03e_d1bf_0af2da8f3748 -->|calls| 5a41a98a_774e_c950_dcbd_cc7fe1960b89
  style 03862f32_0dc6_e03e_d1bf_0af2da8f3748 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
    }

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