Manually fix or remove runtime tests with `fun`, `class_meth`, or `inst_meth`
commitc4f105fe5088771e07336b088160f722324a371b
authorHunter Goldstein <hgoldstein@meta.com>
Tue, 14 Feb 2023 00:34:46 +0000 (13 16:34 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 14 Feb 2023 00:34:46 +0000 (13 16:34 -0800)
treec235e872dfd6319a9e6d70a74c6889aefda0e42c
parentdabd389da143d08396d62c4d4de88ff98b9330bb
Manually fix or remove runtime tests with `fun`, `class_meth`, or `inst_meth`

Summary:
`fun`, `class_meth`, and `inst_meth` ought to be properly ripped out of Hack. The steps here are roughly:
1. Codemod away the syntax from tests (we are here)
2. Default the options for disabling these at the parser level to `on`
3. Rip out the typechecker & compiler support
4. Relax the parser rules in (2)

This diff manually handles `fun`, `class_meth`, and some `inst_meth` tests. Any that are no longer relevant (e.g.: testing syntactic forms that are impossible under function pointers) are just removed.

Reviewed By: periodic1236

Differential Revision: D42255399

fbshipit-source-id: 87843f35113dc89a00080c1d2c72f9b730abff25
27 files changed:
hphp/test/server/fastcgi/tests/test_base.inc
hphp/test/slow/clsmeth-nocompat/invoke-ptr.php [deleted file]
hphp/test/slow/clsmeth-nocompat/invoke-ptr.php.expect [deleted file]
hphp/test/slow/clsmeth-nocompat/invoke-ptr.php.hphp_opts [deleted file]
hphp/test/slow/clsmeth-nocompat/invoke-ptr.php.opts [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-parent.php [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-parent.php.expectregex [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-parent.php.hphp_opts [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-parent.php.opts [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-self.php [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-self.php.expectregex [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-self.php.hphp_opts [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-self.php.opts [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-static.php [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-static.php.expectregex [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-static.php.hphp_opts [deleted file]
hphp/test/slow/clsmeth-nocompat/literal-args-static.php.opts [deleted file]
hphp/test/slow/clsmeth/invoke-ptr.php [deleted file]
hphp/test/slow/clsmeth/invoke-ptr.php.expect [deleted file]
hphp/test/slow/clsmeth/invoke-ptr.php.opts [deleted file]
hphp/test/slow/clsmeth/literal-args-parent.php [deleted file]
hphp/test/slow/clsmeth/literal-args-parent.php.expectregex [deleted file]
hphp/test/slow/clsmeth/literal-args-self.php [deleted file]
hphp/test/slow/clsmeth/literal-args-self.php.expectregex [deleted file]
hphp/test/slow/clsmeth/literal-args-static.php [deleted file]
hphp/test/slow/clsmeth/literal-args-static.php.expectregex [deleted file]
hphp/test/slow/namespace/2225.php