parseExpressionStatement method

Statement parseExpressionStatement()

Implementation

Statement parseExpressionStatement() {
  int start = token?.startOffset??0; // Note: not the same as exp.start due to removal of parentheses
  Expression exp = parseExpression();
  consumeSemicolon();
  return new ExpressionStatement(exp)
    ..start = start
    ..end = endOffset
    ..line = exp.line;
}