subsume() — svelte Function Reference
Architecture documentation for the subsume() function in renderer.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 0a6a88af_0349_6fcc_a26e_5405bf7c8e8d["subsume()"] ce85d155_9f13_f67c_9824_407161a6c2c7["Renderer"] 0a6a88af_0349_6fcc_a26e_5405bf7c8e8d -->|defined in| ce85d155_9f13_f67c_9824_407161a6c2c7 style 0a6a88af_0349_6fcc_a26e_5405bf7c8e8d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/server/renderer.js lines 370–386
subsume(other) {
if (this.global.mode !== other.global.mode) {
throw new Error(
"invariant: A renderer cannot switch modes. If you're seeing this, there's a compiler bug. File an issue!"
);
}
this.local = other.local;
this.#out = other.#out.map((item) => {
if (item instanceof Renderer) {
item.subsume(item);
}
return item;
});
this.promise = other.promise;
this.type = other.type;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does subsume() do?
subsume() is a function in the svelte codebase, defined in packages/svelte/src/internal/server/renderer.js.
Where is subsume() defined?
subsume() is defined in packages/svelte/src/internal/server/renderer.js at line 370.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free