Home / Function/ max_depth() — tailwindcss Function Reference

max_depth() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4ad2677e_56c0_f1a2_7b12_5382c0527d1c["max_depth()"]
  428176d2_ded6_24a9_58be_fc5046e7235c["max_depth()"]
  428176d2_ded6_24a9_58be_fc5046e7235c -->|calls| 4ad2677e_56c0_f1a2_7b12_5382c0527d1c
  9d894c7c_30e0_c74a_cfb3_a68f088d0048["build()"]
  9d894c7c_30e0_c74a_cfb3_a68f088d0048 -->|calls| 4ad2677e_56c0_f1a2_7b12_5382c0527d1c
  7aa6c94c_9bb2_b710_8193_8ab9ba9d0779["min_depth()"]
  7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 -->|calls| 4ad2677e_56c0_f1a2_7b12_5382c0527d1c
  428176d2_ded6_24a9_58be_fc5046e7235c["max_depth()"]
  4ad2677e_56c0_f1a2_7b12_5382c0527d1c -->|calls| 428176d2_ded6_24a9_58be_fc5046e7235c
  style 4ad2677e_56c0_f1a2_7b12_5382c0527d1c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 652–658

    pub fn max_depth(&mut self, depth: Option<usize>) -> &mut WalkBuilder {
        self.max_depth = depth;
        if self.min_depth.is_some() && self.max_depth.is_some() && self.max_depth < self.min_depth {
            self.max_depth = self.min_depth;
        }
        self
    }

Subdomains

Calls

Frequently Asked Questions

What does max_depth() do?
max_depth() is a function in the tailwindcss codebase.
What does max_depth() call?
max_depth() calls 1 function(s): max_depth.
What calls max_depth()?
max_depth() is called by 3 function(s): build, max_depth, min_depth.

Analyze Your Own Codebase

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

Try Supermodel Free