rename to aliased

pull/4000/head
daszgfz 6 years ago
parent 7703e22051
commit 32768faa50

@ -802,7 +802,7 @@ export default class Component {
const { name } = arg; 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.aliased = true;
} }
} }
}); });
@ -1137,7 +1137,7 @@ export default class Component {
for (const [name, node] of top_level_function_declarations) { for (const [name, node] of top_level_function_declarations) {
if (is_hoistable(node)) { if (is_hoistable(node)) {
const variable = this.var_lookup.get(name); const variable = this.var_lookup.get(name);
if (!('argument' in variable && variable.argument)) { if (!variable.aliased) {
variable.hoistable = true; variable.hoistable = true;
hoistable_nodes.add(node); hoistable_nodes.add(node);

@ -160,5 +160,5 @@ export interface Var {
hoistable?: boolean; hoistable?: boolean;
subscribable?: boolean; subscribable?: boolean;
is_reactive_dependency?: boolean; is_reactive_dependency?: boolean;
argument?: boolean; aliased?: boolean;
} }
Loading…
Cancel
Save