parseBreak method

Statement parseBreak()

Implementation

Statement parseBreak() {
  int start = token?.startOffset??0;
  int line = token?.line??0;
  assert(token?.text == 'break');
  consume(Token.NAME);
  Name? name;
  if (token?.type == Token.NAME && !(null!=token && token!.afterLinebreak)) {
    name = parseName();
  }
  consumeSemicolon();
  return new BreakStatement(name)
    ..start = start
    ..end = endOffset
    ..line = line;
}