Generate xhp_enum_value visitor
commita6d127ad999f96df5980ff91a314301c9db564d1
authorJake Bailey <jakebailey@fb.com>
Tue, 6 Sep 2022 23:22:40 +0000 (6 16:22 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 6 Sep 2022 23:22:40 +0000 (6 16:22 -0700)
tree2f5e6d96a8a464e1e61adf8f3973f2a1c5419f57
parent9cfe53613db9f2c144a0eafb3efe0885c6a1c58f
Generate xhp_enum_value visitor

Summary: Instead of defining a no-op visitor in Aast_defs_visitors_ancestors, just generate the visitor (as we do with any other Aast_defs type) by moving the definition up into the mutually recursive `type ... and ...` definition which is annotated with the `[@deriving visitors]` attribute.

Reviewed By: vsiles

Differential Revision: D39188505

fbshipit-source-id: 39184a635d4719a51b88cf20b0f40248e98a73cd
hphp/hack/src/annotated_ast/aast_defs_visitors_ancestors.ml
hphp/hack/src/ast/ast_defs.ml
hphp/hack/src/oxidized/gen/ast_defs.rs
hphp/hack/src/oxidized/impl_gen/ast_defs_impl_gen.rs
hphp/hack/src/oxidized_by_ref/gen/ast_defs.rs
hphp/hack/test/decl/xhp_attr.php.exp
hphp/hack/test/tast/xhp.php.exp