Skip to content

Commit f674f51

Browse files
committed
tweaks
1 parent 277f153 commit f674f51

File tree

3 files changed

+1340
-1292
lines changed

3 files changed

+1340
-1292
lines changed

jscomp/core/js_dump.ml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -361,30 +361,29 @@ and output_one : 'a .
361361
= fun cxt f pp_cond
362362
({switch_case = e; switch_body = (sl,should_break)} : _ J.case_clause) ->
363363
let cxt =
364-
P.group f 1 @@ fun _ ->
365-
P.group f 1 @@ (fun _ ->
366-
P.string f L.case;
367-
P.space f ;
368-
pp_cond f e; (* could be integer or string*)
369-
P.space f ;
370-
P.string f L.colon );
371-
372-
P.space f;
373-
P.group f 1 @@ fun _ ->
374-
let cxt =
375-
match sl with
376-
| [] -> cxt
377-
| _ ->
378-
P.newline f ;
379-
statement_list false cxt f sl
380-
in
381-
(if should_break then
382-
begin
383-
P.newline f ;
384-
P.string f L.break;
385-
semi f;
386-
end) ;
387-
cxt
364+
P.group f 1 (fun _ ->
365+
P.group f 1 (fun _ ->
366+
P.string f L.case;
367+
P.space f ;
368+
pp_cond f e; (* could be integer or string *)
369+
P.space f ;
370+
P.string f L.colon );
371+
P.space f;
372+
P.group f 1 (fun _ ->
373+
let cxt =
374+
match sl with
375+
| [] -> cxt
376+
| _ ->
377+
P.newline f ;
378+
statement_list false cxt f sl
379+
in
380+
(if should_break then
381+
begin
382+
P.newline f ;
383+
P.string f L.break;
384+
semi f;
385+
end) ;
386+
cxt))
388387
in
389388
P.newline f;
390389
cxt

0 commit comments

Comments
 (0)