Skip to content

Commit 206e937

Browse files
committed
i broked something when refactoring. undoing that change. java looks good again. moving 1.0 tag to this.
1 parent 4f95ea7 commit 206e937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/org/antlr/codebuff/CollectFeatures.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ public static int[] getNodeFeatures(Map<Token, TerminalNode> tokenToNodeMap,
479479
ParserRuleContext ancestorParent = null;
480480
ParserRuleContext ancestorParent2 = null;
481481
if ( earliestLeftAncestor==null ) { // just use regular parent then
482-
ancestorParent = (ParserRuleContext)node.getParent();
482+
ancestorParent = getParent(node);
483483
ancestorParent2 = ancestorParent.getParent(); // get immediate parent for context
484484
}
485485
else {

0 commit comments

Comments
 (0)