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
  a43ff6ef_b3eb_ea6c_cf0e_7fea2e444821["addIfCondition()"]
  bbf88914_62b5_839d_3cfb_85a00fd1d67b["parse()"]
  bbf88914_62b5_839d_3cfb_85a00fd1d67b -->|calls| a43ff6ef_b3eb_ea6c_cf0e_7fea2e444821
  b2049aaa_7861_a0af_b6db_bf0667912dfe["processIf()"]
  b2049aaa_7861_a0af_b6db_bf0667912dfe -->|calls| a43ff6ef_b3eb_ea6c_cf0e_7fea2e444821
  f819e82d_0c73_4842_095d_5d0adae6ddd9["processIfConditions()"]
  f819e82d_0c73_4842_095d_5d0adae6ddd9 -->|calls| a43ff6ef_b3eb_ea6c_cf0e_7fea2e444821
  5266d1ae_e943_1c9a_9925_9c539b8a7a9b["preTransformNode()"]
  5266d1ae_e943_1c9a_9925_9c539b8a7a9b -->|calls| a43ff6ef_b3eb_ea6c_cf0e_7fea2e444821
  style a43ff6ef_b3eb_ea6c_cf0e_7fea2e444821 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.
What calls addIfCondition()?
addIfCondition() is called by 4 function(s): parse, preTransformNode, processIf, processIfConditions.

Analyze Your Own Codebase

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

Try Supermodel Free