Skip to content

Class: ListUnaryOperation

Represents a unary operation on a list, such as getting the head or tail.

Constructors

Constructor

new ListUnaryOperation(operator, operand, loc?): ListUnaryOperation

Parameters

ParameterType
operatorListUnaryOperator
operandExpression
loc?SourceLocation

Returns

ListUnaryOperation

Overrides

ASTNode.constructor

Methods

getMetadata()

getMetadata<T>(key): T

Type Parameters

Type Parameter
T

Parameters

ParameterType
keystring

Returns

T

Inherited from

ASTNode.getMetadata


hasMetadata()

hasMetadata(key): boolean

Parameters

ParameterType
keystring

Returns

boolean

Inherited from

ASTNode.hasMetadata


setMetadata()

setMetadata(key, value): void

Parameters

ParameterType
keystring
valueany

Returns

void

Inherited from

ASTNode.setMetadata