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