Diagnostics

This commit is contained in:
nub31
2025-07-23 00:43:50 +02:00
parent efe13730e7
commit 5e78f63e93
7 changed files with 193 additions and 45 deletions

View File

@@ -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);