Home / Function/ pathsToRoot() — tailwindcss Function Reference

pathsToRoot() — tailwindcss Function Reference

Architecture documentation for the pathsToRoot() function in stylesheet.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  167bc2f5_82ee_55d8_61ef_375469ed7094["pathsToRoot()"]
  b98b015a_6c16_4645_12a4_71f4d20efb4e["analyzeImportPaths()"]
  b98b015a_6c16_4645_12a4_71f4d20efb4e -->|calls| 167bc2f5_82ee_55d8_61ef_375469ed7094
  31ee4631_a38a_927a_7804_2a89ae33533a["walkDepth()"]
  167bc2f5_82ee_55d8_61ef_375469ed7094 -->|calls| 31ee4631_a38a_927a_7804_2a89ae33533a
  style 167bc2f5_82ee_55d8_61ef_375469ed7094 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

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