Skip to content

Commit 007c902

Browse files
Refactor
1 parent 1e7be4b commit 007c902

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Source/Core/Token.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,10 @@ public int CompareTo(IToken other) {
101101
}
102102
return col.CompareTo(other.col);
103103
}
104+
105+
public override string ToString()
106+
{
107+
return $"({line}, {col})";
108+
}
104109
}
105110
}

Source/ExecutionEngine/ExecutionEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ public async Task<IReadOnlyList<IVerificationTask>> GetVerificationTasks(Program
769769
var sink = new CollectingErrorSink();
770770
var resolutionErrors = program.Resolve(Options, sink);
771771

772-
string GetErrorsString() => string.Join("\n", sink.Errors.Select(t => $"({t.Token.line},{t.Token.col}): {t.Message}"));
772+
string GetErrorsString() => string.Join("\n", sink.Errors.Select(t => $"{t.Token}: {t.Message}"));
773773
if (resolutionErrors > 0)
774774
{
775775
throw new ArgumentException($"Boogie program had {resolutionErrors} resolution errors:\n{GetErrorsString()}");

0 commit comments

Comments
 (0)