genIf() — vue Function Reference
Architecture documentation for the genIf() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD e458f6c9_a80f_c2c4_a63b_541be2a8b2b9["genIf()"] c9c89a7e_a7ef_371a_0bb1_ccb05926e1f2["genSSRElement()"] c9c89a7e_a7ef_371a_0bb1_ccb05926e1f2 -->|calls| e458f6c9_a80f_c2c4_a63b_541be2a8b2b9 e2a158d6_845c_6930_8656_68576142a273["elementToSegments()"] e2a158d6_845c_6930_8656_68576142a273 -->|calls| e458f6c9_a80f_c2c4_a63b_541be2a8b2b9 4cfaef88_0bc8_30fc_0a01_09b4149fd58c["genElement()"] 4cfaef88_0bc8_30fc_0a01_09b4149fd58c -->|calls| e458f6c9_a80f_c2c4_a63b_541be2a8b2b9 baea1fd5_74ae_11db_8cec_d9ecde977f21["genOnce()"] baea1fd5_74ae_11db_8cec_d9ecde977f21 -->|calls| e458f6c9_a80f_c2c4_a63b_541be2a8b2b9 957c0d47_da61_bbd7_c2c0_6ec005373124["genScopedSlot()"] 957c0d47_da61_bbd7_c2c0_6ec005373124 -->|calls| e458f6c9_a80f_c2c4_a63b_541be2a8b2b9 df86dcf0_a271_3752_194d_d6d9e475ec59["genIfConditions()"] e458f6c9_a80f_c2c4_a63b_541be2a8b2b9 -->|calls| df86dcf0_a271_3752_194d_d6d9e475ec59 style e458f6c9_a80f_c2c4_a63b_541be2a8b2b9 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
Calls
Source
Frequently Asked Questions
What does genIf() do?
genIf() is a function in the vue codebase.
What does genIf() call?
genIf() calls 1 function(s): genIfConditions.
What calls genIf()?
genIf() is called by 5 function(s): elementToSegments, genElement, genOnce, genSSRElement, genScopedSlot.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free