Class: PrimitiveMethod
Declaration of custom primitive operators - also known as operator overriding.
Example
ts
def ==(other)
end
def hash
endConstructors
Constructor
new PrimitiveMethod(
operator,equations,loc):PrimitiveMethod
Parameters
| Parameter | Type |
|---|---|
operator | Operator |
equations | Equation[] |
loc | SourceLocation |
Returns
PrimitiveMethod
Overrides
ASTNode.constructor
Properties
| Property | Type |
|---|---|
equations | Equation[] |
operator | Operator |
Methods
getMetadata()
getMetadata<
T>(key):T
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
T
Inherited from
ASTNode.getMetadata
hasMetadata()
hasMetadata(
key):boolean
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
Inherited from
ASTNode.hasMetadata
setMetadata()
setMetadata(
key,value):void
Parameters
| Parameter | Type |
|---|---|
key | string |
value | any |
Returns
void
Inherited from
ASTNode.setMetadata