Add enum atoms sugar to function call expressions
commit6ab9ab7ff3dd1590c031b064e69a66d1e0b63b63
authorTom Yang <toyang@fb.com>
Thu, 11 Mar 2021 19:35:32 +0000 (11 11:35 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 11 Mar 2021 19:37:49 +0000 (11 11:37 -0800)
tree616b2e7f5e667930089e8f5419a509a3e402378e
parent23c6c6342a646920981b7ca1b06da79081c5bb03
Add enum atoms sugar to function call expressions

Summary: Add the syntax `foo#bar()` to the parser.

Reviewed By: vsiles

Differential Revision: D26768509

fbshipit-source-id: ad23b0feb323be39220a4b2202a6cea1351940d4
36 files changed:
hphp/hack/src/decl/direct_decl_smart_constructors.rs
hphp/hack/src/decl/direct_decl_smart_constructors_generated.rs
hphp/hack/src/facts/facts_smart_constructors_generated.rs
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/src/parser/core/expression_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_operator_generated.ml
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/ocaml_syntax_generated.rs [new file with mode: 0644]
hphp/hack/src/parser/operator.rs
hphp/hack/src/parser/operator_generated.rs
hphp/hack/src/parser/positioned_smart_constructors.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/operator_schema_definition.ml
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_atom/parsing/HH_FLAGS [new file with mode: 0644]
hphp/hack/test/enum_atom/parsing/enum_atom.good.php [new file with mode: 0644]
hphp/hack/test/enum_atom/parsing/enum_atom.good.php.exp [new file with mode: 0644]
hphp/hack/test/enum_class/parsing/enum_class_definition.good.php.exp
hphp/hack/test/enum_class/parsing/enum_class_extension.good.php.exp