Home / Function/ addProp() — vue Function Reference

addProp() — vue Function Reference

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

Function typescript VueCore VDom calls 1 called by 1

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

src/compiler/helpers.ts lines 20–31

export function addProp(
  el: ASTElement,
  name: string,
  value: string,
  range?: Range,
  dynamic?: boolean
) {
  ;(el.props || (el.props = [])).push(
    rangeSetItem({ name, value, dynamic }, range)
  )
  el.plain = false
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does addProp() do?
addProp() is a function in the vue codebase, defined in src/compiler/helpers.ts.
Where is addProp() defined?
addProp() is defined in src/compiler/helpers.ts at line 20.
What does addProp() call?
addProp() calls 1 function(s): rangeSetItem.
What calls addProp()?
addProp() 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