JS: LL1Analyzer passing PredictionContext incorrectly to ATNConfig constructor

The PredictionContext should be passed to the ATNConfig constructor
in the first argument, the params object. Instead, it is being passed
as the second argument which is intended to be the config.
This commit is contained in:
David Tymon 2015-12-24 13:01:40 +11:00
parent ac3d78554c
commit f40ce5a188
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ LL1Analyzer.prototype.LOOK = function(s, stopState, ctx) {
// is {@code null}.
///
LL1Analyzer.prototype._LOOK = function(s, stopState , ctx, look, lookBusy, calledRuleStack, seeThruPreds, addEOF) {
var c = new ATNConfig({state:s, alt:0}, ctx);
var c = new ATNConfig({state:s, alt:0, context: ctx}, null);
if (lookBusy.contains(c)) {
return;
}