/// <summary> /// Returns a hash code for this token. /// </summary> /// <returns>A hash code for this token, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() { unchecked { int hashCode = End; hashCode = (hashCode * 397) ^ Start; hashCode = (hashCode * 397) ^ (Lexeme != null ? Lexeme.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Lemmas != null ? Lemmas.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { return(Lemmas.GetHashCode()); }