Home / Function/ ExportNamedDeclaration() — svelte Function Reference

ExportNamedDeclaration() — svelte Function Reference

Architecture documentation for the ExportNamedDeclaration() function in ExportNamedDeclaration.js from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  1fcd75ae_3574_c87a_65b3_6fc15a89836f["ExportNamedDeclaration()"]
  a86bdec0_3990_e8a6_4b41_577ad69909c3["ExportNamedDeclaration.js"]
  1fcd75ae_3574_c87a_65b3_6fc15a89836f -->|defined in| a86bdec0_3990_e8a6_4b41_577ad69909c3
  style 1fcd75ae_3574_c87a_65b3_6fc15a89836f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/3-transform/client/visitors/ExportNamedDeclaration.js lines 9–19

export function ExportNamedDeclaration(node, context) {
	if (context.state.is_instance) {
		if (node.declaration) {
			return context.visit(node.declaration);
		}

		return b.empty;
	}

	return context.next();
}

Domain

Subdomains

Frequently Asked Questions

What does ExportNamedDeclaration() do?
ExportNamedDeclaration() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/ExportNamedDeclaration.js.
Where is ExportNamedDeclaration() defined?
ExportNamedDeclaration() is defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/ExportNamedDeclaration.js at line 9.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free