parseArrowFunctionBody method

BlockStatement parseArrowFunctionBody()

Implementation

BlockStatement parseArrowFunctionBody() {
  if (token!.type == Token.LBRACE) {
    return parseBlock();
  }
  Expression exp = parseExpression();
  if (token!.type == Token.SEMICOLON) {
    consumeSemicolon();
  }
  return BlockStatement([ReturnStatement(exp)]);
}