merge() — svelte Function Reference
Architecture documentation for the merge() function in nodes.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 23cf92f5_03a7_f07d_fe6f_d5ac1659d37e["merge()"] 6e00a8f3_2371_ecf1_5a93_296f787aca83["ExpressionMetadata"] 23cf92f5_03a7_f07d_fe6f_d5ac1659d37e -->|defined in| 6e00a8f3_2371_ecf1_5a93_296f787aca83 524a9152_ab34_9e69_70d1_b4f6c414a673["build_class_directives_object()"] 524a9152_ab34_9e69_70d1_b4f6c414a673 -->|calls| 23cf92f5_03a7_f07d_fe6f_d5ac1659d37e 4fce48f1_e9d7_958a_ce38_30799ece4fc7["build_style_directives_object()"] 4fce48f1_e9d7_958a_ce38_30799ece4fc7 -->|calls| 23cf92f5_03a7_f07d_fe6f_d5ac1659d37e style 23cf92f5_03a7_f07d_fe6f_d5ac1659d37e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/nodes.js lines 141–151
merge(source) {
this.has_state ||= source.has_state;
this.has_call ||= source.has_call;
this.has_await ||= source.has_await;
this.has_member_expression ||= source.has_member_expression;
this.has_assignment ||= source.has_assignment;
this.#blockers = null; // so that blockers are recalculated
for (const r of source.references) this.references.add(r);
for (const b of source.dependencies) this.dependencies.add(b);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does merge() do?
merge() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/nodes.js.
Where is merge() defined?
merge() is defined in packages/svelte/src/compiler/phases/nodes.js at line 141.
What calls merge()?
merge() is called by 2 function(s): build_class_directives_object, build_style_directives_object.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free