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;
|
ATNState p = config.state;
|
||||||
RuleContext newContext =
|
RuleContext newContext =
|
||||||
new ParserRuleContext((ParserRuleContext)config.context,
|
new RuleContext(config.context, p.stateNumber);
|
||||||
p.stateNumber,
|
|
||||||
t.target.stateNumber);
|
|
||||||
return new ATNConfig(config, t.target, newContext);
|
return new ATNConfig(config, t.target, newContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue