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
  b3bea8bf_aced_dc7a_9ad8_9a35f737e64e["pathsToRoot()"]
  c890fa7b_6e17_4e5d_74bf_b797d0f757b8["Stylesheet"]
  b3bea8bf_aced_dc7a_9ad8_9a35f737e64e -->|defined in| c890fa7b_6e17_4e5d_74bf_b797d0f757b8
  097a5886_73fc_f3e3_8de2_3a76f018c380["analyzeImportPaths()"]
  097a5886_73fc_f3e3_8de2_3a76f018c380 -->|calls| b3bea8bf_aced_dc7a_9ad8_9a35f737e64e
  e6db46b5_0cdf_2502_9206_17333e8fd473["walkDepth()"]
  b3bea8bf_aced_dc7a_9ad8_9a35f737e64e -->|calls| e6db46b5_0cdf_2502_9206_17333e8fd473
  style b3bea8bf_aced_dc7a_9ad8_9a35f737e64e 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
    }
  }

Subdomains

Calls

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