visitors.ClassBody() — svelte Function Reference
Architecture documentation for the visitors.ClassBody() function in remove_typescript_nodes.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 3dc3c1d9_145f_bca7_2d2c_beece9d7d24a["visitors.ClassBody()"] 0e67864d_62c6_024e_3588_da959afe5b23["remove_typescript_nodes.js"] 3dc3c1d9_145f_bca7_2d2c_beece9d7d24a -->|defined in| 0e67864d_62c6_024e_3588_da959afe5b23 style 3dc3c1d9_145f_bca7_2d2c_beece9d7d24a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js lines 121–133
ClassBody(node, context) {
const body = [];
for (const _child of node.body) {
const child = context.visit(_child);
if (child.type !== 'PropertyDefinition' || !child.declare) {
body.push(child);
}
}
return {
...node,
body
};
},
Domain
Subdomains
Source
Frequently Asked Questions
What does visitors.ClassBody() do?
visitors.ClassBody() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js.
Where is visitors.ClassBody() defined?
visitors.ClassBody() is defined in packages/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js at line 121.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free