Add internal identifier to functions, methods, properties and classes
commitc703f9c733bdc67e724d70393e86005757261430
authorOguz Ulgen <oulgen@fb.com>
Thu, 14 Apr 2022 01:21:47 +0000 (13 18:21 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 14 Apr 2022 01:21:47 +0000 (13 18:21 -0700)
treed40ff8375e5b6a56348282f264db7db81a0b7b75
parentc774321e500863ff3ca2375238cbdca3d28028f3
Add internal identifier to functions, methods, properties and classes

Summary: This diff adds runtime support for `internal` keyword on functions, methods, properties and classes at a cosmetic level, accessible through respective reflection APIs added on the diff.

Reviewed By: aorenste

Differential Revision: D35584317

fbshipit-source-id: 1b9ceaab06266f3d8e61753673739f77135da526
hphp/hack/src/hackc/emitter/emit_class.rs
hphp/hack/src/hackc/emitter/emit_memoize_function.rs
hphp/hack/src/hackc/hhbc/hhbc_ast.rs
hphp/hack/src/hackc/hhvm_cxx/hhvm_types/hhvm_types_ffi.rs
hphp/runtime/ext/reflection/ext_reflection-classes.php
hphp/runtime/ext/reflection/ext_reflection.cpp
hphp/runtime/ext/reflection/ext_reflection_hni.php
hphp/runtime/vm/func.cpp
hphp/runtime/vm/preclass.cpp
hphp/test/slow/modules/reflection-3.php [new file with mode: 0644]
hphp/test/slow/modules/reflection-3.php.expectf [new file with mode: 0644]