Range$Typings extension
Properties
-
end
→ Position
-
The end position. It is after or equal to {@link Range.startstart}.
no setter
-
isEmpty
↔ bool
-
true
if start
and end
are equal.
getter/setter pair
-
isSingleLine
↔ bool
-
true
if start.line
and end.line
are equal.
getter/setter pair
-
start
→ Position
-
The start position. It is before or equal to {@link Range.endend}.
no setter
-
with$
→ ({Range Function(IInline2 change) $1, Range Function([Position? start, Position? end]) $2})
-
Overload accessor: $1, $2
no setter
Methods
-
contains(Object positionOrRange)
→ bool
-
Check if a position or a range is contained in this range.
-
intersection(Range range)
→ Range?
-
Intersect
range
with this range and returns a new range or undefined
if the ranges have no overlap.
-
isEqual(Range other)
→ bool
-
Check if
other
equals this range.
-
union(Range other)
→ Range
-
Compute the union of
other
with this range.