Пример #1
0
        /// <inheritdoc />
        public int CompareTo(SourceLocation other)
        {
            var filePathOrdinal = string.Compare(FilePath, other.FilePath, StringComparison.Ordinal);

            if (filePathOrdinal != 0)
            {
                return(filePathOrdinal);
            }

            return(AbsoluteIndex.CompareTo(other.AbsoluteIndex));
        }
Пример #2
0
 public int CompareTo(SourceLocation other)
 {
     return(AbsoluteIndex.CompareTo(other.AbsoluteIndex));
 }