isDirectChildOfTemplateFor() — vue Function Reference
Architecture documentation for the isDirectChildOfTemplateFor() function in optimizer.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD b31d34d2_5aa8_8102_930f_7c61f1423662["isDirectChildOfTemplateFor()"] 1d58f861_680d_2954_a51b_ed19382bb3ee["isStatic()"] 1d58f861_680d_2954_a51b_ed19382bb3ee -->|calls| b31d34d2_5aa8_8102_930f_7c61f1423662 style b31d34d2_5aa8_8102_930f_7c61f1423662 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/optimizer.ts lines 124–135
function isDirectChildOfTemplateFor(node: ASTElement): boolean {
while (node.parent) {
node = node.parent
if (node.tag !== 'template') {
return false
}
if (node.for) {
return true
}
}
return false
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isDirectChildOfTemplateFor() do?
isDirectChildOfTemplateFor() is a function in the vue codebase.
What calls isDirectChildOfTemplateFor()?
isDirectChildOfTemplateFor() is called by 1 function(s): isStatic.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free