Constructors
constructor
- new Location(startToken: Token, endToken: Token, source: Source): Location
Parameters
startToken: Token
endToken: Token
Properties
Readonly end
end: number
Readonly endToken
endToken: Token
Readonly source
Readonly start
start: number
Readonly startToken
startToken: Token
Accessors
[toStringTag]
- get [toStringTag](): string
Returns string
Methods
toJSON
- toJSON(): { end: number; start: number }
Returns { end: number; start: number }
Contains a range of UTF-8 character offsets and token references that identify the region of the source from which the AST derived.