Gate coroutines behind directory
commit66d3949198e7e38bec7a4176b4e4af12be2daead
authorThomas Jiang <thomasjiang@fb.com>
Mon, 16 Jul 2018 23:11:25 +0000 (16 16:11 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 16 Jul 2018 23:13:36 +0000 (16 16:13 -0700)
tree7984589c79834fa9442ccd4e73acd7a95c842bd0
parent98f85fad2d1defc039e397769572515f9966ab6a
Gate coroutines behind directory

Summary:
We want to gate coroutines behind a specific directory in `www` when we ship to `www`. I have chosen to gate it behind `flib/core/hack/lib/experimental` for the time being.

Added this as a `tast_check`, which involved added `at_method_` to the visitor.

Differential Revision: D8555694

fbshipit-source-id: 1016e792d07cd4ba15b14367e699a5cf0f1e6603
hphp/hack/src/annotated_ast/aast.ml
hphp/hack/src/errors/error_codes.ml
hphp/hack/src/errors/errors.ml
hphp/hack/src/errors/errors_sig.ml
hphp/hack/src/stubs/coroutine_check.ml [copied from hphp/hack/src/typing/tast_check/tast_check.ml with 51% similarity]
hphp/hack/src/stubs/coroutine_errors.ml [new file with mode: 0644]
hphp/hack/src/typing/tast_check/tast_check.ml
hphp/hack/src/typing/tast_env.ml
hphp/hack/src/typing/tast_env.mli
hphp/hack/src/typing/tast_visitor.ml
hphp/hack/test/errors/error_map.ml