svelte_visitors.SvelteElement() — svelte Function Reference
Architecture documentation for the svelte_visitors.SvelteElement() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD db7bcfe6_94b2_81da_e75d_1ea0ae9d514f["svelte_visitors.SvelteElement()"] f0404eed_e134_3c7c_7b38_1cb13c71f197["index.js"] db7bcfe6_94b2_81da_e75d_1ea0ae9d514f -->|defined in| f0404eed_e134_3c7c_7b38_1cb13c71f197 64c42a6a_4e9f_ca08_f5f4_a6300195f48a["attributes()"] db7bcfe6_94b2_81da_e75d_1ea0ae9d514f -->|calls| 64c42a6a_4e9f_ca08_f5f4_a6300195f48a 139b5520_1d69_2489_cf79_ff7f67682f82["block()"] db7bcfe6_94b2_81da_e75d_1ea0ae9d514f -->|calls| 139b5520_1d69_2489_cf79_ff7f67682f82 style db7bcfe6_94b2_81da_e75d_1ea0ae9d514f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/print/index.js lines 786–801
SvelteElement(node, context) {
context.write('<svelte:element ');
context.write('this={');
context.visit(node.tag);
context.write('}');
attributes(node.attributes, context);
if (node.fragment && node.fragment.nodes.length > 0) {
context.write('>');
block(context, node.fragment);
context.write(`</svelte:element>`);
} else {
context.write(' />');
}
},
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does svelte_visitors.SvelteElement() do?
svelte_visitors.SvelteElement() is a function in the svelte codebase, defined in packages/svelte/src/compiler/print/index.js.
Where is svelte_visitors.SvelteElement() defined?
svelte_visitors.SvelteElement() is defined in packages/svelte/src/compiler/print/index.js at line 786.
What does svelte_visitors.SvelteElement() call?
svelte_visitors.SvelteElement() calls 2 function(s): attributes, block.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free