예제 #1
0
 /// <summary>
 /// Converts a <see cref="TextSpan"/> in a <see cref="SourceText"/> to an OmniSharp <see cref="Range"/>.
 /// </summary>
 public static Models.V2.Range GetRangeFromSpan(this SourceText text, TextSpan span)
 => new Models.V2.Range
 {
     Start = text.GetPointFromPosition(span.Start),
     End   = text.GetPointFromPosition(span.End)
 };