parseFor() — vue Function Reference
Architecture documentation for the parseFor() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 610ff710_8aaa_da1d_59b6_8981da59c2c1["parseFor()"] 327c11d5_a4b9_58c5_30dd_58c353557eea["processFor()"] 327c11d5_a4b9_58c5_30dd_58c353557eea -->|calls| 610ff710_8aaa_da1d_59b6_8981da59c2c1 style 610ff710_8aaa_da1d_59b6_8981da59c2c1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/parser/index.ts lines 529–546
export function parseFor(exp: string): ForParseResult | undefined {
const inMatch = exp.match(forAliasRE)
if (!inMatch) return
const res: any = {}
res.for = inMatch[2].trim()
const alias = inMatch[1].trim().replace(stripParensRE, '')
const iteratorMatch = alias.match(forIteratorRE)
if (iteratorMatch) {
res.alias = alias.replace(forIteratorRE, '').trim()
res.iterator1 = iteratorMatch[1].trim()
if (iteratorMatch[2]) {
res.iterator2 = iteratorMatch[2].trim()
}
} else {
res.alias = alias
}
return res
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does parseFor() do?
parseFor() is a function in the vue codebase.
What calls parseFor()?
parseFor() is called by 1 function(s): processFor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free