push_element() — svelte Function Reference
Architecture documentation for the push_element() function in template.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD af756561_34dc_505a_86e2_23aef4b7c333["push_element()"] e1ee663e_9a6d_c084_3617_f6741c138bb7["Template"] af756561_34dc_505a_86e2_23aef4b7c333 -->|defined in| e1ee663e_9a6d_c084_3617_f6741c138bb7 1e3b81f2_cd53_e5a5_0140_a9af38facf99["RegularElement()"] 1e3b81f2_cd53_e5a5_0140_a9af38facf99 -->|calls| af756561_34dc_505a_86e2_23aef4b7c333 style af756561_34dc_505a_86e2_23aef4b7c333 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/3-transform/client/transform-template/template.js lines 34–47
push_element(name, start) {
this.#element = {
type: 'element',
name,
attributes: {},
children: [],
start
};
this.#fragment.push(this.#element);
this.#fragment = /** @type {Element} */ (this.#element).children;
this.#stack.push(this.#fragment);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does push_element() do?
push_element() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/transform-template/template.js.
Where is push_element() defined?
push_element() is defined in packages/svelte/src/compiler/phases/3-transform/client/transform-template/template.js at line 34.
What calls push_element()?
push_element() is called by 1 function(s): RegularElement.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free