Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Position

Index

Constructors

  • new Position(line: number, char: number): Position

Properties

_character: number
_line: number

Accessors

  • get character(): number
  • get line(): number

Methods

  • isAfterOrEqual(other: Position): boolean
  • isBeforeOrEqual(other: Position): boolean
  • toJSON(): unknown
  • translate(change: { characterDelta?: number; lineDelta?: number }): Position
  • translate(lineDelta?: number, characterDelta?: number): Position
  • with(change: { character?: number; line?: number }): Position
  • with(line?: number, character?: number): Position
  • isPosition(other: unknown): other is Position