fix missing variable declarations
This commit is contained in:
parent
2fe1d8333f
commit
a053d908fb
|
@ -361,7 +361,7 @@ Hash.prototype.update = function () {
|
|||
k = (k << 15) | (k >>> (32 - 15));
|
||||
k = k * 0x1B873593;
|
||||
this.count = this.count + 1;
|
||||
hash = this.hash ^ k;
|
||||
var hash = this.hash ^ k;
|
||||
hash = (hash << 13) | (hash >>> (32 - 13));
|
||||
hash = hash * 5 + 0xE6546B64;
|
||||
this.hash = hash;
|
||||
|
|
|
@ -1444,7 +1444,7 @@ ParserATNSimulator.prototype.precedenceTransition = function(config, pt, collec
|
|||
c = new ATNConfig({state:pt.target}, config); // no pred context
|
||||
}
|
||||
} 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);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -32,7 +32,7 @@ function DFA(atnStartState, decision) {
|
|||
{
|
||||
if (atnStartState.isPrecedenceDecision) {
|
||||
this.precedenceDfa = true;
|
||||
precedenceState = new DFAState(null, new ATNConfigSet());
|
||||
var precedenceState = new DFAState(null, new ATNConfigSet());
|
||||
precedenceState.edges = [];
|
||||
precedenceState.isAcceptState = false;
|
||||
precedenceState.requiresFullContext = false;
|
||||
|
|
Loading…
Reference in New Issue