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. 2 imports, 0 dependents.

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

export default function Async_in_derived($$renderer, $$props) {
	$$renderer.component(($$renderer) => {
		var yes1, yes2, no1, no2;

		var $$promises = $$renderer.run([
			async () => yes1 = await 1,
			async () => yes2 = foo(await 1),
			() => no1 = (async () => {
				return await 1;
			})(),

			() => no2 = async () => {
				return await 1;
			}
		]);

		if (true) {
			$$renderer.push('<!--[-->');

			let yes1;
			let yes2;
			let no1;
			let no2;

			var promises = $$renderer.run([
				async () => {
					yes1 = (await $.save(1))();
				},

				async () => {
					yes2 = foo((await $.save(1))());
				},

				() => {
					no1 = (async () => {
						return await 1;
					})();
				},

				() => {
					no2 = (async () => {
						return await 1;
					})();
				}
			]);
		} else {
			$$renderer.push('<!--[!-->');
		}

		$$renderer.push(`<!--]-->`);
	});
}

Domain

Subdomains

Functions

Dependencies

  • async
  • 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, MessageProcessor subdomain.
What functions are defined in index.svelte.js?
index.svelte.js defines 1 function(s): Async_in_derived.
What does index.svelte.js depend on?
index.svelte.js imports 2 module(s): async, server.
Where is index.svelte.js in the architecture?
index.svelte.js is located at packages/svelte/tests/snapshot/samples/async-in-derived/_expected/server/index.svelte.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/snapshot/samples/async-in-derived/_expected/server).

Analyze Your Own Codebase

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

Try Supermodel Free