walkDepth() — tailwindcss Function Reference
Architecture documentation for the walkDepth() function in stylesheet.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 4d62cb69_cfb9_403f_9195_e15fea033042["walkDepth()"] bc267e18_3e03_cc17_3da0_cbc39f148f44["stylesheet.ts"] 4d62cb69_cfb9_403f_9195_e15fea033042 -->|defined in| bc267e18_3e03_cc17_3da0_cbc39f148f44 9f5a8c9f_6828_fe75_f38e_72ee4cf3c428["ancestors()"] 9f5a8c9f_6828_fe75_f38e_72ee4cf3c428 -->|calls| 4d62cb69_cfb9_403f_9195_e15fea033042 465fb269_beb8_5187_e963_cff3f69bb398["descendants()"] 465fb269_beb8_5187_e963_cff3f69bb398 -->|calls| 4d62cb69_cfb9_403f_9195_e15fea033042 283bbe03_c84a_2fd0_18b3_45f5bfcaa273["layers()"] 283bbe03_c84a_2fd0_18b3_45f5bfcaa273 -->|calls| 4d62cb69_cfb9_403f_9195_e15fea033042 e0e4bc64_eafc_ed6c_bc8e_0da0dbd6dc2a["pathsToRoot()"] e0e4bc64_eafc_ed6c_bc8e_0da0dbd6dc2a -->|calls| 4d62cb69_cfb9_403f_9195_e15fea033042 style 4d62cb69_cfb9_403f_9195_e15fea033042 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, defined in packages/@tailwindcss-upgrade/src/stylesheet.ts.
Where is walkDepth() defined?
walkDepth() is defined in packages/@tailwindcss-upgrade/src/stylesheet.ts at line 300.
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