This commit is contained in:
Eric Vergnaud 2015-10-05 21:03:37 +08:00
parent 1b01140354
commit 158ef2c567
2 changed files with 8 additions and 1 deletions

5
.gitignore vendored
View File

@ -13,6 +13,11 @@ user.build.properties
# Python
*.pyc
# CSharp
bin/
obj/
*.userprefs
# NetBeans user configuration files
nbactions*.xml
/nbproject/private/

View File

@ -162,7 +162,9 @@ LexerATNConfig.prototype.equals = function(other) {
return false;
} else if (this.passedThroughNonGreedyDecision !== other.passedThroughNonGreedyDecision) {
return false;
} else if (this.lexerActionExecutor !== other.lexerActionExecutor) {
} else if (this.lexerActionExecutor ?
!this.lexerActionExecutor.equals(other.lexerActionExecutor)
: !other.lexerActionExecutor) {
return false;
} else {
return ATNConfig.prototype.equals.call(this, other);