|
|
@ -256,7 +256,8 @@ export function analyze_module(ast, options) {
|
|
|
|
accessors: false,
|
|
|
|
accessors: false,
|
|
|
|
runes: true,
|
|
|
|
runes: true,
|
|
|
|
immutable: true,
|
|
|
|
immutable: true,
|
|
|
|
tracing: false
|
|
|
|
tracing: false,
|
|
|
|
|
|
|
|
classes: new Map()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
walk(
|
|
|
|
walk(
|
|
|
@ -265,7 +266,6 @@ export function analyze_module(ast, options) {
|
|
|
|
scope,
|
|
|
|
scope,
|
|
|
|
scopes,
|
|
|
|
scopes,
|
|
|
|
analysis: /** @type {ComponentAnalysis} */ (analysis),
|
|
|
|
analysis: /** @type {ComponentAnalysis} */ (analysis),
|
|
|
|
classes: new Map(),
|
|
|
|
|
|
|
|
state_fields: null,
|
|
|
|
state_fields: null,
|
|
|
|
// TODO the following are not needed for modules, but we have to pass them in order to avoid type error,
|
|
|
|
// TODO the following are not needed for modules, but we have to pass them in order to avoid type error,
|
|
|
|
// and reducing the type would result in a lot of tedious type casts elsewhere - find a good solution one day
|
|
|
|
// and reducing the type would result in a lot of tedious type casts elsewhere - find a good solution one day
|
|
|
@ -430,6 +430,7 @@ export function analyze_component(root, source, options) {
|
|
|
|
elements: [],
|
|
|
|
elements: [],
|
|
|
|
runes,
|
|
|
|
runes,
|
|
|
|
tracing: false,
|
|
|
|
tracing: false,
|
|
|
|
|
|
|
|
classes: new Map(),
|
|
|
|
immutable: runes || options.immutable,
|
|
|
|
immutable: runes || options.immutable,
|
|
|
|
exports: [],
|
|
|
|
exports: [],
|
|
|
|
uses_props: false,
|
|
|
|
uses_props: false,
|
|
|
@ -625,7 +626,6 @@ export function analyze_component(root, source, options) {
|
|
|
|
has_props_rune: false,
|
|
|
|
has_props_rune: false,
|
|
|
|
component_slots: new Set(),
|
|
|
|
component_slots: new Set(),
|
|
|
|
expression: null,
|
|
|
|
expression: null,
|
|
|
|
classes: new Map(),
|
|
|
|
|
|
|
|
state_fields: null,
|
|
|
|
state_fields: null,
|
|
|
|
function_depth: scope.function_depth,
|
|
|
|
function_depth: scope.function_depth,
|
|
|
|
reactive_statement: null
|
|
|
|
reactive_statement: null
|
|
|
@ -693,7 +693,6 @@ export function analyze_component(root, source, options) {
|
|
|
|
reactive_statement: null,
|
|
|
|
reactive_statement: null,
|
|
|
|
component_slots: new Set(),
|
|
|
|
component_slots: new Set(),
|
|
|
|
expression: null,
|
|
|
|
expression: null,
|
|
|
|
classes: new Map(),
|
|
|
|
|
|
|
|
state_fields: null,
|
|
|
|
state_fields: null,
|
|
|
|
function_depth: scope.function_depth
|
|
|
|
function_depth: scope.function_depth
|
|
|
|
};
|
|
|
|
};
|
|
|
|