parseDoWhile method
Implementation
Statement parseDoWhile() {
int? start = token!.startOffset;
int? line = token!.line;
assert(token!.text == 'do');
consume(Token.NAME);
Statement body = parseStatement();
consumeName('while');
consume(Token.LPAREN);
Expression condition = parseExpression();
consume(Token.RPAREN);
consumeSemicolon();
return DoWhileStatement(body, condition)
..start = start
..end = endOffset
..line = line;
}