@@ -56,8 +56,7 @@ let call_expr expr =
56
56
} ->
57
57
Parenthesized
58
58
| _ when Ast_uncurried. expr_is_uncurried_fun expr -> Parenthesized
59
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
60
- Parenthesized
59
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
61
60
| _ -> Nothing )
62
61
63
62
let structure_expr expr =
@@ -109,8 +108,7 @@ let unary_expr_operand expr =
109
108
| Pexp_try _ | Pexp_while _ | Pexp_for _ | Pexp_ifthenelse _ );
110
109
} ->
111
110
Parenthesized
112
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
113
- Parenthesized
111
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
114
112
| _ -> Nothing )
115
113
116
114
let binary_expr_operand ~is_lhs expr =
@@ -133,8 +131,7 @@ let binary_expr_operand ~is_lhs expr =
133
131
| expr when ParsetreeViewer. is_binary_expression expr -> Parenthesized
134
132
| expr when ParsetreeViewer. is_ternary_expr expr -> Parenthesized
135
133
| {pexp_desc = Pexp_lazy _ | Pexp_assert _ } when is_lhs -> Parenthesized
136
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
137
- Parenthesized
134
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
138
135
| {Parsetree. pexp_attributes = attrs } ->
139
136
if ParsetreeViewer. has_printable_attributes attrs then Parenthesized
140
137
else Nothing )
@@ -230,9 +227,7 @@ let lazy_or_assert_or_await_expr_rhs ?(in_await = false) expr =
230
227
| Pexp_while _ | Pexp_for _ | Pexp_ifthenelse _ );
231
228
} ->
232
229
Parenthesized
233
- | _
234
- when (not in_await)
235
- && ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
230
+ | _ when (not in_await) && ParsetreeViewer. has_await_attribute expr ->
236
231
Parenthesized
237
232
| _ -> Nothing )
238
233
@@ -278,8 +273,7 @@ let field_expr expr =
278
273
| Pexp_try _ | Pexp_while _ | Pexp_for _ | Pexp_ifthenelse _ );
279
274
} ->
280
275
Parenthesized
281
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
282
- Parenthesized
276
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
283
277
| _ -> Nothing )
284
278
285
279
let set_field_expr_rhs expr =
@@ -340,8 +334,7 @@ let jsx_prop_expr expr =
340
334
}
341
335
when starts_with_minus x ->
342
336
Parenthesized
343
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
344
- Parenthesized
337
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
345
338
| {
346
339
Parsetree. pexp_desc =
347
340
( Pexp_ident _ | Pexp_constant _ | Pexp_field _ | Pexp_construct _
@@ -378,8 +371,7 @@ let jsx_child_expr expr =
378
371
}
379
372
when starts_with_minus x ->
380
373
Parenthesized
381
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
382
- Parenthesized
374
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
383
375
| {
384
376
Parsetree. pexp_desc =
385
377
( Pexp_ident _ | Pexp_constant _ | Pexp_field _ | Pexp_construct _
0 commit comments