Diagnostics
This commit is contained in:
@@ -18,17 +18,6 @@ public readonly struct SourceLocation : IEquatable<SourceLocation>
|
||||
return $"{Line}:{Column}";
|
||||
}
|
||||
|
||||
public int CompareTo(SourceLocation other)
|
||||
{
|
||||
var lineComparison = Line.CompareTo(other.Line);
|
||||
if (lineComparison == 0)
|
||||
{
|
||||
return Column.CompareTo(other.Column);
|
||||
}
|
||||
|
||||
return lineComparison;
|
||||
}
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
return obj is SourceLocation other && Equals(other);
|
||||
|
||||
Reference in New Issue
Block a user