Home / Function/ addIfCondition() — vue Function Reference

addIfCondition() — vue Function Reference

Architecture documentation for the addIfCondition() function in index.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  b4c1389a_2c57_28d1_1826_0c31a4a17339["addIfCondition()"]
  101d3d34_ac07_228f_62b9_5d5ac4a0ea2e["index.ts"]
  b4c1389a_2c57_28d1_1826_0c31a4a17339 -->|defined in| 101d3d34_ac07_228f_62b9_5d5ac4a0ea2e
  19a26691_f7c4_e2d6_e9ed_59c6aff144df["parse()"]
  19a26691_f7c4_e2d6_e9ed_59c6aff144df -->|calls| b4c1389a_2c57_28d1_1826_0c31a4a17339
  bb1c0225_c589_5526_ef8c_1c9daa8f8ccd["processIf()"]
  bb1c0225_c589_5526_ef8c_1c9daa8f8ccd -->|calls| b4c1389a_2c57_28d1_1826_0c31a4a17339
  c884999e_bd3e_83b2_f046_49d3a385e621["processIfConditions()"]
  c884999e_bd3e_83b2_f046_49d3a385e621 -->|calls| b4c1389a_2c57_28d1_1826_0c31a4a17339
  style b4c1389a_2c57_28d1_1826_0c31a4a17339 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/parser/index.ts lines 601–606

export function addIfCondition(el: ASTElement, condition: ASTIfCondition) {
  if (!el.ifConditions) {
    el.ifConditions = []
  }
  el.ifConditions.push(condition)
}

Domain

Subdomains

Frequently Asked Questions

What does addIfCondition() do?
addIfCondition() is a function in the vue codebase, defined in src/compiler/parser/index.ts.
Where is addIfCondition() defined?
addIfCondition() is defined in src/compiler/parser/index.ts at line 601.
What calls addIfCondition()?
addIfCondition() is called by 3 function(s): parse, processIf, processIfConditions.

Analyze Your Own Codebase

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

Try Supermodel Free