Home / Function/ hasCustomDirective() — vue Function Reference

hasCustomDirective() — vue Function Reference

Architecture documentation for the hasCustomDirective() function in optimizer.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  ec68760d_b5c3_4255_df5a_aca2470ac013["hasCustomDirective()"]
  bdccaa53_ff26_818d_5799_6f5b50228230["walk()"]
  bdccaa53_ff26_818d_5799_6f5b50228230 -->|calls| ec68760d_b5c3_4255_df5a_aca2470ac013
  style ec68760d_b5c3_4255_df5a_aca2470ac013 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
}

Subdomains

Called By

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