Skip to content

Commit

Permalink
Compiler: pretty-print, tune
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Feb 10, 2023
1 parent d4a3837 commit 344e423
Show file tree
Hide file tree
Showing 7 changed files with 554 additions and 561 deletions.
8 changes: 4 additions & 4 deletions compiler/lib/js_output.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ struct
in
ite "if" e s1 s2
| While_statement (e, s) ->
PP.start_group f 1;
PP.start_group f 0;
PP.start_group f 0;
PP.string f "while";
PP.break f;
Expand All @@ -1159,7 +1159,7 @@ struct
PP.end_group f;
PP.end_group f
| For_statement (e1, e2, e3, s) ->
PP.start_group f 1;
PP.start_group f 0;
PP.start_group f 0;
PP.string f "for";
PP.break f;
Expand Down Expand Up @@ -1189,7 +1189,7 @@ struct
statement1 ~last f s;
PP.end_group f
| ForIn_statement (e1, e2, s) ->
PP.start_group f 1;
PP.start_group f 0;
PP.start_group f 0;
PP.string f "for";
PP.break f;
Expand All @@ -1211,7 +1211,7 @@ struct
statement1 ~last f s;
PP.end_group f
| ForOf_statement (e1, e2, s) ->
PP.start_group f 1;
PP.start_group f 0;
PP.start_group f 0;
PP.string f "for";
PP.break f;
Expand Down
Loading

0 comments on commit 344e423

Please sign in to comment.