Ejemplo n.º 1
0
 public static Range ToLineRange(this ITextRange textRange, IEditorBufferSnapshot snapshot)
 => new Range
 {
     Start = snapshot.ToLinePosition(textRange.Start), End = snapshot.ToLinePosition(textRange.End)
 };
Ejemplo n.º 2
0
 public static Range ToLineRange(this IEditorBufferSnapshot snapshot, int start, int end)
 => new Range
 {
     Start = snapshot.ToLinePosition(start), End = snapshot.ToLinePosition(end)
 };