Add EnumClassAttribute to Hack
commit8d63e17b09d08154c531f9de5155e9f98ea2570c
authorNeal Poole <neal@fb.com>
Tue, 23 Mar 2021 21:39:07 +0000 (23 14:39 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 23 Mar 2021 21:41:43 +0000 (23 14:41 -0700)
tree788c628d56bd7d0394d01cd58f2dab3ba074e820
parent7f4cad4e2f9305b1864a379fd40ba06c92bbb393
Add EnumClassAttribute to Hack

Summary: Adding support now that we have Enum Classes. I tried to pattern this on / build on top of D26100669 (https://github.com/facebook/hhvm/commit/325c0afe1a6e28c24c9c00cb5df4904950edf44f) and D24606885 (https://github.com/facebook/hhvm/commit/b457075dd70fb2d33334cfee1e3e0b9a986c921f): hopefully I did it right.

Reviewed By: vsiles

Differential Revision: D27188881

fbshipit-source-id: 542c5aa9da16c6d4b34493251fcd12cc37ca3f14
hphp/hack/hhi/attributes.hhi
hphp/hack/src/decl/direct_decl_smart_constructors.rs
hphp/hack/src/naming/naming_special_names.rs
hphp/hack/test/typecheck/attributes/HH_FLAGS [new file with mode: 0644]
hphp/hack/test/typecheck/attributes/create_attributes.php
hphp/hack/test/typecheck/attributes/enumclass_attribute_ordering.php [new file with mode: 0644]
hphp/hack/test/typecheck/attributes/enumclass_attribute_ordering.php.exp [new file with mode: 0644]
hphp/runtime/ext/hh/ext_hh.php
hphp/test/zend/good/ext/standard/tests/class_object/get_declared_interfaces_basic_001.php.expectf
hphp/test/zend/good/ext/standard/tests/class_object/get_declared_interfaces_basic_001.php.expectf.hadva