Class: Constructor
Generic constructor node. Holds an array of Field nodes.
Example
ts
data Record = Constructor { field :: String }Constructors
Constructor
new Constructor(
name,fields,loc?):Constructor
Parameters
| Parameter | Type |
|---|---|
name | SymbolPrimitive |
fields | Field[] |
loc? | SourceLocation |
Returns
Constructor
Overrides
ASTNode.constructor