Esempio n. 1
0
 public bool Contains(SourceRange other)
 {
     return(SourceIndex == other.SourceIndex && Offset <= other.Offset && OffsetEnd >= other.OffsetEnd);
 }
Esempio n. 2
0
 public bool Equals(SourceRange other)
 {
     return(other.Offset == Offset && other.Length == Length && other.SourceIndex == SourceIndex);
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(SourceRange.GetHashCode());
 }