walkDepth() — tailwindcss Function Reference
Architecture documentation for the walkDepth() function in stylesheet.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 31ee4631_a38a_927a_7804_2a89ae33533a["walkDepth()"] 04b6a09a_a92d_370f_8fa1_2b14d30f652b["ancestors()"] 04b6a09a_a92d_370f_8fa1_2b14d30f652b -->|calls| 31ee4631_a38a_927a_7804_2a89ae33533a fdaa5424_7367_08d0_384a_eea0e0b3d12a["descendants()"] fdaa5424_7367_08d0_384a_eea0e0b3d12a -->|calls| 31ee4631_a38a_927a_7804_2a89ae33533a 34c49ae1_c1ff_8724_409c_7cb573bce07b["layers()"] 34c49ae1_c1ff_8724_409c_7cb573bce07b -->|calls| 31ee4631_a38a_927a_7804_2a89ae33533a 167bc2f5_82ee_55d8_61ef_375469ed7094["pathsToRoot()"] 167bc2f5_82ee_55d8_61ef_375469ed7094 -->|calls| 31ee4631_a38a_927a_7804_2a89ae33533a style 31ee4631_a38a_927a_7804_2a89ae33533a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/stylesheet.ts lines 300–314
function* walkDepth(
value: Stylesheet,
connections: (value: Stylesheet) => Iterable<StylesheetConnection>,
path: StylesheetConnection[] = [],
): Iterable<{ item: Stylesheet; path: StylesheetConnection[] }> {
for (let connection of connections(value)) {
let newPath = [...path, connection]
yield* walkDepth(connection.item, connections, newPath)
yield {
item: connection.item,
path: newPath,
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does walkDepth() do?
walkDepth() is a function in the tailwindcss codebase.
What calls walkDepth()?
walkDepth() is called by 4 function(s): ancestors, descendants, layers, pathsToRoot.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free