public override int GetHashCode()
 {
     unchecked
     {
         return(((Lexeme != null ? Lexeme.GetHashCode() : 0) * 397) ^ (int)Type);
     }
 }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Lexeme != null ? Lexeme.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Type;
         hashCode = (hashCode * 397) ^ Value.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #3
0
 /// <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);
     }
 }
Beispiel #4
0
 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);
     }
 }
Beispiel #5
0
 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());
 }
Beispiel #7
0
 public override int GetHashCode()
 {
     return(Lexeme.GetHashCode());
 }