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 2af942fd_2eae_beac_fd40_b974cc7ed770["getAppliedNodeStack()"] e3144eb9_0666_0bdb_e31d_1094b50abdd7["migrate-variant-order.ts"] 2af942fd_2eae_beac_fd40_b974cc7ed770 -->|defined in| e3144eb9_0666_0bdb_e31d_1094b50abdd7 7cecf5b5_1806_696f_2da0_f581e79d92cb["isAtRuleVariant()"] 7cecf5b5_1806_696f_2da0_f581e79d92cb -->|calls| 2af942fd_2eae_beac_fd40_b974cc7ed770 18e32168_6dcd_bcb0_ac5b_0ca6adcdf5c4["isCombinatorVariant()"] 18e32168_6dcd_bcb0_ac5b_0ca6adcdf5c4 -->|calls| 2af942fd_2eae_beac_fd40_b974cc7ed770 51d86fd3_bd8e_9cdd_7dd5_d8545f052117["isEndOfSelectorPseudoElement()"] 51d86fd3_bd8e_9cdd_7dd5_d8545f052117 -->|calls| 2af942fd_2eae_beac_fd40_b974cc7ed770 ed78da58_8727_ad98_120c_61f35cea357a["walk()"] 2af942fd_2eae_beac_fd40_b974cc7ed770 -->|calls| ed78da58_8727_ad98_120c_61f35cea357a style 2af942fd_2eae_beac_fd40_b974cc7ed770 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