pathsToRoot() — tailwindcss Function Reference
Architecture documentation for the pathsToRoot() function in stylesheet.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD d6f62274_b443_7cf5_a1aa_cdeda7702f06["pathsToRoot()"] 07b8d21a_ae23_4142_b433_7694e785c6a7["analyzeImportPaths()"] 07b8d21a_ae23_4142_b433_7694e785c6a7 -->|calls| d6f62274_b443_7cf5_a1aa_cdeda7702f06 aa43ea12_7b1e_a0b6_b963_a4fcd9efa7c8["walkDepth()"] d6f62274_b443_7cf5_a1aa_cdeda7702f06 -->|calls| aa43ea12_7b1e_a0b6_b963_a4fcd9efa7c8 style d6f62274_b443_7cf5_a1aa_cdeda7702f06 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.
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