remove instance_scope (#15364)

pull/15380/head
Rich Harris 7 months ago committed by GitHub
parent 220c2418d1
commit 52d6ed1c73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -267,7 +267,6 @@ export function analyze_module(ast, options) {
expression: null, expression: null,
function_depth: 0, function_depth: 0,
has_props_rune: false, has_props_rune: false,
instance_scope: /** @type {any} */ (null),
options: /** @type {ValidatedCompileOptions} */ (options), options: /** @type {ValidatedCompileOptions} */ (options),
parent_element: null, parent_element: null,
reactive_statement: null, reactive_statement: null,
@ -620,7 +619,6 @@ export function analyze_component(root, source, options) {
expression: null, expression: null,
derived_state: [], derived_state: [],
function_depth: scope.function_depth, function_depth: scope.function_depth,
instance_scope: instance.scope,
reactive_statement: null, reactive_statement: null,
reactive_statements: new Map() reactive_statements: new Map()
}; };
@ -684,7 +682,6 @@ export function analyze_component(root, source, options) {
parent_element: null, parent_element: null,
has_props_rune: false, has_props_rune: false,
ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module', ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module',
instance_scope: instance.scope,
reactive_statement: null, reactive_statement: null,
reactive_statements: analysis.reactive_statements, reactive_statements: analysis.reactive_statements,
component_slots: new Set(), component_slots: new Set(),

@ -23,7 +23,6 @@ export interface AnalysisState {
function_depth: number; function_depth: number;
// legacy stuff // legacy stuff
instance_scope: Scope;
reactive_statement: null | ReactiveStatement; reactive_statement: null | ReactiveStatement;
reactive_statements: Map<LabeledStatement, ReactiveStatement>; reactive_statements: Map<LabeledStatement, ReactiveStatement>;
} }

Loading…
Cancel
Save