Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((ErrorId ?? -1) ^ ErrorPosition.GetHashCode());
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((SourceSpan.GetHashCode() * 397) ^ Line);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = Span.GetHashCode();
         hash = (hash * 397) ^ StartLine;
         hash = (hash * 397) ^ EndLineColumn;
         hash = (hash * 397) ^ FullFilePath.Length;
         return(hash);
     }
 }
Пример #4
0
 public override int GetHashCode()
 => Hash.Combine(
     Document,
     SourceSpan.GetHashCode());