ExpDecl¶
An alias declaration. Usually the LHS of an assignment expression.
- kind
: let
or var
.
- identifier
: the name of the binding.
- decl_type
: the type, if any.
Implements¶
- NodeData val
Constructors¶
create¶
new val create(
kind': NodeWith[Keyword val] val,
identifier': NodeWith[Identifier val] val,
decl_type': (NodeWith[(TypeArrow val | TypeAtom val | TypeTuple val | TypeInfix val | TypeNominal val | TypeLambda val)] val | None val))
: ExpDecl val^
Parameters¶
- kind': NodeWith[Keyword val] val
- identifier': NodeWith[Identifier val] val
- decl_type': (NodeWith[(TypeArrow val | TypeAtom val | TypeTuple val | TypeInfix val | TypeNominal val | TypeLambda val)] val | None val)
Returns¶
- ExpDecl val^
Public fields¶
let kind: NodeWith[Keyword val] val¶
let identifier: NodeWith[Identifier val] val¶
let decl_type: (NodeWith[(TypeArrow val | TypeAtom val | TypeTuple val | TypeInfix val | TypeNominal val | TypeLambda 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