Home / Function/ addProp() — vue Function Reference

addProp() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fb22e4d8_3c91_63a7_ee9d_526d8df61c58["addProp()"]
  59b7cd33_3172_bd71_66da_0b9508449054["helpers.ts"]
  fb22e4d8_3c91_63a7_ee9d_526d8df61c58 -->|defined in| 59b7cd33_3172_bd71_66da_0b9508449054
  94cd3ed6_4fec_eddb_c90a_1c38249e5b02["processAttrs()"]
  94cd3ed6_4fec_eddb_c90a_1c38249e5b02 -->|calls| fb22e4d8_3c91_63a7_ee9d_526d8df61c58
  b8300ea8_d2a4_8ee3_27f2_4fb5b2125adb["rangeSetItem()"]
  fb22e4d8_3c91_63a7_ee9d_526d8df61c58 -->|calls| b8300ea8_d2a4_8ee3_27f2_4fb5b2125adb
  style fb22e4d8_3c91_63a7_ee9d_526d8df61c58 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