Implemented interface member:
10 references to CompareTo
Microsoft.CodeAnalysis (4)
Text\LinePosition.cs (4)
144return left.CompareTo(right) > 0; 149return left.CompareTo(right) >= 0; 154return left.CompareTo(right) < 0; 159return left.CompareTo(right) <= 0;
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\ActiveStatementsMap.cs (1)
225startPositionComparer: (x, y) => x.Span.Start.CompareTo(y));
Microsoft.CodeAnalysis.UnitTests (5)
LinePositionTests.cs (5)
78Assert.Equal(0, new LinePosition(1, 1).CompareTo(new LinePosition(1, 1))); 80Assert.Equal(-1, Math.Sign(new LinePosition(1, 1).CompareTo(new LinePosition(1, 2)))); 83Assert.Equal(-1, Math.Sign(new LinePosition(1, 2).CompareTo(new LinePosition(2, 1)))); 88Assert.Equal(+1, Math.Sign(new LinePosition(1, 2).CompareTo(new LinePosition(1, 1)))); 91Assert.Equal(+1, Math.Sign(new LinePosition(2, 1).CompareTo(new LinePosition(1, 2))));