findPrevElement() — vue Function Reference
Architecture documentation for the findPrevElement() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 75e8c9e9_f8dc_1c96_576c_f6ec05cf209a["findPrevElement()"] 320ee0f4_351d_a6b2_1c1c_f0f6f42fb987["index.ts"] 75e8c9e9_f8dc_1c96_576c_f6ec05cf209a -->|defined in| 320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 c4a8d310_d6a7_9547_ac2d_d9c02e047c9f["processIfConditions()"] c4a8d310_d6a7_9547_ac2d_d9c02e047c9f -->|calls| 75e8c9e9_f8dc_1c96_576c_f6ec05cf209a style 75e8c9e9_f8dc_1c96_576c_f6ec05cf209a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/parser/index.ts lines 583–599
function findPrevElement(children: Array<any>): ASTElement | void {
let i = children.length
while (i--) {
if (children[i].type === 1) {
return children[i]
} else {
if (__DEV__ && children[i].text !== ' ') {
warn(
`text "${children[i].text.trim()}" between v-if and v-else(-if) ` +
`will be ignored.`,
children[i]
)
}
children.pop()
}
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does findPrevElement() do?
findPrevElement() is a function in the vue codebase, defined in src/compiler/parser/index.ts.
Where is findPrevElement() defined?
findPrevElement() is defined in src/compiler/parser/index.ts at line 583.
What calls findPrevElement()?
findPrevElement() is called by 1 function(s): processIfConditions.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free