var ldef = node.variables.get(ref.name);
if (ldef && (ldef === def || def.undeclared || node.parent_scope.find_variable(ref) === def)) {
references[ldef.id] = false;
+ } else {
+ mark(ref, true, false);
}
return true;
});
// ignore lvalues
if (parent instanceof U.AST_Assign && parent.left === node) return;
- if (parent instanceof U.AST_Destructured) return;
+ if (parent instanceof U.AST_DestructuredArray) return;
if (parent instanceof U.AST_DestructuredKeyVal && parent.value === node) return;
if (parent instanceof U.AST_Unary && parent.expression === node) switch (parent.operator) {
case "++":