SvelteWindow() — svelte Function Reference
Architecture documentation for the SvelteWindow() function in SvelteWindow.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD cc74c006_b541_7412_5b82_a3e086c65c31["SvelteWindow()"] 07785a10_04f3_78ee_d176_506169ab3580["SvelteWindow.js"] cc74c006_b541_7412_5b82_a3e086c65c31 -->|defined in| 07785a10_04f3_78ee_d176_506169ab3580 cdcd4a9e_8be5_ea03_69d9_c5b2dd208707["disallow_children()"] cc74c006_b541_7412_5b82_a3e086c65c31 -->|calls| cdcd4a9e_8be5_ea03_69d9_c5b2dd208707 e9a2c29e_d0ca_ab9f_b86f_f22ff802db91["is_event_attribute()"] cc74c006_b541_7412_5b82_a3e086c65c31 -->|calls| e9a2c29e_d0ca_ab9f_b86f_f22ff802db91 dcec6a8e_1f79_7d8f_2200_527b5ec5246a["illegal_element_attribute()"] cc74c006_b541_7412_5b82_a3e086c65c31 -->|calls| dcec6a8e_1f79_7d8f_2200_527b5ec5246a style cc74c006_b541_7412_5b82_a3e086c65c31 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.js lines 11–24
export function SvelteWindow(node, context) {
disallow_children(node);
for (const attribute of node.attributes) {
if (
attribute.type === 'SpreadAttribute' ||
(attribute.type === 'Attribute' && !is_event_attribute(attribute))
) {
e.illegal_element_attribute(attribute, 'svelte:window');
}
}
context.next();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does SvelteWindow() do?
SvelteWindow() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.js.
Where is SvelteWindow() defined?
SvelteWindow() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.js at line 11.
What does SvelteWindow() call?
SvelteWindow() calls 3 function(s): disallow_children, illegal_element_attribute, is_event_attribute.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free