Home / Function/ addDirective() — vue Function Reference

addDirective() — vue Function Reference

Architecture documentation for the addDirective() function in helpers.ts from the vue codebase.

Function typescript VueCore VDom calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  e0310396_cbb9_4116_648d_3af0bd606c42["addDirective()"]
  84ab3997_ca97_807e_f586_e8d0a26ded10["helpers.ts"]
  e0310396_cbb9_4116_648d_3af0bd606c42 -->|defined in| 84ab3997_ca97_807e_f586_e8d0a26ded10
  89ae2d84_ca61_4847_7313_0974c1948730["processAttrs()"]
  89ae2d84_ca61_4847_7313_0974c1948730 -->|calls| e0310396_cbb9_4116_648d_3af0bd606c42
  19b5d835_c11a_e46d_5221_d327574bc5ef["rangeSetItem()"]
  e0310396_cbb9_4116_648d_3af0bd606c42 -->|calls| 19b5d835_c11a_e46d_5221_d327574bc5ef
  style e0310396_cbb9_4116_648d_3af0bd606c42 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/helpers.ts lines 58–82

export function addDirective(
  el: ASTElement,
  name: string,
  rawName: string,
  value: string,
  arg?: string,
  isDynamicArg?: boolean,
  modifiers?: ASTModifiers,
  range?: Range
) {
  ;(el.directives || (el.directives = [])).push(
    rangeSetItem(
      {
        name,
        rawName,
        value,
        arg,
        isDynamicArg,
        modifiers
      },
      range
    )
  )
  el.plain = false
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does addDirective() do?
addDirective() is a function in the vue codebase, defined in src/compiler/helpers.ts.
Where is addDirective() defined?
addDirective() is defined in src/compiler/helpers.ts at line 58.
What does addDirective() call?
addDirective() calls 1 function(s): rangeSetItem.
What calls addDirective()?
addDirective() is called by 1 function(s): processAttrs.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free