Skip to content

TypedefClass

[Source]

A class-like type definition (a trait, interface, class, struct or actor).

class val TypedefClass is
  NodeData val

Implements


Constructors

create

[Source]

new val create(
  kind': NodeWith[Keyword val] val,
  raw': Bool val,
  cap': (NodeWith[Keyword val] val | None val),
  identifier': NodeWith[Identifier val] val,
  type_params': (NodeWith[TypeParams val] val | None val),
  constraint': (NodeWith[(TypeArrow val | TypeAtom val | TypeTuple val | TypeInfix val | TypeNominal val | TypeLambda val)] val | None val),
  members': (NodeWith[TypedefMembers val] val | None val))
: TypedefClass val^

Parameters

Returns


Public fields

let kind: NodeWith[Keyword val] val

[Source]


let raw: Bool val

[Source]


let cap: (NodeWith[Keyword val] val | None val)

[Source]


let identifier: NodeWith[Identifier val] val

[Source]


let type_params: (NodeWith[TypeParams val] val | None val)

[Source]


let constraint: (NodeWith[(TypeArrow val | TypeAtom val | TypeTuple val | TypeInfix val | TypeNominal val | TypeLambda val)] val | None val)

[Source]


let members: (NodeWith[TypedefMembers val] val | None 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