forked from jasder/antlr
use RuleContext not ParserRuleContext during prediction
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9510]
This commit is contained in:
parent
4400ba169f
commit
4d942c37c8
|
@ -808,9 +808,7 @@ public class ParserATNSimulator<Symbol> extends ATNSimulator {
|
|||
}
|
||||
ATNState p = config.state;
|
||||
RuleContext newContext =
|
||||
new ParserRuleContext((ParserRuleContext)config.context,
|
||||
p.stateNumber,
|
||||
t.target.stateNumber);
|
||||
new RuleContext(config.context, p.stateNumber);
|
||||
return new ATNConfig(config, t.target, newContext);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue