var AST_LabelRef = DEFNODE("LabelRef", null, {
$documentation: "Reference to a label symbol",
-}, AST_SymbolRef);
+}, AST_Symbol);
var AST_This = DEFNODE("This", null, {
$documentation: "The `this` symbol",
});
return true;
}
- if (node instanceof AST_SymbolRef && !(node instanceof AST_LabelRef)) {
+ if (node instanceof AST_SymbolRef) {
push_uniq(in_use, node.definition());
return true;
}
if (decl instanceof AST_SymbolDeclaration) {
decl.init.forEach(function(init){
var tw = new TreeWalker(function(node){
- if (node instanceof AST_SymbolRef
- && !(node instanceof AST_LabelRef)) {
+ if (node instanceof AST_SymbolRef) {
push_uniq(in_use, node.definition());
}
});