Port top level namespace elaboratornightly-2020.03.26
commit05a824f327431e127b162e8fb2a0ea8d7911ab22
authorSteve Cao <[email protected]>
Thu, 26 Mar 2020 01:08:51 +0000 (25 18:08 -0700)
committerFacebook GitHub Bot <[email protected]>
Thu, 26 Mar 2020 01:12:33 +0000 (25 18:12 -0700)
tree8db12977eaf10c55fbd2432e4227f8e0973367fb
parent6f6a268a1f08c847b85d2bb9dec4502b350a924c
Port top level namespace elaborator

Summary:
- ported top level namespace elaborator
- added `uast`, it wraps all annotation type parameters into a trait to avoid growing annotations.
- switched to Rust top level namespace elaborator, will add a switch.

Reviewed By: losvald

Differential Revision: D20573587

fbshipit-source-id: b5ba3bdef2fef41b6bc9d6e5e784d5978bcad486
17 files changed:
hphp/hack/Cargo.lock
hphp/hack/src/hh_single_type_check.ml
hphp/hack/src/hhbc/hhbc_options.ml
hphp/hack/src/hhbc/options.rs
hphp/hack/src/options/globalOptions.ml
hphp/hack/src/oxidized/lib.rs
hphp/hack/src/oxidized/manual/global_options_impl.rs
hphp/hack/src/oxidized/manual/mod.rs
hphp/hack/src/oxidized/manual/namespace_env_impl.rs
hphp/hack/src/oxidized/manual/uast.rs [new file with mode: 0644]
hphp/hack/src/parser/aast_parser.rs
hphp/hack/src/parser/cargo/aast_parser/Cargo.toml
hphp/hack/src/parser/cargo/namespaces/Cargo.toml
hphp/hack/src/parser/lowerer.rs
hphp/hack/src/parser/namespaces.rs
hphp/hack/test/rust/rust_ocaml_test.ml
hphp/runtime/base/runtime-option.h