Skip to content

Class: NilPrimitive

Generic null/undefined primitive

Constructors

Constructor

new NilPrimitive(value, loc?): NilPrimitive

Parameters

ParameterType
valuenull
loc?SourceLocation

Returns

NilPrimitive

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