pathsToRoot() — tailwindcss Function Reference
Architecture documentation for the pathsToRoot() function in stylesheet.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD e0e4bc64_eafc_ed6c_bc8e_0da0dbd6dc2a["pathsToRoot()"] b9897393_3e36_7806_d172_b9debcd215f6["Stylesheet"] e0e4bc64_eafc_ed6c_bc8e_0da0dbd6dc2a -->|defined in| b9897393_3e36_7806_d172_b9debcd215f6 65bf5d7b_4133_6a0b_291b_ac92d67c696b["analyzeImportPaths()"] 65bf5d7b_4133_6a0b_291b_ac92d67c696b -->|calls| e0e4bc64_eafc_ed6c_bc8e_0da0dbd6dc2a 4d62cb69_cfb9_403f_9195_e15fea033042["walkDepth()"] e0e4bc64_eafc_ed6c_bc8e_0da0dbd6dc2a -->|calls| 4d62cb69_cfb9_403f_9195_e15fea033042 style e0e4bc64_eafc_ed6c_bc8e_0da0dbd6dc2a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/stylesheet.ts lines 190–200
*pathsToRoot(): Iterable<StylesheetConnection[]> {
for (let { item, path } of walkDepth(this, (sheet) => sheet.parents)) {
// Skip over intermediate stylesheets since all paths from a leaf to a
// root will encompass all possible intermediate stylesheet paths.
if (item.parents.size > 0) {
continue
}
yield path
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does pathsToRoot() do?
pathsToRoot() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/stylesheet.ts.
Where is pathsToRoot() defined?
pathsToRoot() is defined in packages/@tailwindcss-upgrade/src/stylesheet.ts at line 190.
What does pathsToRoot() call?
pathsToRoot() calls 1 function(s): walkDepth.
What calls pathsToRoot()?
pathsToRoot() is called by 1 function(s): analyzeImportPaths.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free