specifierEnd() — vue Function Reference
Architecture documentation for the specifierEnd() function in rewriteDefault.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 239c8102_72a4_cf58_12d6_c7d3c6163a31["specifierEnd()"] 95a0be6b_4d0f_5c1a_879f_f3e1d3321465["rewriteDefault.ts"] 239c8102_72a4_cf58_12d6_c7d3c6163a31 -->|defined in| 95a0be6b_4d0f_5c1a_879f_f3e1d3321465 3f2874de_dacf_5309_7716_ce1aa1b354a6["rewriteDefault()"] 3f2874de_dacf_5309_7716_ce1aa1b354a6 -->|calls| 239c8102_72a4_cf58_12d6_c7d3c6163a31 style 239c8102_72a4_cf58_12d6_c7d3c6163a31 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/rewriteDefault.ts lines 101–121
function specifierEnd(
input: string,
end: number,
nodeEnd: number | undefined | null
) {
// export { default , foo } ...
let hasCommas = false
let oldEnd = end
while (end < nodeEnd!) {
if (/\s/.test(input.charAt(end))) {
end++
} else if (input.charAt(end) === ',') {
end++
hasCommas = true
break
} else if (input.charAt(end) === '}') {
break
}
}
return hasCommas ? end : oldEnd
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does specifierEnd() do?
specifierEnd() is a function in the vue codebase, defined in packages/compiler-sfc/src/rewriteDefault.ts.
Where is specifierEnd() defined?
specifierEnd() is defined in packages/compiler-sfc/src/rewriteDefault.ts at line 101.
What calls specifierEnd()?
specifierEnd() is called by 1 function(s): rewriteDefault.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free