Properties
Private
_character
_character: number
Private
_line
_line: number
Accessors
character
- get character(): number
Returns number
line
- get line(): number
Returns number
Methods
compareTo
- compareTo(other): number
Returns number
isAfter
- isAfter(other): boolean
Returns boolean
isAfterOrEqual
- isAfterOrEqual(other): boolean
Returns boolean
isBefore
- isBefore(other): boolean
Returns boolean
isBeforeOrEqual
- isBeforeOrEqual(other): boolean
Returns boolean
isEqual
- isEqual(other): boolean
Returns boolean
toJSON
- toJSON(): unknown
Returns unknown
translate
- translate(change): Position
Parameters
- change: {
characterDelta?: number;
lineDelta?: number;
}Optional
characterDelta?: number
Optional
lineDelta?: number
- translate(lineDelta?, characterDelta?): Position
Parameters
Optional
lineDelta: numberOptional
characterDelta: number
with
- with(change): Position
Parameters
- change: {
character?: number;
line?: number;
}Optional
character?: number
Optional
line?: number
- with(line?, character?): Position
Parameters
Optional
line: numberOptional
character: number