Disallow await as expr
commit75be391d8a18cb53222b79d343b8bcb11c8d18b0
authorOguz Ulgen <oulgen@fb.com>
Tue, 12 Jun 2018 18:33:14 +0000 (12 11:33 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 12 Jun 2018 19:18:45 +0000 (12 12:18 -0700)
treee8994566967148820e43c3a250f373925f864556
parent57ba9d4e2b0ba5f94014e6fd2ffd7584133e47a1
Disallow await as expr

Summary: Previous diff disallowed it at the emitter phase, lets move it to the parsing phase and also cover all the cases.

Reviewed By: jamesjwu

Differential Revision: D8363293

fbshipit-source-id: 33c257497bd2982a691bbe5f9dfd4d8b3c905f3a
12 files changed:
hphp/hack/src/hhbc/emit_env.ml
hphp/hack/src/hhbc/emit_expression.ml
hphp/hack/src/hhbc/emit_statement.ml
hphp/hack/src/parser/full_fidelity_parser_errors.ml
hphp/hack/src/parser/full_fidelity_syntax_error.ml
hphp/hack/src/parser/full_fidelity_syntax_error.mli
hphp/hack/test/full_fidelity/cases/test_list_precedence..php.sexp.exp [deleted file]
hphp/hack/test/full_fidelity/cases/test_list_precedence.php [deleted file]
hphp/hack/test/full_fidelity/cases/test_list_precedence.php.errors.exp [deleted file]
hphp/hack/test/full_fidelity/cases/test_list_precedence.php.sexp.exp [deleted file]
hphp/test/slow/using/await_as_expr_in_using.php [new file with mode: 0644]
hphp/test/slow/using/await_as_expr_in_using.php.expectf [new file with mode: 0644]