Fix special case of alternate if statements
commit99f6deb369939d608dba8ce3053b4849e80430a3
authorVassil Mladenov <vmladenov@fb.com>
Wed, 9 May 2018 01:03:43 +0000 (8 18:03 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 9 May 2018 01:08:16 +0000 (8 18:08 -0700)
tree5f71360b1ac36499297cdcc6f906a5fc98fd1340
parent95e3ba0c842bc2cd28420d3bb175fe96df879c97
Fix special case of alternate if statements

Summary:
Fixes https://github.com/facebook/hhvm/issues/8185

```
if (0):
endif;
```
no longer parses a missing if body

Reviewed By: oulgen

Differential Revision: D7916752

fbshipit-source-id: 1ca443ce797f6c68a50334a0308054eb70ae7dd2
hphp/hack/src/parser/full_fidelity_parser_helpers.ml
hphp/hack/test/full_fidelity/cases/test_alternate_if_empty_body.php [new file with mode: 0644]
hphp/hack/test/full_fidelity/cases/test_alternate_if_empty_body.php.sexp.exp [new file with mode: 0644]