Skip to content

Class: LetInExpression

Represent let...in expressions normally used in Haskell

Example

ts
f = let x = 2 in x * 4

Constructors

Constructor

new LetInExpression(declarations, expression, loc?): LetInExpression

Parameters

ParameterType
declarationsSequence
expressionExpression
loc?SourceLocation

Returns

LetInExpression

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