visitWhileLoopStmt method
Implementation
@override
GzBaseNode visitWhileLoopStmt(WhileLoopStmt whileLoopStmt) {
final exprs = whileLoopStmt.expr.accept(this);
final body = whileLoopStmt.body.map((e) => e.accept(this)).toList();
return node(
'while',
shape: 'diamond',
color: 'yellow',
children: [
node('expr', color: pink, children: [exprs]),
node('do', color: 'yellow', children: body),
],
);
}