genIf() — vue Function Reference
Architecture documentation for the genIf() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 539756f9_3a11_1e1c_313e_d779ff83093a["genIf()"] 6a18399e_553e_fef8_6a39_746f79f94bd2["index.ts"] 539756f9_3a11_1e1c_313e_d779ff83093a -->|defined in| 6a18399e_553e_fef8_6a39_746f79f94bd2 009d7fc7_09cb_184e_e93c_1f468ff505c0["genElement()"] 009d7fc7_09cb_184e_e93c_1f468ff505c0 -->|calls| 539756f9_3a11_1e1c_313e_d779ff83093a f9b375f7_0463_ff1f_5be6_7e356b4bded3["genOnce()"] f9b375f7_0463_ff1f_5be6_7e356b4bded3 -->|calls| 539756f9_3a11_1e1c_313e_d779ff83093a db876b7b_004a_9015_7afa_993985df7520["genScopedSlot()"] db876b7b_004a_9015_7afa_993985df7520 -->|calls| 539756f9_3a11_1e1c_313e_d779ff83093a 86c7d981_30e6_c29a_19f3_e7b26950b745["genIfConditions()"] 539756f9_3a11_1e1c_313e_d779ff83093a -->|calls| 86c7d981_30e6_c29a_19f3_e7b26950b745 style 539756f9_3a11_1e1c_313e_d779ff83093a 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
Defined In
Calls
Called By
Source
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