SvelteWindow.js — svelte Source File
Architecture documentation for SvelteWindow.js, a javascript file in the svelte codebase. 6 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 07785a10_04f3_78ee_d176_506169ab3580["SvelteWindow.js"] f738fdc4_6546_2e7b_cfe1_49e3cb800752["special-element.js"] 07785a10_04f3_78ee_d176_506169ab3580 --> f738fdc4_6546_2e7b_cfe1_49e3cb800752 cdcd4a9e_8be5_ea03_69d9_c5b2dd208707["disallow_children"] 07785a10_04f3_78ee_d176_506169ab3580 --> cdcd4a9e_8be5_ea03_69d9_c5b2dd208707 495501a4_a342_6a4d_ac11_e3e2fee8b218["errors.js"] 07785a10_04f3_78ee_d176_506169ab3580 --> 495501a4_a342_6a4d_ac11_e3e2fee8b218 a146f6ac_0088_8736_b6ce_318f9f115170["e"] 07785a10_04f3_78ee_d176_506169ab3580 --> a146f6ac_0088_8736_b6ce_318f9f115170 0c5c28a7_226d_4e7c_e75e_0853c0a9fc2c["ast.js"] 07785a10_04f3_78ee_d176_506169ab3580 --> 0c5c28a7_226d_4e7c_e75e_0853c0a9fc2c e9a2c29e_d0ca_ab9f_b86f_f22ff802db91["is_event_attribute"] 07785a10_04f3_78ee_d176_506169ab3580 --> e9a2c29e_d0ca_ab9f_b86f_f22ff802db91 4aa8a188_84d4_0274_ed83_cac0ab1d3572["index.js"] 4aa8a188_84d4_0274_ed83_cac0ab1d3572 --> 07785a10_04f3_78ee_d176_506169ab3580 style 07785a10_04f3_78ee_d176_506169ab3580 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/** @import { AST } from '#compiler' */
/** @import { Context } from '../types' */
import { disallow_children } from './shared/special-element.js';
import * as e from '../../../errors.js';
import { is_event_attribute } from '../../../utils/ast.js';
/**
* @param {AST.SvelteWindow} node
* @param {Context} context
*/
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
Functions
Source
Frequently Asked Questions
What does SvelteWindow.js do?
SvelteWindow.js is a source file in the svelte codebase, written in javascript. It belongs to the Compiler domain, Transformer subdomain.
What functions are defined in SvelteWindow.js?
SvelteWindow.js defines 1 function(s): SvelteWindow.
What does SvelteWindow.js depend on?
SvelteWindow.js imports 6 module(s): ast.js, disallow_children, e, errors.js, is_event_attribute, special-element.js.
What files import SvelteWindow.js?
SvelteWindow.js is imported by 1 file(s): index.js.
Where is SvelteWindow.js in the architecture?
SvelteWindow.js is located at packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.js (domain: Compiler, subdomain: Transformer, directory: packages/svelte/src/compiler/phases/2-analyze/visitors).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free