示例#1
0
 public bool Contains(SourceRange other)
 {
     return(SourceIndex == other.SourceIndex && Offset <= other.Offset && OffsetEnd >= other.OffsetEnd);
 }
示例#2
0
 public bool Equals(SourceRange other)
 {
     return(other.Offset == Offset && other.Length == Length && other.SourceIndex == SourceIndex);
 }
示例#3
0
文件: AstNode.cs 项目: zutobg/Meadow
 public override int GetHashCode()
 {
     return(SourceRange.GetHashCode());
 }