File tree 1 file changed +5
-13
lines changed
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -5044,20 +5044,12 @@ and print_argument ~state (arg_lbl, arg) cmt_tbl =
5044
5044
in
5045
5045
let printed_expr =
5046
5046
let doc = print_expression_with_comments ~state expr cmt_tbl in
5047
- let doc =
5048
- match Parens. expr expr with
5049
- | Parenthesized -> add_parens doc
5050
- | Braced braces -> print_braces doc expr braces
5051
- | Nothing -> doc
5052
- in
5053
- match expr.pexp_desc with
5054
- | Pexp_apply
5055
- {
5056
- funct = {pexp_desc = Pexp_ident {txt = Longident. Lident " ~~" }};
5057
- args = [(Nolabel , _)];
5058
- } ->
5047
+ match Parens. expr expr with
5048
+ | Parenthesized -> add_parens doc
5049
+ | Braced braces -> print_braces doc expr braces
5050
+ | Nothing when ParsetreeViewer. is_unary_bitnot_expression expr ->
5059
5051
add_parens doc
5060
- | _ -> doc
5052
+ | Nothing -> doc
5061
5053
in
5062
5054
let loc = {arg_loc with loc_end = expr.pexp_loc.loc_end} in
5063
5055
let doc =
You can’t perform that action at this time.
0 commit comments