js() — svelte Function Reference
Architecture documentation for the js() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD e6258220_a976_05ad_470f_313b670ef126["js()"] 4aa8a188_84d4_0274_ed83_cac0ab1d3572["index.js"] e6258220_a976_05ad_470f_313b670ef126 -->|defined in| 4aa8a188_84d4_0274_ed83_cac0ab1d3572 78a6ba9a_5003_f569_a638_76e4f1977809["analyze_component()"] 78a6ba9a_5003_f569_a638_76e4f1977809 -->|calls| e6258220_a976_05ad_470f_313b670ef126 c531899f_2ddc_b054_bfe1_2cfdfd2b1c7f["create_scopes()"] e6258220_a976_05ad_470f_313b670ef126 -->|calls| c531899f_2ddc_b054_bfe1_2cfdfd2b1c7f style e6258220_a976_05ad_470f_313b670ef126 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/index.js lines 215–233
function js(script, root, allow_reactive_declarations, parent) {
/** @type {ESTree.Program} */
const ast = script?.content ?? {
type: 'Program',
sourceType: 'module',
start: -1,
end: -1,
body: []
};
const { scope, scopes, has_await } = create_scopes(
ast,
root,
allow_reactive_declarations,
parent
);
return { ast, scope, scopes, has_await };
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does js() do?
js() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/index.js.
Where is js() defined?
js() is defined in packages/svelte/src/compiler/phases/2-analyze/index.js at line 215.
What does js() call?
js() calls 1 function(s): create_scopes.
What calls js()?
js() is called by 1 function(s): analyze_component.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free