Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
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
- Loading branch information
Showing
with
50 additions
and 7 deletions.
- +3 −1 hphp/hack/src/annotated_ast/aast.ml
- +1 −0 hphp/hack/src/errors/error_codes.ml
- +4 −0 hphp/hack/src/errors/errors.ml
- +1 −0 hphp/hack/src/errors/errors_sig.ml
- +12 −0 hphp/hack/src/stubs/coroutine_check.ml
- +10 −0 hphp/hack/src/stubs/coroutine_errors.ml
- +1 −0 hphp/hack/src/typing/tast_check/tast_check.ml
- +2 −0 hphp/hack/src/typing/tast_env.ml
- +3 −0 hphp/hack/src/typing/tast_env.mli
- +12 −6 hphp/hack/src/typing/tast_visitor.ml
- +1 −0 hphp/hack/test/errors/error_map.ml
@@ -0,0 +1,12 @@ | ||
(** | ||
* Copyright (c) 2018, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the "hack" directory of this source tree. | ||
* | ||
*) | ||
|
||
let handler = object | ||
inherit Tast_visitor.handler_base | ||
end |
@@ -0,0 +1,10 @@ | ||
(** | ||
* Copyright (c) 2018, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the "hack" directory of this source tree. | ||
* | ||
*) | ||
|
||
let error_message = "" |