Async_each_fallback_hoisting() — svelte Function Reference
Architecture documentation for the Async_each_fallback_hoisting() function in index.svelte.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 62daf60a_287e_cf2c_ab8d_e46fb392da0f["Async_each_fallback_hoisting()"] 26a4fe1a_1861_7202_dffa_5bcaa102e736["index.svelte.js"] 62daf60a_287e_cf2c_ab8d_e46fb392da0f -->|defined in| 26a4fe1a_1861_7202_dffa_5bcaa102e736 style 62daf60a_287e_cf2c_ab8d_e46fb392da0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/snapshot/samples/async-each-fallback-hoisting/_expected/server/index.svelte.js lines 4–25
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
Defined In
Source
Frequently Asked Questions
What does Async_each_fallback_hoisting() do?
Async_each_fallback_hoisting() is a function in the svelte codebase, defined in packages/svelte/tests/snapshot/samples/async-each-fallback-hoisting/_expected/server/index.svelte.js.
Where is Async_each_fallback_hoisting() defined?
Async_each_fallback_hoisting() is defined in packages/svelte/tests/snapshot/samples/async-each-fallback-hoisting/_expected/server/index.svelte.js at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free