@@ -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 )
@@ -228,9 +225,7 @@ let lazy_or_assert_or_await_expr_rhs ?(in_await = false) expr =
228
225
| Pexp_while _ | Pexp_for _ | Pexp_ifthenelse _ );
229
226
} ->
230
227
Parenthesized
231
- | _
232
- when (not in_await)
233
- && ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
228
+ | _ when (not in_await) && ParsetreeViewer. has_await_attribute expr ->
234
229
Parenthesized
235
230
| _ -> Nothing )
236
231
@@ -276,8 +271,7 @@ let field_expr expr =
276
271
| Pexp_try _ | Pexp_while _ | Pexp_for _ | Pexp_ifthenelse _ );
277
272
} ->
278
273
Parenthesized
279
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
280
- Parenthesized
274
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
281
275
| _ -> Nothing )
282
276
283
277
let set_field_expr_rhs expr =
@@ -338,8 +332,7 @@ let jsx_prop_expr expr =
338
332
}
339
333
when starts_with_minus x ->
340
334
Parenthesized
341
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
342
- Parenthesized
335
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
343
336
| {
344
337
Parsetree. pexp_desc =
345
338
( Pexp_ident _ | Pexp_constant _ | Pexp_field _ | Pexp_construct _
@@ -376,8 +369,7 @@ let jsx_child_expr expr =
376
369
}
377
370
when starts_with_minus x ->
378
371
Parenthesized
379
- | _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
380
- Parenthesized
372
+ | _ when ParsetreeViewer. has_await_attribute expr -> Parenthesized
381
373
| {
382
374
Parsetree. pexp_desc =
383
375
( Pexp_ident _ | Pexp_constant _ | Pexp_field _ | Pexp_construct _
0 commit comments