Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Mark

Description of a source position, identified by byte offset, line, and column number, with an optional note.

Hierarchy

Implements

Index

Methods

column

  • column(): number

debug

display

  • display(output: Output): void

end

equals

  • equals(that: unknown): boolean

hashCode

  • hashCode(): number

line

  • line(): number

max

min

note

  • note(): string | null

offset

  • offset(): number

shift

start

toString

  • toString(): string

union

Static at

  • at(offset: number, line: number, column: number, note?: string | null): Mark
  • Returns a new Mark at the given zero-based byte offset, one-based line number, and one-based column number, with an optionally attached note.

    Parameters

    • offset: number
    • line: number
    • column: number
    • Default value note: string | null = null

    Returns Mark

Static zero