Skip to content

Class: BooleanPrimitive

Generic boolean primitive

Constructors

Constructor

new BooleanPrimitive(value, loc?): BooleanPrimitive

Parameters

ParameterType
valueboolean
loc?SourceLocation

Returns

BooleanPrimitive

Overrides

ASTNode.constructor

Methods

equals()

equals(other): boolean

Compares the primitive to other Primitive passed by argument

Parameters

ParameterTypeDescription
otherPrimitiveAnother Primitive to compare to.

Returns

boolean

True if both primitive have the same value