Skip to content

Commit 3070f67

Browse files
committed
move declaration closer to usage
1 parent a7ee520 commit 3070f67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBoundary.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ import * as b from '../../../../utils/builders.js';
1010
export function SvelteBoundary(node, context) {
1111
const props = b.object([]);
1212

13-
/** @type {Statement[]} */
14-
const snippet_statements = [];
15-
1613
for (const attribute of node.attributes) {
1714
if (attribute.type !== 'Attribute' || attribute.value === true) {
1815
// these can't exist, because they would have caused validation
@@ -35,6 +32,9 @@ export function SvelteBoundary(node, context) {
3532

3633
const nodes = [];
3734

35+
/** @type {Statement[]} */
36+
const snippet_statements = [];
37+
3838
// Capture the `failed` implicit snippet prop
3939
for (const child of node.fragment.nodes) {
4040
if (child.type === 'SnippetBlock' && child.expression.name === 'failed') {

0 commit comments

Comments
 (0)