Constructors
constructor
- new Position(lineNumber: number, column: number): Position
-
Parameters
-
lineNumber: number
-
column: number
Properties
Readonly column
column: number
Readonly lineNumber
lineNumber: number
Methods
clone
-
delta
- delta(deltaLineNumber?: number, deltaColumn?: number): Position
-
Parameters
-
Optional deltaLineNumber: number
-
Optional deltaColumn: number
equals
-
Parameters
Returns boolean
isBefore
-
Parameters
Returns boolean
isBeforeOrEqual
-
Parameters
Returns boolean
toString
-
Returns string
with
- with(newLineNumber?: number, newColumn?: number): Position
-
Parameters
-
Optional newLineNumber: number
-
Optional newColumn: number
Static compare
-
Parameters
Returns number
Static equals
-
Parameters
Returns boolean
Static isBefore
-
Parameters
Returns boolean
Static isBeforeOrEqual
-
Parameters
Returns boolean
Static isIPosition
- isIPosition(obj: any): obj is IPosition
-
Parameters
Returns obj is IPosition
Static lift
-
Parameters
A position in the editor.