hashCode property

  1. @override
int hashCode
override

Caches the result of {@link #hashCode} since the hash code is an element of the performance-critical {@link LexerATNConfig#hashCode} operation.

Implementation

@override
int get hashCode {
  var hash = MurmurHash.initialize();
  for (var lexerAction in lexerActions) {
    hash = MurmurHash.update(hash, lexerAction);
  }

  return MurmurHash.finish(hash, lexerActions.length);
}