Skip to content

Commit de28573

Browse files
committed
final cleanup
1 parent 5d92cbc commit de28573

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
- Remove `Stdlib_Char` module for now. https://github.com/rescript-lang/rescript/pull/7367
2626
- Convert internal JavaScript codebase into ESM, ReScript package itself is now ESM (`"type": "module"`). https://github.com/rescript-lang/rescript/pull/6899
2727
- Add built-in support for the JavaScript `in` operator. https://github.com/rescript-lang/rescript/pull/7342
28-
- AST cleanup: add `Pexp_await` ast node instead of `res.await` attribute. (The attribute is still used for await on modules currently).
28+
- AST cleanup: add `Pexp_await` ast node instead of `res.await` attribute. (The attribute is still used for await on modules currently). https://github.com/rescript-lang/rescript/pull/7368
2929

3030
#### :nail_care: Polish
3131

compiler/syntax/src/res_printer.ml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3756,14 +3756,8 @@ and print_binary_expression ~state (expr : Parsetree.expression) cmt_tbl =
37563756
| [] -> doc
37573757
| _ -> add_parens doc
37583758
in
3759-
let is_await =
3760-
(match expr.pexp_desc with
3761-
| Pexp_await _ -> true
3762-
| _ -> false)
3763-
|| ParsetreeViewer.expr_is_await expr
3764-
in
37653759
let doc =
3766-
if is_await then
3760+
if ParsetreeViewer.expr_is_await expr then
37673761
let parens =
37683762
Res_parens.binary_operator_inside_await_needs_parens operator
37693763
in

0 commit comments

Comments
 (0)