Add switch to disable legacy attributes
commitc72ed4873eb824cfa56c962a2d92965c6bf8f9d2
authorKenneth Li <kqli@fb.com>
Tue, 23 Jul 2019 19:51:35 +0000 (23 12:51 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 23 Jul 2019 20:00:55 +0000 (23 13:00 -0700)
tree61b2a82193441954ef347c363b73f61f78d219e8
parent45831a4b20b794a058a9d9dd1985e99190332fdb
Add switch to disable legacy attributes

Summary: The final part of the migration to the `@` syntax for attributes would be to ban the old `<<...>>` syntax. This diff adds a switch to make this easy, though I might not be here to flip it :(

Reviewed By: vassilmladenov

Differential Revision: D16426472

fbshipit-source-id: 6c9a952b19ea5bc6cb9ee9c383f14da5d37a541d
18 files changed:
hphp/hack/src/hh_parse.ml
hphp/hack/src/hh_single_compile.ml
hphp/hack/src/hh_single_type_check.ml
hphp/hack/src/hhbc/hhbc_options.ml
hphp/hack/src/options/globalOptions.ml
hphp/hack/src/options/globalOptions.mli
hphp/hack/src/options/parserOptions.ml
hphp/hack/src/parser/full_fidelity_ast.ml
hphp/hack/src/parser/full_fidelity_parser_env.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/src/server/serverConfig.ml
hphp/hack/test/full_fidelity/cases/legacy_attribute_syntax/HH_FLAGS [new file with mode: 0644]
hphp/hack/test/full_fidelity/cases/legacy_attribute_syntax/no_legacy_attribute_syntax.php [new file with mode: 0644]
hphp/hack/test/full_fidelity/cases/legacy_attribute_syntax/no_legacy_attribute_syntax.php.errors.exp [new file with mode: 0644]
hphp/hack/test/full_fidelity/cases/legacy_attribute_syntax/no_legacy_attribute_syntax.php.sexp.exp [new file with mode: 0644]
hphp/hack/test/full_fidelity/cases/legacy_soft_typehints/no_legacy_soft_typehints.php.expectf [deleted file]