|
@@ -20,10 +20,18 @@ abstract class BufferRange {
|
|
|
|
|
|
|
|
BufferRange get normalized;
|
|
BufferRange get normalized;
|
|
|
|
|
|
|
|
|
|
+ /// Convert this range to segments of single lines.
|
|
|
Iterable<BufferSegment> toSegments();
|
|
Iterable<BufferSegment> toSegments();
|
|
|
|
|
|
|
|
|
|
+ /// Returns true if the given[position] is within this range.
|
|
|
bool contains(CellOffset position);
|
|
bool contains(CellOffset position);
|
|
|
|
|
+
|
|
|
|
|
+ /// Returns the smallest range that contains both this range and the given
|
|
|
|
|
+ /// [range].
|
|
|
BufferRange merge(BufferRange range);
|
|
BufferRange merge(BufferRange range);
|
|
|
|
|
+
|
|
|
|
|
+ /// Returns the smallest range that contains both this range and the given
|
|
|
|
|
+ /// [position].
|
|
|
BufferRange extend(CellOffset position);
|
|
BufferRange extend(CellOffset position);
|
|
|
|
|
|
|
|
@override
|
|
@override
|