ParseLocation

constructor()

Allocate a new ParseLocation.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


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

Allocate a new ParseLocation using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


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.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

bytes

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

chars

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

lines

the line of the location in the parse buffer

lineBytes

the position in the line, as bytes

lineChars

the position in the line, as characters


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.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

bytes

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

chars

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

lines

the line of the location in the parse buffer

lineBytes

the position in the line, as bytes

lineChars

the position in the line, as characters

scope

The AutofreeScope to allocate this structure in.


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