Skip to main content

Location

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

Index

Constructors

constructor

Properties

readonlyend

end: number

The character offset at which this Node ends.

readonlyendToken

endToken: Token

The Token at which this Node ends.

readonlysource

source: Source

The Source document the AST represents.

readonlystart

start: number

The character offset at which this Node begins.

readonlystartToken

startToken: Token

The Token at which this Node begins.

Accessors

[toStringTag]

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

Methods

toJSON

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

    • end: number
    • start: number