Skip to content

Class: LogicalBinaryOperation

Represents a binary logical operation like AND or OR.

Constructors

Constructor

new LogicalBinaryOperation(operator, left, right, loc?): LogicalBinaryOperation

Parameters

ParameterType
operatorLogicalBinaryOperator
leftExpression
rightExpression
loc?SourceLocation

Returns

LogicalBinaryOperation

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