Skip to content

NodeData

[Source]

Contains strongly-typed data for various AST nodes.

trait val NodeData

Public Functions

name

[Source]

An informative identifier for the type of data the AST node holds.

fun box name()
: String val

Returns


add_json_props

[Source]

Add properties to the JSON representation of the AST node.

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


clone

[Source]

Clone the strongly-typed data during a syntax tree transformation.

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

Parameters

Returns