Constructors
constructor
- new Range(startLineNumber: number, startColumn: number, endLineNumber: number, endColumn: number): Range
-
Parameters
-
startLineNumber: number
-
startColumn: number
-
endLineNumber: number
-
endColumn: number
Properties
Readonly endColumn
endColumn: number
Readonly endLineNumber
endLineNumber: number
Readonly startColumn
startColumn: number
Readonly startLineNumber
startLineNumber: number
Methods
collapseToStart
-
containsPosition
- containsPosition(position: IPosition): boolean
-
Parameters
Returns boolean
containsRange
- containsRange(range: IRange): boolean
-
Parameters
Returns boolean
equalsRange
- equalsRange(other: IRange | null): boolean
-
Parameters
Returns boolean
getEndPosition
-
getStartPosition
-
intersectRanges
-
Parameters
Returns Range | null
isEmpty
-
Returns boolean
plusRange
-
Parameters
setEndPosition
- setEndPosition(endLineNumber: number, endColumn: number): Range
-
Parameters
-
endLineNumber: number
-
endColumn: number
setStartPosition
- setStartPosition(startLineNumber: number, startColumn: number): Range
-
Parameters
-
startLineNumber: number
-
startColumn: number
strictContainsRange
- strictContainsRange(range: IRange): boolean
-
Parameters
Returns boolean
toString
-
Returns string
Static areIntersecting
-
Parameters
Returns boolean
Static areIntersectingOrTouching
-
Parameters
Returns boolean
Static collapseToStart
-
Parameters
Static compareRangesUsingEnds
-
Parameters
Returns number
Static compareRangesUsingStarts
- compareRangesUsingStarts(a: IRange | null | undefined, b: IRange | null | undefined): number
-
Parameters
Returns number
Static containsPosition
-
Parameters
Returns boolean
Static containsRange
-
Parameters
Returns boolean
Static equalsRange
-
Parameters
Returns boolean
Static fromPositions
-
Parameters
Static getEndPosition
-
Parameters
Static getStartPosition
-
Parameters
Static intersectRanges
-
Parameters
Returns Range | null
Static isEmpty
- isEmpty(range: IRange): boolean
-
Parameters
Returns boolean
Static isIRange
- isIRange(obj: any): obj is IRange
-
Parameters
Returns obj is IRange
Static lift
- lift(range: undefined | null): null
- lift(range: IRange): Range
-
Parameters
Returns null
-
Parameters
Static plusRange
-
Parameters
Static spansMultipleLines
- spansMultipleLines(range: IRange): boolean
-
Parameters
Returns boolean
Static strictContainsRange
- strictContainsRange(range: IRange, otherRange: IRange): boolean
-
Parameters
Returns boolean
A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)