ForOfStatement() — svelte Function Reference
Architecture documentation for the ForOfStatement() function in ForOfStatement.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 97650762_18b5_d573_3f77_e0f5ffdb730a["ForOfStatement()"] c483921f_8d5a_f23d_b357_6347f76261cc["ForOfStatement.js"] 97650762_18b5_d573_3f77_e0f5ffdb730a -->|defined in| c483921f_8d5a_f23d_b357_6347f76261cc 7a7783f8_ffa6_0cc3_61b0_031882649535["is_ignored()"] 97650762_18b5_d573_3f77_e0f5ffdb730a -->|calls| 7a7783f8_ffa6_0cc3_61b0_031882649535 style 97650762_18b5_d573_3f77_e0f5ffdb730a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/3-transform/client/visitors/ForOfStatement.js lines 10–25
export function ForOfStatement(node, context) {
if (
node.await &&
dev &&
!is_ignored(node, 'await_reactivity_loss') &&
context.state.options.experimental.async
) {
const left = /** @type {VariableDeclaration | Pattern} */ (context.visit(node.left));
const argument = /** @type {Expression} */ (context.visit(node.right));
const body = /** @type {Statement} */ (context.visit(node.body));
const right = b.call('$.for_await_track_reactivity_loss', argument);
return b.for_of(left, right, body, true);
}
context.next();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does ForOfStatement() do?
ForOfStatement() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/ForOfStatement.js.
Where is ForOfStatement() defined?
ForOfStatement() is defined in packages/svelte/src/compiler/phases/3-transform/client/visitors/ForOfStatement.js at line 10.
What does ForOfStatement() call?
ForOfStatement() calls 1 function(s): is_ignored.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free