Home / Function/ walkDepth() — tailwindcss Function Reference

walkDepth() — tailwindcss Function Reference

Architecture documentation for the walkDepth() function in walk.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  8715b857_e3fa_5cb9_0f08_5bd585e387dd["walkDepth()"]
  8c8c71d8_c9b0_02ac_73ec_950510adcf7a["walk.ts"]
  8715b857_e3fa_5cb9_0f08_5bd585e387dd -->|defined in| 8c8c71d8_c9b0_02ac_73ec_950510adcf7a
  9456daf3_1cee_2ab1_7f06_8dc2cedc967a["migrateAtLayerUtilities()"]
  9456daf3_1cee_2ab1_7f06_8dc2cedc967a -->|calls| 8715b857_e3fa_5cb9_0f08_5bd585e387dd
  style 8715b857_e3fa_5cb9_0f08_5bd585e387dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/utils/walk.ts lines 40–45

export function walkDepth<T>(rule: Walkable<T>, cb: (rule: T) => void) {
  rule?.each?.((node) => {
    walkDepth(node as Walkable<T>, cb)
    cb(node)
  })
}

Subdomains

Frequently Asked Questions

What does walkDepth() do?
walkDepth() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/utils/walk.ts.
Where is walkDepth() defined?
walkDepth() is defined in packages/@tailwindcss-upgrade/src/utils/walk.ts at line 40.
What calls walkDepth()?
walkDepth() is called by 1 function(s): migrateAtLayerUtilities.

Analyze Your Own Codebase

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

Try Supermodel Free