Home / Function/ add_parents() — tailwindcss Function Reference

add_parents() — tailwindcss Function Reference

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

Function rust Oxide Scanner calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  b31162da_3a9c_3d21_bcce_888d5bb5105b["add_parents()"]
  8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"]
  b31162da_3a9c_3d21_bcce_888d5bb5105b -->|defined in| 8031325b_dcd2_8c49_70e7_46191ce03a79
  73051fe0_7961_eb6e_45e8_f6342250c845["next()"]
  73051fe0_7961_eb6e_45e8_f6342250c845 -->|calls| b31162da_3a9c_3d21_bcce_888d5bb5105b
  04e8d630_da3f_f0a4_57a8_0bd018070b1a["run_one()"]
  04e8d630_da3f_f0a4_57a8_0bd018070b1a -->|calls| b31162da_3a9c_3d21_bcce_888d5bb5105b
  81a81328_f9d1_4939_ace7_0cf7fd2523a1["depth()"]
  b31162da_3a9c_3d21_bcce_888d5bb5105b -->|calls| 81a81328_f9d1_4939_ace7_0cf7fd2523a1
  934d114d_964b_414a_2b41_82e8174b7c3d["path()"]
  b31162da_3a9c_3d21_bcce_888d5bb5105b -->|calls| 934d114d_964b_414a_2b41_82e8174b7c3d
  style b31162da_3a9c_3d21_bcce_888d5bb5105b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 1470–1479

    fn add_parents(&mut self) -> Option<Error> {
        if self.dent.depth() > 0 {
            return None;
        }
        // At depth 0, the path of this entry is a root path, so we can
        // use it directly to add parent ignore rules.
        let (ig, err) = self.ignore.add_parents(self.dent.path());
        self.ignore = ig;
        err
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does add_parents() do?
add_parents() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is add_parents() defined?
add_parents() is defined in crates/ignore/src/walk.rs at line 1470.
What does add_parents() call?
add_parents() calls 2 function(s): depth, path.
What calls add_parents()?
add_parents() is called by 2 function(s): next, run_one.

Analyze Your Own Codebase

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

Try Supermodel Free