Location

class Location(start: Int, end: Int, startToken: Token, endToken: Token, source: Source)

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

Constructors

Location
Link copied to clipboard
fun Location(startToken: Token, endToken: Token, source: Source)
Location
Link copied to clipboard
fun Location(start: Int, end: Int, startToken: Token, endToken: Token, source: Source)

Types

Companion
Link copied to clipboard
object Companion

Functions

printLocation
Link copied to clipboard
fun printLocation(): String

Properties

end
Link copied to clipboard
val end: Int
The character offset at which this Node ends.
endToken
Link copied to clipboard
val endToken: Token
The Token at which this Node ends.
source
Link copied to clipboard
val source: Source
The Source document the AST represents.
start
Link copied to clipboard
val start: Int
The character offset at which this Node begins.
startToken
Link copied to clipboard
val startToken: Token
The Token at which this Node begins.