parseContinue method

Statement parseContinue()

Implementation

Statement parseContinue() {
  int? start = token!.startOffset;
  int? line = token!.line;
  assert(token!.text == 'continue');
  consume(Token.NAME);
  Name? name;
  if (token!.type == Token.NAME && !token!.afterLinebreak!) {
    name = parseName();
  }
  consumeSemicolon();
  return ContinueStatement(name)
    ..start = start
    ..end = endOffset
    ..line = line;
}