Class_state_field_constructor_assignment() — svelte Function Reference
Architecture documentation for the Class_state_field_constructor_assignment() function in index.svelte.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 0b363c0c_f4b5_1adf_f379_78512b1d052d["Class_state_field_constructor_assignment()"] 51baf22a_65f4_51ba_b957_04be9b625632["index.svelte.js"] 0b363c0c_f4b5_1adf_f379_78512b1d052d -->|defined in| 51baf22a_65f4_51ba_b957_04be9b625632 f480d6f0_848e_40a0_5152_8bba1c2b04a2["foo()"] 0b363c0c_f4b5_1adf_f379_78512b1d052d -->|calls| f480d6f0_848e_40a0_5152_8bba1c2b04a2 d06da861_f4d9_6174_1e41_ed301df1d3b5["bar()"] 0b363c0c_f4b5_1adf_f379_78512b1d052d -->|calls| d06da861_f4d9_6174_1e41_ed301df1d3b5 d8cb55eb_eb2c_fa6a_e3fb_437574e40434["constructor()"] 0b363c0c_f4b5_1adf_f379_78512b1d052d -->|calls| d8cb55eb_eb2c_fa6a_e3fb_437574e40434 style 0b363c0c_f4b5_1adf_f379_78512b1d052d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/snapshot/samples/class-state-field-constructor-assignment/_expected/server/index.svelte.js lines 3–36
export default function Class_state_field_constructor_assignment($$renderer, $$props) {
$$renderer.component(($$renderer) => {
class Foo {
a = 0;
#b;
#foo = $.derived(() => ({ bar: this.a * 2 }));
get foo() {
return this.#foo();
}
set foo($$value) {
return this.#foo($$value);
}
#bar = $.derived(() => ({ baz: this.foo }));
get bar() {
return this.#bar();
}
set bar($$value) {
return this.#bar($$value);
}
constructor() {
this.a = 1;
this.#b = 2;
this.foo.bar = 3;
this.bar = 4;
}
}
});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does Class_state_field_constructor_assignment() do?
Class_state_field_constructor_assignment() is a function in the svelte codebase, defined in packages/svelte/tests/snapshot/samples/class-state-field-constructor-assignment/_expected/server/index.svelte.js.
Where is Class_state_field_constructor_assignment() defined?
Class_state_field_constructor_assignment() is defined in packages/svelte/tests/snapshot/samples/class-state-field-constructor-assignment/_expected/server/index.svelte.js at line 3.
What does Class_state_field_constructor_assignment() call?
Class_state_field_constructor_assignment() calls 3 function(s): bar, constructor, foo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free