Skip to content

Class: Field

Generic field in a Record statement. The name can be undefined to support positional-only Records

Example

ts
... { name :: String }

Constructors

Constructor

new Field(name, value, loc?): Field

Parameters

ParameterType
nameSymbolPrimitive
valueType
loc?SourceLocation

Returns

Field

Overrides

ASTNode.constructor