|
|
@ -796,14 +796,15 @@ export default class Component {
|
|
|
|
scope = map.get(node);
|
|
|
|
scope = map.get(node);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
if (node.type === 'ExpressionStatement' && node.expression.type === 'CallExpression') {
|
|
|
|
if (node.type === 'ExpressionStatement' && node.expression && node.expression.arguments) {
|
|
|
|
node.expression.arguments.forEach(arg => {
|
|
|
|
// @ts-ignore
|
|
|
|
if (arg.type === 'Identifier') {
|
|
|
|
node.expression.arguments.forEach(({ name }) => {
|
|
|
|
const { name } = arg;
|
|
|
|
if (scope.find_owner(name) === instance_scope) {
|
|
|
|
if (scope.find_owner(name) === instance_scope) {
|
|
|
|
const variable = component.var_lookup.get(name);
|
|
|
|
const variable = component.var_lookup.get(name);
|
|
|
|
variable['argument'] = true;
|
|
|
|
variable['argument'] = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|