forked from jasder/antlr
rm unneeded IF check
This commit is contained in:
parent
90187039f0
commit
94d3c71b02
|
@ -106,9 +106,7 @@ public abstract class PredictionContext {
|
|||
|
||||
// If we have a parent, convert it to a PredictionContext graph
|
||||
PredictionContext parent = EMPTY;
|
||||
if ( outerContext.parent != null ) {
|
||||
parent = PredictionContext.fromRuleContext(atn, outerContext.parent);
|
||||
}
|
||||
parent = PredictionContext.fromRuleContext(atn, outerContext.parent);
|
||||
|
||||
ATNState state = atn.states.get(outerContext.invokingState);
|
||||
RuleTransition transition = (RuleTransition)state.transition(0);
|
||||
|
|
Loading…
Reference in New Issue