fix ts issues

pull/4000/head
daszgfz 6 years ago
parent 0d9d8dccc8
commit 0fb0f16d72

@ -796,13 +796,14 @@ 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;
}
} }
}); });
} }

Loading…
Cancel
Save