Omit AnnotatedAST module name when pretty-printing NAST/TAST
commit3f03052bc832ed5cf5b7e41cb948210f299047c2
authorJake Bailey <jakebailey@fb.com>
Mon, 16 Apr 2018 22:14:29 +0000 (16 15:14 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 16 Apr 2018 22:19:46 +0000 (16 15:19 -0700)
tree2001c961f31b017222653da49168f17002c19db4
parent7a27fadbcfdd704c0c18667420df00169952f0a4
Omit AnnotatedAST module name when pretty-printing NAST/TAST

Summary: By default, the ppx_deriving show plugin will include module/functor names in the output. The AnnotatedAST functor name doesn't add any value when printing the NAST/TAST, so this change configures the show plugin not to include it (it is still printed for record types, unfortunately, but this behavior does not seem to be configurable).

Reviewed By: ljw1004

Differential Revision: D7644282

fbshipit-source-id: 5524ec19b1d74476a457eef5e5a9ee1481e43253
36 files changed:
hphp/hack/src/annotated_ast/aast.ml
hphp/hack/src/annotated_ast/aast.src.ml
hphp/hack/test/tast/add_vector.php.exp
hphp/hack/test/tast/arith_plus.php.exp
hphp/hack/test/tast/array_filter.php.exp
hphp/hack/test/tast/array_map.php.exp
hphp/hack/test/tast/array_order.php.exp
hphp/hack/test/tast/assert.php.exp
hphp/hack/test/tast/async_lambda.php.exp
hphp/hack/test/tast/call_args.php.exp
hphp/hack/test/tast/class_get.php.exp
hphp/hack/test/tast/dynamic_member_access.php.exp
hphp/hack/test/tast/eq_op.php.exp
hphp/hack/test/tast/fake_member.php.exp
hphp/hack/test/tast/foreach_ref.php.exp
hphp/hack/test/tast/fun_meth_variadic.php.exp
hphp/hack/test/tast/lambda1.php.exp
hphp/hack/test/tast/lambda_contextual.php.exp
hphp/hack/test/tast/lambda_efun.php.exp
hphp/hack/test/tast/multiple_type.php.exp
hphp/hack/test/tast/null_check.php.exp
hphp/hack/test/tast/null_coalesce.php.exp
hphp/hack/test/tast/parent_construct.php.exp
hphp/hack/test/tast/pseudofunctions.php.exp
hphp/hack/test/tast/reactive.php.exp
hphp/hack/test/tast/ret_by_ref.php.exp
hphp/hack/test/tast/shapes_special_functions.php.exp
hphp/hack/test/tast/singleton_unresolved_function_call.php.exp
hphp/hack/test/tast/switch_fallthrough.php.exp
hphp/hack/test/tast/try_catch.php.exp
hphp/hack/test/tast/typedef.php.exp
hphp/hack/test/tast/unbound_global.php.exp
hphp/hack/test/tast/unresolved_grown_after_lambda.php.exp
hphp/hack/test/tast/unsafe_block.php.exp
hphp/hack/test/tast/using.php.exp
hphp/hack/test/tast/xhp.php.exp