Closed psfblair closed 4 years ago
Good catch, that was dead code, left behind during some refactoring work. The unreachable code is redundant with this code, which handles the AST node label:
case LABEL_AST:
clause = ast(astNode.getFirstChild().getText(), parseASTNode(astNode.getSecondChild().getFirstChild()));
break;
From what my IDE can tell, and as far as I can see, nextNodeLabel is never anything but null here, so the clause never gets relabeled. This is MetaGrammar.java line 318: