Constructors
constructor
- new Range(start, end): Range
- new Range(startLine, startColumn, endLine, endColumn): Range
Parameters
- startLine: number
- startColumn: number
- endLine: number
- endColumn: number
Accessors
isEmpty
- get isEmpty(): boolean
Returns boolean
isSingleLine
- get isSingleLine(): boolean
Returns boolean
Methods
contains
- contains(positionOrRange): boolean
Returns boolean
intersection
- intersection(other): undefined | Range
Returns undefined | Range
isEqual
- isEqual(other): boolean
Returns boolean
toJSON
- toJSON(): unknown
Returns unknown