Class: ConsExpression
Cons expression, represent a concatenation of a head and a tail
Example
ts
f = x : xsConstructors
Constructor
new ConsExpression(
head,tail,loc?):ConsExpression
Parameters
| Parameter | Type |
|---|---|
head | Expression |
tail | Expression |
loc? | SourceLocation |
Returns
ConsExpression
Overrides
ASTNode.constructor
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