fix missing variable declarations

This commit is contained in:
robert 2017-01-11 15:28:59 +00:00
parent 2fe1d8333f
commit a053d908fb
3 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,7 @@ Hash.prototype.update = function () {
k = (k << 15) | (k >>> (32 - 15)); k = (k << 15) | (k >>> (32 - 15));
k = k * 0x1B873593; k = k * 0x1B873593;
this.count = this.count + 1; this.count = this.count + 1;
hash = this.hash ^ k; var hash = this.hash ^ k;
hash = (hash << 13) | (hash >>> (32 - 13)); hash = (hash << 13) | (hash >>> (32 - 13));
hash = hash * 5 + 0xE6546B64; hash = hash * 5 + 0xE6546B64;
this.hash = hash; this.hash = hash;

View File

@ -1444,7 +1444,7 @@ ParserATNSimulator.prototype.precedenceTransition = function(config, pt, collec
c = new ATNConfig({state:pt.target}, config); // no pred context c = new ATNConfig({state:pt.target}, config); // no pred context
} }
} else { } else {
newSemCtx = SemanticContext.andContext(config.semanticContext, pt.getPredicate()); var newSemCtx = SemanticContext.andContext(config.semanticContext, pt.getPredicate());
c = new ATNConfig({state:pt.target, semanticContext:newSemCtx}, config); c = new ATNConfig({state:pt.target, semanticContext:newSemCtx}, config);
} }
} else { } else {

View File

@ -32,7 +32,7 @@ function DFA(atnStartState, decision) {
{ {
if (atnStartState.isPrecedenceDecision) { if (atnStartState.isPrecedenceDecision) {
this.precedenceDfa = true; this.precedenceDfa = true;
precedenceState = new DFAState(null, new ATNConfigSet()); var precedenceState = new DFAState(null, new ATNConfigSet());
precedenceState.edges = []; precedenceState.edges = [];
precedenceState.isAcceptState = false; precedenceState.isAcceptState = false;
precedenceState.requiresFullContext = false; precedenceState.requiresFullContext = false;