Lots of work for handling incomplete code and inspections better

This commit is contained in:
2018-11-25 19:30:18 +01:00
parent 0b6359f499
commit cae3d7fb53
50 changed files with 457 additions and 97 deletions

View File

@@ -90,6 +90,17 @@ namespace Upsilon
Span = span;
}
public (int Position, int PositionOnLine) GetStartLine()
{
return Diagnostics.ScriptString.GetLinePosition(Span.Start);
}
public (int Position, int PositionOnLine) GetEndLine()
{
return Diagnostics.ScriptString.GetLinePosition(Span.End);
}
public override string ToString()
{
var linePos = Diagnostics.ScriptString.GetLinePosition(Span.Start);