TypedefClass¶
A class-like type definition (a trait
, interface
, class
, struct
or
actor
).
Implements¶
- NodeData val
Constructors¶
create¶
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¶
- 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)
Returns¶
- TypedefClass val^
Public fields¶
let kind: NodeWith[Keyword val] val¶
let raw: Bool val¶
let cap: (NodeWith[Keyword val] val | None val)¶
let identifier: NodeWith[Identifier val] val¶
let type_params: (NodeWith[TypeParams val] val | None val)¶
let constraint: (NodeWith[(TypeArrow val | TypeAtom val | TypeTuple val | TypeInfix val | TypeNominal val | TypeLambda val)] val | None val)¶
let members: (NodeWith[TypedefMembers val] val | None val)¶
Public Functions¶
name¶
Returns¶
- String val
clone¶
Parameters¶
Returns¶
- NodeData val
add_json_props¶
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¶
- node: Node box
- props: Array[(String val , (Object box | Sequence box | String box | I128 val | F64 val | Bool val | Null val))] ref
Returns¶
- None val