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
  06d76426_7f3d_6a2a_836d_edc8e5af7f2c["hasCustomDirective()"]
  b7ef6faa_d112_ca70_98b8_d353bda5bfe0["optimizer.ts"]
  06d76426_7f3d_6a2a_836d_edc8e5af7f2c -->|defined in| b7ef6faa_d112_ca70_98b8_d353bda5bfe0
  e0234097_5b82_4120_05bc_3e7af5090c92["walk()"]
  e0234097_5b82_4120_05bc_3e7af5090c92 -->|calls| 06d76426_7f3d_6a2a_836d_edc8e5af7f2c
  style 06d76426_7f3d_6a2a_836d_edc8e5af7f2c 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