operator == method
An ATN configuration is equal to another if both have the same state, they predict the same alternative, and syntactic/semantic contexts are the same.
Implementation
@override
bool operator ==(Object other) {
if (identical(this, other)) {
return true;
} else if (other is LexerATNConfig) {
final lexerOther = other;
if (passedThroughNonGreedyDecision !=
lexerOther.passedThroughNonGreedyDecision) {
return false;
}
if (lexerActionExecutor != lexerOther.lexerActionExecutor) {
return false;
}
return super == other;
}
return false;
}