Skip to content

Class: SymbolPrimitive ​

Generic symbol primitive

Constructors ​

Constructor ​

new SymbolPrimitive(value, loc?): SymbolPrimitive

Parameters ​

ParameterType
valuestring
loc?SourceLocation

Returns ​

SymbolPrimitive

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