Class Position
Expand description
Constructors§
Properties§
§§
readonly column: numbercolumn (the first character in a line is between column 1 and column 2)
readonly line Number: numberline number (starts at 1)
Methods§
§delta(
deltaLineNumber?: number,
deltaColumn?: number,
): Position
delta(
deltaLineNumber?: number,
deltaColumn?: number,
): Position
Derive a new position from this position.
§isBefore(other: IPosition): boolean
isBefore(other: IPosition): boolean
Test if this position is before other position. If the two positions are equal, the result will be false.
§isBeforeOrEqual(other: IPosition): boolean
isBeforeOrEqual(other: IPosition): boolean
Test if this position is before other position. If the two positions are equal, the result will be true.
§toString(): string
toString(): string
Convert to a human-readable representation.
§with(newLineNumber?: number, newColumn?: number): Position
with(newLineNumber?: number, newColumn?: number): Position
Create a new position from this position.
§isBefore(a: IPosition, b: IPosition): boolean
isBefore(a: IPosition, b: IPosition): boolean
Test if position a is before position b.
If the two positions are equal, the result will be false.
A position in the editor.