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 26a4fe1a_1861_7202_dffa_5bcaa102e736["index.svelte.js"] a1aa31f7_1fac_3739_ef3a_f7f1278c747a["async"] 26a4fe1a_1861_7202_dffa_5bcaa102e736 --> a1aa31f7_1fac_3739_ef3a_f7f1278c747a 4076941f_01d8_e54b_a571_b95a5cd6c871["server"] 26a4fe1a_1861_7202_dffa_5bcaa102e736 --> 4076941f_01d8_e54b_a571_b95a5cd6c871 style 26a4fe1a_1861_7202_dffa_5bcaa102e736 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_each_fallback_hoisting($$renderer) {
$$renderer.child_block(async ($$renderer) => {
const each_array = $.ensure_array_like((await $.save(Promise.resolve([])))());
if (each_array.length !== 0) {
$$renderer.push('<!--[-->');
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
let item = each_array[$$index];
$$renderer.push(`<!---->`);
$$renderer.push(async () => $.escape(await Promise.reject('This should never be reached')));
}
} else {
$$renderer.push('<!--[!-->');
$$renderer.push(`<!---->`);
$$renderer.push(async () => $.escape(await Promise.resolve(4)));
}
});
$$renderer.push(`<!--]-->`);
}
Domain
Subdomains
Functions
Dependencies
- async
- server
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, MessageProcessor subdomain.
What functions are defined in index.svelte.js?
index.svelte.js defines 1 function(s): Async_each_fallback_hoisting.
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-each-fallback-hoisting/_expected/server/index.svelte.js (domain: BuildSystem, subdomain: MessageProcessor, directory: packages/svelte/tests/snapshot/samples/async-each-fallback-hoisting/_expected/server).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free