isStatic() — vue Function Reference
Architecture documentation for the isStatic() function in optimizer.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD e4e07c76_033f_8a05_db91_26039099f986["isStatic()"] 62546a34_f736_9139_cfec_7d596f17642d["optimizer.ts"] e4e07c76_033f_8a05_db91_26039099f986 -->|defined in| 62546a34_f736_9139_cfec_7d596f17642d ea97fb1f_8393_c30f_027b_052e24cd5a51["markStatic()"] ea97fb1f_8393_c30f_027b_052e24cd5a51 -->|calls| e4e07c76_033f_8a05_db91_26039099f986 f18d3e4d_ffec_614c_b9ca_9c12ed6ff5d1["isDirectChildOfTemplateFor()"] e4e07c76_033f_8a05_db91_26039099f986 -->|calls| f18d3e4d_ffec_614c_b9ca_9c12ed6ff5d1 style e4e07c76_033f_8a05_db91_26039099f986 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/optimizer.ts lines 103–122
function isStatic(node: ASTNode): boolean {
if (node.type === 2) {
// expression
return false
}
if (node.type === 3) {
// text
return true
}
return !!(
node.pre ||
(!node.hasBindings && // no dynamic bindings
!node.if &&
!node.for && // not v-if or v-for or v-else
!isBuiltInTag(node.tag) && // not a built-in
isPlatformReservedTag(node.tag) && // not a component
!isDirectChildOfTemplateFor(node) &&
Object.keys(node).every(isStaticKey))
)
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isStatic() do?
isStatic() is a function in the vue codebase, defined in src/compiler/optimizer.ts.
Where is isStatic() defined?
isStatic() is defined in src/compiler/optimizer.ts at line 103.
What does isStatic() call?
isStatic() calls 1 function(s): isDirectChildOfTemplateFor.
What calls isStatic()?
isStatic() is called by 1 function(s): markStatic.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free