Home / File/ index.svelte.js — svelte Source File

index.svelte.js — svelte Source File

Architecture documentation for index.svelte.js, a javascript file in the svelte codebase. 1 imports, 0 dependents.

File javascript BuildSystem QualityControl 1 imports 1 functions 1 classes

Entity Profile

Dependency Diagram

graph LR
  51baf22a_65f4_51ba_b957_04be9b625632["index.svelte.js"]
  4076941f_01d8_e54b_a571_b95a5cd6c871["server"]
  51baf22a_65f4_51ba_b957_04be9b625632 --> 4076941f_01d8_e54b_a571_b95a5cd6c871
  style 51baf22a_65f4_51ba_b957_04be9b625632 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as $ from 'svelte/internal/server';

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

Classes

Dependencies

  • server

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 1 module(s): server.
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/server/index.svelte.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/snapshot/samples/class-state-field-constructor-assignment/_expected/server).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free