Use new namespace elaboration for ctx constsnightly-2021.09.23
commit26e6ba43fdee665bef2fd91e92a3d4a5c7f2fa26
authorVassil Mladenov <vmladenov@fb.com>
Thu, 23 Sep 2021 02:08:19 +0000 (22 19:08 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 23 Sep 2021 02:10:25 +0000 (22 19:10 -0700)
tree0cd5d4d478b26219af54322a1884a76e1e107a0f
parent765de76ab6ea88544ffc2c954aa41a8c6bf99f60
Use new namespace elaboration for ctx consts

Summary: Context consts were still using the legacy namespace elaboration, so context aliases were being elaborated into the `\HH\Contexts` namespace instead of the env namespace. This just moves the elaboration to use the `self#on_ctx_hint_ns` function.

Reviewed By: losvald

Differential Revision: D31130223

fbshipit-source-id: 0b3f7219a3734eda042b0f6387c02d4c0c477d0f
hphp/hack/src/naming/naming_elaborate_namespaces_endo.ml
hphp/hack/test/nast/coeffects/ctx_const_naespacing.php [new file with mode: 0644]
hphp/hack/test/nast/coeffects/ctx_const_naespacing.php.exp [new file with mode: 0644]