visitWhileLoopStmt method
Implementation
@override
Object? visitWhileLoopStmt(WhileLoopStmt whileLoopStmt) {
while (true) {
final cond = whileLoopStmt.expr.accept(this);
if (cond == false || cond == null) break;
for (Stmt stmt in whileLoopStmt.body) {
ctrlStruct = ControlStructure(
whileLoopStmt,
counter: whileLoopStmt.body.indexOf(stmt),
);
stmt.accept(this);
}
}
return null;
}