protected TextSpan CreateSpanFor(SourceLocation location, int endPosition, Source source) { var span = new TextSpan { iStartLine = location.Line, iStartIndex = location.Column, }; if (source != null) source.GetLineIndexOfPosition(endPosition, out span.iEndLine, out span.iEndIndex); return span; }
protected TextSpan CreateSpanFor(SourceSpan span, Source source) { return CreateSpanFor(span.Location, span.EndPosition, source); }