Skip to content

Class: While ​

Represents a while loop control structure.

Example ​

ts
while (x > 0) { ... }

Constructors ​

Constructor ​

new While(condition, body, loc?): While

Parameters ​

ParameterType
conditionExpression
bodyExpression
loc?SourceLocation

Returns ​

While

Overrides ​

ASTNode.constructor