Skip to content

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 ​

ParameterType
nameSymbolPrimitive
fieldsField[]
loc?SourceLocation

Returns ​

Constructor

Overrides ​

ASTNode.constructor