Refactor enum_impl
commitda7724c479a4d32aa0542f7438e26e76def371f4
authorJake Bailey (Hacklang) <jakebailey@fb.com>
Tue, 19 Nov 2019 19:42:53 +0000 (19 11:42 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 19 Nov 2019 19:46:14 +0000 (19 11:46 -0800)
treecab29e7c59ca31e261bd3e9601456b282492ccef
parent8e69eef69dedf7e320ac932407c4a0e718596ca6
Refactor enum_impl

Summary: This function has gotten long, and I think it helps readability if we split out the implementations of the `to_ocamlrep` and `from_ocamlrep` code generation into separate functions.

Reviewed By: 2BitSalute

Differential Revision: D18595279

fbshipit-source-id: bd16de28ae6fc55cd197572a88706e64e6c83776
hphp/hack/src/ocamlrep_derive/lib.rs