hasCustomDirective() — vue Function Reference
Architecture documentation for the hasCustomDirective() function in optimizer.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD c8f2cd58_a404_e879_2524_b7cfffd27f9d["hasCustomDirective()"] d9b23739_d138_7c29_c34e_deb91beabbb7["walk()"] d9b23739_d138_7c29_c34e_deb91beabbb7 -->|calls| c8f2cd58_a404_e879_2524_b7cfffd27f9d style c8f2cd58_a404_e879_2524_b7cfffd27f9d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/server-renderer/src/optimizing-compiler/optimizer.ts lines 125–129
function hasCustomDirective(node: ASTNode): boolean {
return (node.type === 1 &&
node.directives &&
node.directives.some(d => !isBuiltInDir(d.name))) as any
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does hasCustomDirective() do?
hasCustomDirective() is a function in the vue codebase.
What calls hasCustomDirective()?
hasCustomDirective() is called by 1 function(s): walk.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free