File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,7 @@ let is_negative_constant constant =
241
241
| _ -> false
242
242
243
243
let field_expr expr =
244
+ let expr = Ast_uncurried. remove_fun expr in
244
245
let opt_braces, _ = ParsetreeViewer. process_braces_attr expr in
245
246
match opt_braces with
246
247
| Some ({Location. loc = braces_loc } , _ ) -> Braced braces_loc
@@ -274,11 +275,6 @@ let field_expr expr =
274
275
Parenthesized
275
276
| _ when ParsetreeViewer. has_await_attribute expr.pexp_attributes ->
276
277
Parenthesized
277
- | {pexp_desc = Pexp_construct ({txt = Lident " Function$" }, Some expr)}
278
- when ParsetreeViewer. is_underscore_apply_sugar expr ->
279
- Nothing
280
- | {pexp_desc = Pexp_construct ({txt = Lident "Function$" } , Some _ )} ->
281
- Parenthesized
282
278
| _ -> Nothing )
283
279
284
280
let set_field_expr_rhs expr =
You can’t perform that action at this time.
0 commit comments