Generate rust_to_ocaml attributes for variant names
commit9917df6f214444879b5489db9e0d36b825cc349a
authorJake Bailey <jakebailey@fb.com>
Wed, 17 Aug 2022 20:53:14 +0000 (17 13:53 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 17 Aug 2022 20:53:14 +0000 (17 13:53 -0700)
tree9229a8e71fa693b17f0ab51bf9b9ea31373f7b24
parentefd5ef57f3f49affeda3b87e2aa6c50442e5fef0
Generate rust_to_ocaml attributes for variant names

Summary: Our variant naming conventions are not very consistent. When we don't simply use UpperCamelCase (or when we must change the Rust name to avoid a keyword collision, as with `Self`), include a `name` attribute so that rust_to_ocaml can generate the right name.

Reviewed By: edwinsmith

Differential Revision: D38774273

fbshipit-source-id: 28fe71f8b047ea98fbd4c1c19cd27a383fd46806
19 files changed:
hphp/hack/src/hh_oxidize/convert_type_decl.ml
hphp/hack/src/oxidized/gen/aast.rs
hphp/hack/src/oxidized/gen/aast_defs.rs
hphp/hack/src/oxidized/gen/ast_defs.rs
hphp/hack/src/oxidized/gen/decl_defs.rs
hphp/hack/src/oxidized/gen/error_codes.rs
hphp/hack/src/oxidized/gen/naming_types.rs
hphp/hack/src/oxidized/gen/quickfix.rs
hphp/hack/src/oxidized/gen/typing_defs.rs
hphp/hack/src/oxidized/gen/typing_defs_core.rs
hphp/hack/src/oxidized/gen/typing_reason.rs
hphp/hack/src/oxidized_by_ref/gen/aast.rs
hphp/hack/src/oxidized_by_ref/gen/aast_defs.rs
hphp/hack/src/oxidized_by_ref/gen/ast_defs.rs
hphp/hack/src/oxidized_by_ref/gen/decl_defs.rs
hphp/hack/src/oxidized_by_ref/gen/quickfix.rs
hphp/hack/src/oxidized_by_ref/gen/typing_defs.rs
hphp/hack/src/oxidized_by_ref/gen/typing_defs_core.rs
hphp/hack/src/oxidized_by_ref/gen/typing_reason.rs