use RuleContext not ParserRuleContext during prediction

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9510]
This commit is contained in:
parrt 2011-12-01 14:24:57 -08:00
parent 4400ba169f
commit 4d942c37c8
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}