v0.3.4 - Handle commas in argument lists
commit72b5078202d738d078696a0f2ca4bfda91800031
authorEric Shrewsberry <eshrews@fb.com>
Tue, 20 Dec 2016 22:15:33 +0000 (20 14:15 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 20 Dec 2016 22:27:48 +0000 (20 14:27 -0800)
tree95a0b4654618bd2baefdc1760d8f3f02c28a237d
parent1ac6c95e518c76b8ab422a02806e0b0592603c0f
v0.3.4 - Handle commas in argument lists

Summary:
First pass at handling trailing commas.

Comma placement depends on the value (split or not split) of the most nested argument rule.

Differential Revision: D4325530

fbshipit-source-id: 1391f065cd8d1d8ff62fa9508c9a7b5f43135c71
hphp/hack/src/hackfmt/chunk.ml
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/src/hackfmt/line_splitter/solve_state.ml
hphp/hack/src/hackfmt/line_splitter/state_printer.ml
hphp/hack/test/hackfmt/tests/PartialFormattingTest2.php.exp
hphp/hack/test/hackfmt/tests/if_elseif_else.php.exp
hphp/hack/test/hackfmt/tests/simple_function_call_2.php.exp