svelte_visitors.EachBlock() — svelte Function Reference
Architecture documentation for the svelte_visitors.EachBlock() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 19206bd9_4e5d_dfa3_9e48_75e3187f98e8["svelte_visitors.EachBlock()"] f0404eed_e134_3c7c_7b38_1cb13c71f197["index.js"] 19206bd9_4e5d_dfa3_9e48_75e3187f98e8 -->|defined in| f0404eed_e134_3c7c_7b38_1cb13c71f197 139b5520_1d69_2489_cf79_ff7f67682f82["block()"] 19206bd9_4e5d_dfa3_9e48_75e3187f98e8 -->|calls| 139b5520_1d69_2489_cf79_ff7f67682f82 style 19206bd9_4e5d_dfa3_9e48_75e3187f98e8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/print/index.js lines 556–585
EachBlock(node, context) {
context.write('{#each ');
context.visit(node.expression);
if (node.context) {
context.write(' as ');
context.visit(node.context);
}
if (node.index) {
context.write(`, ${node.index}`);
}
if (node.key) {
context.write(' (');
context.visit(node.key);
context.write(')');
}
context.write('}');
block(context, node.body);
if (node.fallback) {
context.write('{:else}');
block(context, node.fallback);
}
context.write('{/each}');
},
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does svelte_visitors.EachBlock() do?
svelte_visitors.EachBlock() is a function in the svelte codebase, defined in packages/svelte/src/compiler/print/index.js.
Where is svelte_visitors.EachBlock() defined?
svelte_visitors.EachBlock() is defined in packages/svelte/src/compiler/print/index.js at line 556.
What does svelte_visitors.EachBlock() call?
svelte_visitors.EachBlock() calls 1 function(s): block.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free