update hackfmt to support experimental enum class labels
commitc1b614bddbb9311e229ee7212bf956988ee3fefc
authorVincent Siles <vsiles@fb.com>
Thu, 6 Jan 2022 14:46:48 +0000 (6 06:46 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 6 Jan 2022 14:48:37 +0000 (6 06:48 -0800)
tree7ae3f1557ce0fb2dfd03c934cfacd29bcc9aa24f
parent369239f324c7227b74247893faab0085418b3c13
update hackfmt to support experimental enum class labels

Summary:
hackfmt was ignoring some part of the experimental feature `f#Foo()`.
It now correctly takes it as input and preserves it.

Reviewed By: francesco-zappa-nardelli

Differential Revision: D33453011

fbshipit-source-id: 2ca76e21937bb74642570b3b2540a0ee211d5709
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/test/enum_class_label/format/dune [new file with mode: 0644]
hphp/hack/test/enum_class_label/format/label_format.php [new file with mode: 0644]
hphp/hack/test/enum_class_label/format/label_format.php.exp [new file with mode: 0644]