index.svelte.js — svelte Source File
Architecture documentation for index.svelte.js, a javascript file in the svelte codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 1a84bc6b_09da_b7d8_9856_b43064d56bcc["index.svelte.js"] a847d475_28e2_6e69_a137_e9b47aec897c["disclose-version"] 1a84bc6b_09da_b7d8_9856_b43064d56bcc --> a847d475_28e2_6e69_a137_e9b47aec897c a1aa31f7_1fac_3739_ef3a_f7f1278c747a["async"] 1a84bc6b_09da_b7d8_9856_b43064d56bcc --> a1aa31f7_1fac_3739_ef3a_f7f1278c747a 1a59b12b_63d5_2eb4_1881_6fb96dbdcb56["client"] 1a84bc6b_09da_b7d8_9856_b43064d56bcc --> 1a59b12b_63d5_2eb4_1881_6fb96dbdcb56 style 1a84bc6b_09da_b7d8_9856_b43064d56bcc 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';
export default function Async_in_derived($$anchor, $$props) {
$.push($$props, true);
var yes1, yes2, no1, no2;
var $$promises = $.run([
async () => yes1 = await $.async_derived(() => 1),
async () => yes2 = await $.async_derived(async () => foo(await 1)),
() => no1 = $.derived(async () => {
return await 1;
}),
() => no2 = $.derived(() => async () => {
return await 1;
})
]);
var fragment = $.comment();
var node = $.first_child(fragment);
{
var consequent = ($$anchor) => {
let yes1;
let yes2;
let no1;
let no2;
var promises = $.run([
async () => yes1 = (await $.save($.async_derived(async () => (await $.save(1))())))(),
async () => yes2 = (await $.save($.async_derived(async () => foo((await $.save(1))()))))(),
() => no1 = $.derived(() => (async () => {
return await 1;
})()),
() => no2 = $.derived(() => (async () => {
return await 1;
})())
]);
};
$.if(node, ($$render) => {
if (true) $$render(consequent);
});
}
$.append($$anchor, fragment);
$.pop();
}
Domain
Subdomains
Functions
Dependencies
- async
- 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): Async_in_derived.
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-in-derived/_expected/client/index.svelte.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/snapshot/samples/async-in-derived/_expected/client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free