getAppliedNodeStack() — tailwindcss Function Reference
Architecture documentation for the getAppliedNodeStack() function in migrate-variant-order.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1["getAppliedNodeStack()"] 1490304f_c9fd_75da_db3f_0c12d428c646["migrate-variant-order.ts"] 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1 -->|defined in| 1490304f_c9fd_75da_db3f_0c12d428c646 215be44d_0a2d_decd_9cd9_3660e45dda28["isAtRuleVariant()"] 215be44d_0a2d_decd_9cd9_3660e45dda28 -->|calls| 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1 35bdfef4_ec01_e84b_794d_56bafb521d13["isCombinatorVariant()"] 35bdfef4_ec01_e84b_794d_56bafb521d13 -->|calls| 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1 4a69e7f1_11b8_a258_87f6_836ffe93411f["isEndOfSelectorPseudoElement()"] 4a69e7f1_11b8_a258_87f6_836ffe93411f -->|calls| 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1 4982d9ce_98d4_85d9_44af_7cc47b93c482["walk()"] 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1 -->|calls| 4982d9ce_98d4_85d9_44af_7cc47b93c482 style 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts lines 102–128
function getAppliedNodeStack(designSystem: DesignSystem, variant: Variant): AstNode[] {
let stack: AstNode[] = []
let ast = designSystem
.compileAstNodes({
kind: 'arbitrary',
property: 'color',
value: 'red',
modifier: null,
variants: [variant],
important: false,
raw: 'candidate',
})
.map((c) => c.node)
walk(ast, (node) => {
// Ignore the variant root class
if (node.kind === 'rule' && node.selector === '.candidate') {
return
}
// Ignore the dummy declaration
if (node.kind === 'declaration' && node.property === 'color' && node.value === 'red') {
return
}
stack.push(node)
})
return stack
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does getAppliedNodeStack() do?
getAppliedNodeStack() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts.
Where is getAppliedNodeStack() defined?
getAppliedNodeStack() is defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts at line 102.
What does getAppliedNodeStack() call?
getAppliedNodeStack() calls 1 function(s): walk.
What calls getAppliedNodeStack()?
getAppliedNodeStack() is called by 3 function(s): isAtRuleVariant, isCombinatorVariant, isEndOfSelectorPseudoElement.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free