Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Lexeme != null ? Lexeme.GetHashCode() : 0) * 397) ^ (int)Type);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 6
0
 /// <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());
 }
Ejemplo n.º 7
0
 public override int GetHashCode()
 {
     return(Lexeme.GetHashCode());
 }