Skip to content

Commit 52d6ed1

Browse files
authored
remove instance_scope (#15364)
1 parent 220c241 commit 52d6ed1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
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
@@ -267,7 +267,6 @@ export function analyze_module(ast, options) {
267267
expression: null,
268268
function_depth: 0,
269269
has_props_rune: false,
270-
instance_scope: /** @type {any} */ (null),
271270
options: /** @type {ValidatedCompileOptions} */ (options),
272271
parent_element: null,
273272
reactive_statement: null,
@@ -620,7 +619,6 @@ export function analyze_component(root, source, options) {
620619
expression: null,
621620
derived_state: [],
622621
function_depth: scope.function_depth,
623-
instance_scope: instance.scope,
624622
reactive_statement: null,
625623
reactive_statements: new Map()
626624
};
@@ -684,7 +682,6 @@ export function analyze_component(root, source, options) {
684682
parent_element: null,
685683
has_props_rune: false,
686684
ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module',
687-
instance_scope: instance.scope,
688685
reactive_statement: null,
689686
reactive_statements: analysis.reactive_statements,
690687
component_slots: new Set(),

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ export interface AnalysisState {
2323
function_depth: number;
2424

2525
// legacy stuff
26-
instance_scope: Scope;
2726
reactive_statement: null | ReactiveStatement;
2827
reactive_statements: Map<LabeledStatement, ReactiveStatement>;
2928
}

0 commit comments

Comments
 (0)