Options
All
  • Public
  • Public/Protected
  • All
Menu

Contains a range of UTF-8 character offsets and token references that identify the region of the source from which the AST derived.

Hierarchy

  • Location

Index

Constructors

  • new Location(startToken: Token, endToken: Token, source: Source): Location
  • Parameters

    • startToken: Token
    • endToken: Token
    • source: Source

    Returns Location

Properties

end: number

The character offset at which this Node ends.

endToken: Token

The Token at which this Node ends.

source: Source

The Source document the AST represents.

start: number

The character offset at which this Node begins.

startToken: Token

The Token at which this Node begins.

Accessors

  • get [toStringTag](): string
  • Returns string

Methods

  • toJSON(): { end: number; start: number }
  • Returns { end: number; start: number }

    • end: number
    • start: number

Generated using TypeDoc