Options
All
  • Public
  • Public/Protected
  • All
Menu

A position in the editor.

Hierarchy

  • Position

Index

Constructors

  • new Position(lineNumber: number, column: number): Position

Properties

column: number

column (the first character in a line is between column 1 and column 2)

lineNumber: number

line number (starts at 1)

Methods

  • delta(deltaLineNumber?: number, deltaColumn?: number): Position
  • Derive a new position from this position.

    Parameters

    • Optional deltaLineNumber: number

      line number delta

    • Optional deltaColumn: number

      column delta

    Returns Position

  • toString(): string
  • with(newLineNumber?: number, newColumn?: number): Position
  • Create a new position from this position.

    Parameters

    • Optional newLineNumber: number

      new line number

    • Optional newColumn: number

      new column

    Returns Position