ParseLocation

class ParseLocation(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

A location in a parse buffer.

Constructors

Link copied to clipboard
constructor()

Allocate a new ParseLocation.

constructor(scope: <Error class: unknown class>)

Allocate a new ParseLocation using the provided AutofreeScope.

constructor(bytes: <Error class: unknown class>, chars: <Error class: unknown class>, lines: <Error class: unknown class>, lineBytes: <Error class: unknown class>, lineChars: <Error class: unknown class>)

Allocate a new ParseLocation.

constructor(bytes: <Error class: unknown class>, chars: <Error class: unknown class>, lines: <Error class: unknown class>, lineBytes: <Error class: unknown class>, lineChars: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new ParseLocation using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
var bytes: <Error class: unknown class>

the offset of the location in the parse buffer, as bytes

Link copied to clipboard
var chars: <Error class: unknown class>

the offset of the location in the parse buffer, as characters

Link copied to clipboard
val gskParseLocationPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var lineBytes: <Error class: unknown class>

the position in the line, as bytes

Link copied to clipboard
var lineChars: <Error class: unknown class>

the position in the line, as characters

Link copied to clipboard
var lines: <Error class: unknown class>

the line of the location in the parse buffer

Functions

Link copied to clipboard
open override fun toString(): String