specifierEnd() — vue Function Reference
Architecture documentation for the specifierEnd() function in rewriteDefault.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 3be7e92f_b701_5270_8d86_c8014f4ae977["specifierEnd()"] 7e881ac8_aa91_c10a_bd6a_7071900a38fa["rewriteDefault()"] 7e881ac8_aa91_c10a_bd6a_7071900a38fa -->|calls| 3be7e92f_b701_5270_8d86_c8014f4ae977 style 3be7e92f_b701_5270_8d86_c8014f4ae977 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
Called By
Source
Frequently Asked Questions
What does specifierEnd() do?
specifierEnd() is a function in the vue codebase.
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