WhileNode constructor

WhileNode(
  1. Node<dynamic, LangVal<LangType>> condition,
  2. BlockNode block
)

Constructs a while loop with condition and body block.

Parameters:

  • condition: Expression that evaluates to the loop condition (0 = false, non-zero = true)
  • block: Block of statements to execute in each iteration

Implementation

WhileNode(Node<dynamic, LangVal> condition, BlockNode block)
    : super(null, [condition, block]);