parseFor() — vue Function Reference
Architecture documentation for the parseFor() function in index.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 96613d4b_e7ce_d2e3_6e79_68cda9a870af["parseFor()"] 320ee0f4_351d_a6b2_1c1c_f0f6f42fb987["index.ts"] 96613d4b_e7ce_d2e3_6e79_68cda9a870af -->|defined in| 320ee0f4_351d_a6b2_1c1c_f0f6f42fb987 bf06702a_d674_3a95_d692_cb135366576f["processFor()"] bf06702a_d674_3a95_d692_cb135366576f -->|calls| 96613d4b_e7ce_d2e3_6e79_68cda9a870af style 96613d4b_e7ce_d2e3_6e79_68cda9a870af 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
Defined In
Called By
Source
Frequently Asked Questions
What does parseFor() do?
parseFor() is a function in the vue codebase, defined in src/compiler/parser/index.ts.
Where is parseFor() defined?
parseFor() is defined in src/compiler/parser/index.ts at line 529.
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