ExportDefaultDeclaration() — svelte Function Reference
Architecture documentation for the ExportDefaultDeclaration() function in ExportDefaultDeclaration.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD e22cfda3_464c_3e3f_6587_81c148717256["ExportDefaultDeclaration()"] 2de262bb_452c_183e_9ae9_527a722ba4f5["ExportDefaultDeclaration.js"] e22cfda3_464c_3e3f_6587_81c148717256 -->|defined in| 2de262bb_452c_183e_9ae9_527a722ba4f5 cc0c7132_9605_cd69_23b0_b710d67b19c8["validate_export()"] e22cfda3_464c_3e3f_6587_81c148717256 -->|calls| cc0c7132_9605_cd69_23b0_b710d67b19c8 47746ef3_2023_7a7b_a76e_1a087ad67079["module_illegal_default_export()"] e22cfda3_464c_3e3f_6587_81c148717256 -->|calls| 47746ef3_2023_7a7b_a76e_1a087ad67079 style e22cfda3_464c_3e3f_6587_81c148717256 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/visitors/ExportDefaultDeclaration.js lines 10–20
export function ExportDefaultDeclaration(node, context) {
if (!context.state.ast_type /* .svelte.js module */) {
if (node.declaration.type === 'Identifier') {
validate_export(node, context.state.scope, node.declaration.name);
}
} else {
e.module_illegal_default_export(node);
}
context.next();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ExportDefaultDeclaration() do?
ExportDefaultDeclaration() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/ExportDefaultDeclaration.js.
Where is ExportDefaultDeclaration() defined?
ExportDefaultDeclaration() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/ExportDefaultDeclaration.js at line 10.
What does ExportDefaultDeclaration() call?
ExportDefaultDeclaration() calls 2 function(s): module_illegal_default_export, validate_export.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free