Skip to content

Class: TypeApplication

Represents the application of a type constructor to arguments (e.g., List Int).

Constructors

Constructor

new TypeApplication(functionType, argument, loc?): TypeApplication

Parameters

ParameterType
functionTypeType
argumentType
loc?SourceLocation

Returns

TypeApplication

Overrides

ASTNode.constructor

Methods

getMetadata()

getMetadata<T>(key): T

Type Parameters

Type Parameter
T

Parameters

ParameterType
keystring

Returns

T

Inherited from

ASTNode.getMetadata


hasMetadata()

hasMetadata(key): boolean

Parameters

ParameterType
keystring

Returns

boolean

Inherited from

ASTNode.hasMetadata


setMetadata()

setMetadata(key, value): void

Parameters

ParameterType
keystring
valueany

Returns

void

Inherited from

ASTNode.setMetadata


toString()

toString(): string

Returns a string representation of an object.

Returns

string