Skip to content

ErrorSection

[Source]

Error sections are used to represent spans in the code where parsing has failed for some reason. There is limited support for resuming parsing after an error section.

class val ErrorSection is
  NodeData val

Implements


Constructors

create

[Source]

new val create(
  message': String val)
: ErrorSection val^

Parameters

Returns


Public fields

let message: String val

[Source]


Public Functions

name

[Source]

fun box name()
: String val

Returns


clone

[Source]

fun val clone(
  updates: HashMap[Node val, Node val, HashIs[Node val] val] val)
: NodeData val

Parameters

Returns


add_json_props

[Source]

fun box add_json_props(
  node: Node box,
  props: Array[(String val , (Object box | Sequence box | String box | I128 val | F64 val | Bool val | Null val))] ref)
: None val

Parameters

Returns