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
  6a34b718_7a56_91a6_3d8b_857be35b39b2["hasCustomDirective()"]
  c246f9b9_73ff_c006_0f1d_57169c68facd["optimizer.ts"]
  6a34b718_7a56_91a6_3d8b_857be35b39b2 -->|defined in| c246f9b9_73ff_c006_0f1d_57169c68facd
  87c73aff_df9c_f5f2_d11d_030846e3e51a["walk()"]
  87c73aff_df9c_f5f2_d11d_030846e3e51a -->|calls| 6a34b718_7a56_91a6_3d8b_857be35b39b2
  style 6a34b718_7a56_91a6_3d8b_857be35b39b2 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, defined in packages/server-renderer/src/optimizing-compiler/optimizer.ts.
Where is hasCustomDirective() defined?
hasCustomDirective() is defined in packages/server-renderer/src/optimizing-compiler/optimizer.ts at line 125.
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