Lots of work for handling incomplete code and inspections better
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user