Class: TypeClass
Represents a type class declaration.
Example
ts
class Eq a where
(==) :: a -> a -> Bool
(/=) :: a -> a -> BoolConstructors
Constructor
new TypeClass(
name,variable,signatures,loc?):TypeClass
Parameters
| Parameter | Type |
|---|---|
name | SymbolPrimitive |
variable | SymbolPrimitive |
signatures | TypeSignature[] |
loc? | SourceLocation |
Returns
TypeClass
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