|
|
@ -60,7 +60,6 @@ export class Binding {
|
|
|
|
is_called = false;
|
|
|
|
is_called = false;
|
|
|
|
mutated = false;
|
|
|
|
mutated = false;
|
|
|
|
reassigned = false;
|
|
|
|
reassigned = false;
|
|
|
|
updated = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -77,6 +76,10 @@ export class Binding {
|
|
|
|
this.kind = kind;
|
|
|
|
this.kind = kind;
|
|
|
|
this.declaration_kind = declaration_kind;
|
|
|
|
this.declaration_kind = declaration_kind;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get updated() {
|
|
|
|
|
|
|
|
return this.mutated || this.reassigned;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export class Scope {
|
|
|
|
export class Scope {
|
|
|
@ -738,8 +741,6 @@ export function create_scopes(ast, root, allow_reactive_declarations, parent) {
|
|
|
|
const binding = left && scope.get(left.name);
|
|
|
|
const binding = left && scope.get(left.name);
|
|
|
|
|
|
|
|
|
|
|
|
if (binding !== null && left !== binding.node) {
|
|
|
|
if (binding !== null && left !== binding.node) {
|
|
|
|
binding.updated = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (left === expression) {
|
|
|
|
if (left === expression) {
|
|
|
|
binding.reassigned = true;
|
|
|
|
binding.reassigned = true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|