index.svelte.js — svelte Source File
Architecture documentation for index.svelte.js, a javascript file in the svelte codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 852cb8db_35ba_6f87_071e_31da0e7c2222["index.svelte.js"] a847d475_28e2_6e69_a137_e9b47aec897c["disclose-version"] 852cb8db_35ba_6f87_071e_31da0e7c2222 --> a847d475_28e2_6e69_a137_e9b47aec897c 1a59b12b_63d5_2eb4_1881_6fb96dbdcb56["client"] 852cb8db_35ba_6f87_071e_31da0e7c2222 --> 1a59b12b_63d5_2eb4_1881_6fb96dbdcb56 style 852cb8db_35ba_6f87_071e_31da0e7c2222 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import 'svelte/internal/disclose-version';
import * as $ from 'svelte/internal/client';
export default function Class_state_field_constructor_assignment($$anchor, $$props) {
$.push($$props, true);
class Foo {
#a = $.state(0);
get a() {
return $.get(this.#a);
}
set a(value) {
$.set(this.#a, value, true);
}
#b = $.state();
#foo = $.derived(() => ({ bar: this.a * 2 }));
get foo() {
return $.get(this.#foo);
}
set foo(value) {
$.set(this.#foo, value);
}
#bar = $.derived(() => ({ baz: this.foo }));
get bar() {
return $.get(this.#bar);
}
set bar(value) {
$.set(this.#bar, value);
}
constructor() {
this.a = 1;
$.set(this.#b, 2);
this.foo.bar = 3;
this.bar = 4;
}
}
$.pop();
}
Domain
Subdomains
Classes
Dependencies
- client
- disclose-version
Source
Frequently Asked Questions
What does index.svelte.js do?
index.svelte.js is a source file in the svelte codebase, written in javascript. It belongs to the BuildSystem domain, QualityControl subdomain.
What functions are defined in index.svelte.js?
index.svelte.js defines 1 function(s): Class_state_field_constructor_assignment.
What does index.svelte.js depend on?
index.svelte.js imports 2 module(s): client, disclose-version.
Where is index.svelte.js in the architecture?
index.svelte.js is located at packages/svelte/tests/snapshot/samples/class-state-field-constructor-assignment/_expected/client/index.svelte.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/snapshot/samples/class-state-field-constructor-assignment/_expected/client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free