forked from jasder/antlr
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:
parent
ac3d78554c
commit
f40ce5a188
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue