Remove alternate control flow syntaxes
commit07a8d17bc622aaf9f79b9a6022b6d47a456275da
authorKenneth Li <kqli@fb.com>
Tue, 11 Jun 2019 21:28:56 +0000 (11 14:28 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 11 Jun 2019 21:33:41 +0000 (11 14:33 -0700)
tree55ca3687f8b81d14dd5d5e44ffca816296885260
parentec2d9f686d88b5a63a07beb32f16e75ac0ea59db
Remove alternate control flow syntaxes

Summary: The colon syntax for certain control flow constructs (if/else, while, switch) was originally supported by the Hack language but discouraged. This diff removes support for these alternate forms.

Reviewed By: vassilmladenov

Differential Revision: D15722815

fbshipit-source-id: 64845dcc8f110d907bdde51005c5643f8a2bbaad
37 files changed:
hphp/hack/src/facts/flatten_smart_constructors.ml
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/src/parser/full_fidelity_ast.ml
hphp/hack/src/parser/full_fidelity_statement_parser.ml
hphp/hack/src/parser/full_fidelity_statement_parser_type.ml
hphp/hack/src/parser/full_fidelity_syntax.ml
hphp/hack/src/parser/full_fidelity_syntax_kind.ml
hphp/hack/src/parser/full_fidelity_syntax_type.ml
hphp/hack/src/parser/full_fidelity_validated_syntax.ml
hphp/hack/src/parser/js/full_fidelity_editable.js
hphp/hack/src/parser/js/full_fidelity_schema.json
hphp/hack/src/parser/parserSig.ml
hphp/hack/src/parser/schema/schema_definition.ml
hphp/hack/src/parser/smart_constructors/smartConstructors.ml
hphp/hack/src/parser/smart_constructors/smartConstructorsWrappers.ml
hphp/hack/src/parser/smart_constructors/syntaxSmartConstructors.ml
hphp/hack/src/parser/smart_constructors/verifySmartConstructors.ml
hphp/hack/src/parser/syntax_sig.ml
hphp/hack/test/full_fidelity/cases/test_alternate_if_empty_body.php [deleted file]
hphp/hack/test/full_fidelity/cases/test_alternate_if_empty_body.php.sexp.exp [deleted file]
hphp/hack/test/hackfmt/tests/alternate_for_loop.php [deleted file]
hphp/hack/test/hackfmt/tests/alternate_for_loop.php.exp [deleted file]
hphp/hack/test/hackfmt/tests/alternate_switch.php [deleted file]
hphp/hack/test/hackfmt/tests/alternate_switch.php.exp [deleted file]
hphp/hack/test/typecheck/alternate_control_flow.php [deleted file]
hphp/hack/test/typecheck/alternate_control_flow.php.exp [deleted file]
hphp/test/slow/spec/tests/statements/iteration/for.php
hphp/test/slow/spec/tests/statements/iteration/foreach.php
hphp/test/slow/spec/tests/statements/iteration/while.php
hphp/test/slow/spec/tests/statements/iteration/while.php.expectf
hphp/test/slow/spec/tests/statements/selection/if.php
hphp/test/slow/spec/tests/statements/selection/switch.php
hphp/test/slow/spec/tests/statements/selection/switch.php.expect
hphp/test/zend/good/tests/lang/008.php
hphp/test/zend/good/tests/lang/028.php
hphp/test/zend/good/tests/lang/033.php [deleted file]
hphp/test/zend/good/tests/lang/033.php.expectf [deleted file]