Home / Function/ genIf() — vue Function Reference

genIf() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e9890815_0d7c_a227_7123_bb7fe2649918["genIf()"]
  54260741_ae9d_a025_86de_47c513f5f82d["index.ts"]
  e9890815_0d7c_a227_7123_bb7fe2649918 -->|defined in| 54260741_ae9d_a025_86de_47c513f5f82d
  075d1f95_9965_89f4_3c01_f944fee6b553["genElement()"]
  075d1f95_9965_89f4_3c01_f944fee6b553 -->|calls| e9890815_0d7c_a227_7123_bb7fe2649918
  e6ae3747_8265_7dc5_77d6_fef4ab96c493["genOnce()"]
  e6ae3747_8265_7dc5_77d6_fef4ab96c493 -->|calls| e9890815_0d7c_a227_7123_bb7fe2649918
  27804826_1536_d9f6_16a0_0b84b98233f7["genScopedSlot()"]
  27804826_1536_d9f6_16a0_0b84b98233f7 -->|calls| e9890815_0d7c_a227_7123_bb7fe2649918
  016cc772_3198_eb71_716e_46e8192d13cc["genIfConditions()"]
  e9890815_0d7c_a227_7123_bb7fe2649918 -->|calls| 016cc772_3198_eb71_716e_46e8192d13cc
  style e9890815_0d7c_a227_7123_bb7fe2649918 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/codegen/index.ts lines 202–210

export function genIf(
  el: any,
  state: CodegenState,
  altGen?: Function,
  altEmpty?: string
): string {
  el.ifProcessed = true // avoid recursion
  return genIfConditions(el.ifConditions.slice(), state, altGen, altEmpty)
}

Domain

Subdomains

Frequently Asked Questions

What does genIf() do?
genIf() is a function in the vue codebase, defined in src/compiler/codegen/index.ts.
Where is genIf() defined?
genIf() is defined in src/compiler/codegen/index.ts at line 202.
What does genIf() call?
genIf() calls 1 function(s): genIfConditions.
What calls genIf()?
genIf() is called by 3 function(s): genElement, genOnce, genScopedSlot.

Analyze Your Own Codebase

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

Try Supermodel Free