extractRuntimeEmits() — vue Function Reference
Architecture documentation for the extractRuntimeEmits() function in compileScript.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD be219160_436f_73bf_042a_998cc1d932a1["extractRuntimeEmits()"] 16b5f9ed_1e09_eff8_5797_7cb90fc86d37["compileScript()"] 16b5f9ed_1e09_eff8_5797_7cb90fc86d37 -->|calls| be219160_436f_73bf_042a_998cc1d932a1 7d90088e_d156_a8b8_031f_2ed067b0525e["extractEventNames()"] be219160_436f_73bf_042a_998cc1d932a1 -->|calls| 7d90088e_d156_a8b8_031f_2ed067b0525e style be219160_436f_73bf_042a_998cc1d932a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/compileScript.ts lines 1560–1575
function extractRuntimeEmits(
node: TSFunctionType | TSTypeLiteral | TSInterfaceBody,
emits: Set<string>
) {
if (node.type === 'TSTypeLiteral' || node.type === 'TSInterfaceBody') {
const members = node.type === 'TSTypeLiteral' ? node.members : node.body
for (let t of members) {
if (t.type === 'TSCallSignatureDeclaration') {
extractEventNames(t.parameters[0], emits)
}
}
return
} else {
extractEventNames(node.parameters[0], emits)
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does extractRuntimeEmits() do?
extractRuntimeEmits() is a function in the vue codebase.
What does extractRuntimeEmits() call?
extractRuntimeEmits() calls 1 function(s): extractEventNames.
What calls extractRuntimeEmits()?
extractRuntimeEmits() is called by 1 function(s): compileScript.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free