chore: remove unused analysis.boundary (#16763)

pull/16769/head
Rich Harris 3 days ago committed by GitHub
parent fbef4bbd7c
commit 393a44a061
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -304,7 +304,6 @@ export function analyze_module(source, options) {
options: /** @type {ValidatedCompileOptions} */ (options),
fragment: null,
title: null,
boundary: null,
parent_element: null,
reactive_statement: null
},
@ -696,7 +695,6 @@ export function analyze_component(root, source, options) {
ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module',
fragment: ast === template.ast ? ast : null,
title: null,
boundary: null,
parent_element: null,
has_props_rune: false,
component_slots: new Set(),
@ -764,7 +762,6 @@ export function analyze_component(root, source, options) {
options,
fragment: ast === template.ast ? ast : null,
title: null,
boundary: null,
parent_element: null,
has_props_rune: false,
ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module',

@ -10,7 +10,6 @@ export interface AnalysisState {
ast_type: 'instance' | 'template' | 'module';
fragment: AST.Fragment | null;
title: AST.TitleElement | null;
boundary: AST.SvelteBoundary | null;
/**
* Tag name of the parent element. `null` if the parent is `svelte:element`, `#snippet`, a component or the root.
* Parent doesn't necessarily mean direct path predecessor because there could be `#each`, `#if` etc in-between.

@ -34,5 +34,5 @@ export function SvelteBoundary(node, context) {
)
) ?? null;
context.next({ ...context.state, boundary: node });
context.next();
}

Loading…
Cancel
Save