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

File javascript BuildSystem QualityControl 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  65eaa254_0bcc_0b26_4219_5bce84809b2a["index.svelte.js"]
  a847d475_28e2_6e69_a137_e9b47aec897c["disclose-version"]
  65eaa254_0bcc_0b26_4219_5bce84809b2a --> a847d475_28e2_6e69_a137_e9b47aec897c
  a1aa31f7_1fac_3739_ef3a_f7f1278c747a["async"]
  65eaa254_0bcc_0b26_4219_5bce84809b2a --> a1aa31f7_1fac_3739_ef3a_f7f1278c747a
  1a59b12b_63d5_2eb4_1881_6fb96dbdcb56["client"]
  65eaa254_0bcc_0b26_4219_5bce84809b2a --> 1a59b12b_63d5_2eb4_1881_6fb96dbdcb56
  style 65eaa254_0bcc_0b26_4219_5bce84809b2a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import 'svelte/internal/disclose-version';
import 'svelte/internal/flags/async';
import * as $ from 'svelte/internal/client';

var root = $.from_html(`<!> <!> <!> <!> <!>`, 1);

export default function Async_if_chain($$anchor) {
	function complex1() {
		return 1;
	}

	let foo = true;
	var blocking;
	var $$promises = $.run([async () => blocking = await $.async_derived(() => foo)]);
	var fragment = root();
	var node = $.first_child(fragment);

	$.async(node, [$$promises[0]], void 0, (node) => {
		var consequent = ($$anchor) => {
			var text = $.text('foo');

			$.append($$anchor, text);
		};

		var consequent_1 = ($$anchor) => {
			var text_1 = $.text('bar');

			$.append($$anchor, text_1);
		};

		var alternate = ($$anchor) => {
			var text_2 = $.text('else');

			$.append($$anchor, text_2);
		};

		$.if(node, ($$render) => {
			if (foo) $$render(consequent); else if (bar) $$render(consequent_1, 1); else $$render(alternate, false);
		});
	});

	var node_1 = $.sibling(node, 2);

	$.async(node_1, [$$promises[0]], [() => foo], (node_1, $$condition) => {
		var consequent_2 = ($$anchor) => {
			var text_3 = $.text('foo');

			$.append($$anchor, text_3);
		};

		var consequent_3 = ($$anchor) => {
			var text_4 = $.text('bar');

			$.append($$anchor, text_4);
		};

		var alternate_2 = ($$anchor) => {
			var fragment_1 = $.comment();
			var node_2 = $.first_child(fragment_1);

// ... (141 more lines)

Domain

Subdomains

Functions

Dependencies

  • async
  • client
  • disclose-version

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): Async_if_chain.
What does index.svelte.js depend on?
index.svelte.js imports 3 module(s): async, client, disclose-version.
Where is index.svelte.js in the architecture?
index.svelte.js is located at packages/svelte/tests/snapshot/samples/async-if-chain/_expected/client/index.svelte.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/snapshot/samples/async-if-chain/_expected/client).

Analyze Your Own Codebase

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

Try Supermodel Free