|
|
@ -422,7 +422,6 @@ export function analyze_component(root, options) {
|
|
|
|
options,
|
|
|
|
options,
|
|
|
|
ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module',
|
|
|
|
ast_type: ast === instance.ast ? 'instance' : ast === template.ast ? 'template' : 'module',
|
|
|
|
parent_element: null,
|
|
|
|
parent_element: null,
|
|
|
|
all_prop_names: new Set(),
|
|
|
|
|
|
|
|
has_props_rune: [false, false],
|
|
|
|
has_props_rune: [false, false],
|
|
|
|
component_slots: new Set(),
|
|
|
|
component_slots: new Set(),
|
|
|
|
expression: null,
|
|
|
|
expression: null,
|
|
|
@ -447,7 +446,6 @@ export function analyze_component(root, options) {
|
|
|
|
analysis,
|
|
|
|
analysis,
|
|
|
|
options,
|
|
|
|
options,
|
|
|
|
parent_element: null,
|
|
|
|
parent_element: null,
|
|
|
|
all_prop_names: new Set(),
|
|
|
|
|
|
|
|
has_props_rune: [false, false],
|
|
|
|
has_props_rune: [false, 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,
|
|
|
|
instance_scope: instance.scope,
|
|
|
@ -527,16 +525,6 @@ export function analyze_component(root, options) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (analysis.runes) {
|
|
|
|
|
|
|
|
const props = new Set();
|
|
|
|
|
|
|
|
for (const [name, binding] of instance.scope.declarations) {
|
|
|
|
|
|
|
|
if (binding.kind === 'prop' || binding.kind === 'bindable_prop') {
|
|
|
|
|
|
|
|
if (props.has(binding)) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (analysis.css.ast) {
|
|
|
|
if (analysis.css.ast) {
|
|
|
|
analyze_css(analysis.css.ast, analysis);
|
|
|
|
analyze_css(analysis.css.ast, analysis);
|
|
|
|
|
|
|
|
|
|
|
|