public override int GetHashCode() { unchecked { return(((Lexeme != null ? Lexeme.GetHashCode() : 0) * 397) ^ (int)Type); } }
public override int GetHashCode() { unchecked { var hashCode = (Lexeme != null ? Lexeme.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)Type; hashCode = (hashCode * 397) ^ Value.GetHashCode(); return(hashCode); } }
/// <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() { unchecked { var hashCode = (Lexeme != null ? Lexeme.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Column; hashCode = (hashCode * 397) ^ Row; hashCode = (hashCode * 397) ^ (int)TokenType; return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Lexeme != null ? Lexeme.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TokenType != null ? TokenType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TokenBeginIdx; hashCode = (hashCode * 397) ^ TokenEndIdx; return(hashCode); } }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns>A 32-bit signed integer hash code.</returns> public override int GetHashCode() { return(Type.GetHashCode() + Lexeme.GetHashCode() + Literal.GetHashCode() + Line.GetHashCode()); }
public override int GetHashCode() { return(Lexeme.GetHashCode()); }