visitRepeatUntilLoopStmt method

  1. @override
String visitRepeatUntilLoopStmt(
  1. RepeatUntilLoopStmt repeatUntilLoopStmt
)
override

Implementation

@override
String visitRepeatUntilLoopStmt(RepeatUntilLoopStmt repeatUntilLoopStmt) {
  final expr = repeatUntilLoopStmt.untilExpr.accept(this);
  late final String body;
  wrapScope(current, block: () {
    body = repeatUntilLoopStmt.body.map((e) => e.accept(this)).join(_sep);
  });
  return 'repeat$_sep$body${_sep}until($expr)';
}