Skip to content

Commit 393a44a

Browse files
authored
chore: remove unused analysis.boundary (#16763)
1 parent fbef4bb commit 393a44a

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ export function analyze_module(source, options) {
304304
options: /** @type {ValidatedCompileOptions} */ (options),
305305
fragment: null,
306306
title: null,
307-
boundary: null,
308307
parent_element: null,
309308
reactive_statement: null
310309
},
@@ -696,7 +695,6 @@ export function analyze_component(root, source, options) {
696695
ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module',
697696
fragment: ast === template.ast ? ast : null,
698697
title: null,
699-
boundary: null,
700698
parent_element: null,
701699
has_props_rune: false,
702700
component_slots: new Set(),
@@ -764,7 +762,6 @@ export function analyze_component(root, source, options) {
764762
options,
765763
fragment: ast === template.ast ? ast : null,
766764
title: null,
767-
boundary: null,
768765
parent_element: null,
769766
has_props_rune: false,
770767
ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module',

packages/svelte/src/compiler/phases/2-analyze/types.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export interface AnalysisState {
1010
ast_type: 'instance' | 'template' | 'module';
1111
fragment: AST.Fragment | null;
1212
title: AST.TitleElement | null;
13-
boundary: AST.SvelteBoundary | null;
1413
/**
1514
* Tag name of the parent element. `null` if the parent is `svelte:element`, `#snippet`, a component or the root.
1615
* Parent doesn't necessarily mean direct path predecessor because there could be `#each`, `#if` etc in-between.

packages/svelte/src/compiler/phases/2-analyze/visitors/SvelteBoundary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ export function SvelteBoundary(node, context) {
3434
)
3535
) ?? null;
3636

37-
context.next({ ...context.state, boundary: node });
37+
context.next();
3838
}

0 commit comments

Comments
 (0)