internal on enums and typedefs
commit0aab7995c7151e804f5c2959be5e236beff072c8
authorJames Wu <jjwu@fb.com>
Thu, 21 Apr 2022 19:26:58 +0000 (21 12:26 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 21 Apr 2022 19:26:58 +0000 (21 12:26 -0700)
treef64d39fd910862d26a10bc6a1e5d1ad0dbcca561
parentcb30b07665e86eaa2ab6b9a2a5c1b6f3fc476741
internal on enums and typedefs

Summary:
This diff adds the internal keyword on enums and typedefs to the CST, without consuming them in the lowerer or direct declaration.

I will add support for that in the next diff in this stack.

Reviewed By: oulgen

Differential Revision: D35722713

fbshipit-source-id: 9fc9daff387e0b9223094a017abf0aaad18ca7d6
34 files changed:
hphp/hack/src/decl/direct_decl_smart_constructors.rs
hphp/hack/src/decl/direct_decl_smart_constructors_generated.rs
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/src/parser/core/declaration_parser.rs
hphp/hack/src/parser/decl_mode_smart_constructors_generated.rs
hphp/hack/src/parser/flatten_smart_constructors.rs
hphp/hack/src/parser/full_fidelity_syntax.ml
hphp/hack/src/parser/full_fidelity_syntax_type.ml
hphp/hack/src/parser/full_fidelity_validated_syntax.ml
hphp/hack/src/parser/js/full_fidelity_schema.json
hphp/hack/src/parser/pair_smart_constructors_generated.rs
hphp/hack/src/parser/positioned_smart_constructors.rs
hphp/hack/src/parser/rust_parser_errors.rs
hphp/hack/src/parser/schema/full_fidelity_schema.ml
hphp/hack/src/parser/schema/full_fidelity_schema_version_number.rs
hphp/hack/src/parser/schema/schema_definition.ml
hphp/hack/src/parser/smart_constructors_generated.rs
hphp/hack/src/parser/smart_constructors_wrappers.rs
hphp/hack/src/parser/syntax_by_ref/syntax_children_iterator_generated.rs
hphp/hack/src/parser/syntax_by_ref/syntax_serialize_generated.rs
hphp/hack/src/parser/syntax_by_ref/syntax_type_impl_generated.rs
hphp/hack/src/parser/syntax_by_ref/syntax_variant_generated.rs
hphp/hack/src/parser/syntax_generated.rs
hphp/hack/src/parser/syntax_sig.ml
hphp/hack/src/parser/syntax_smart_constructors_generated.rs
hphp/hack/src/parser/syntax_type.rs
hphp/hack/src/parser/verify_smart_constructors_generated.rs
hphp/hack/test/enum_class/parsing/modifiers_enum.bad.php.exp
hphp/hack/test/enum_class_label/parsing/hash_underscore.good.php.exp
hphp/hack/test/enum_supertyping/parsing/multiple_includes.good.php.exp
hphp/hack/test/enum_supertyping/parsing/single_includes.good.php.exp
hphp/hack/test/enum_supertyping/parsing/use_constant.good.php.exp
hphp/hack/test/typecheck/modules/internal_enum_typedefs.php [new file with mode: 0644]
hphp/hack/test/typecheck/modules/internal_enum_typedefs.php.exp [new file with mode: 0644]