@@ -269488,7 +269488,6 @@ let view_as_app (fn : exp) (s : string list) : app_pattern option =
269488269488 | _ -> None
269489269489
269490269490let inner_ops = [ "##"; "#@" ]
269491-
269492269491let infix_ops = [ "|."; "#="; "##" ]
269493269492
269494269493let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
@@ -269528,16 +269527,24 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
269528269527 let fn = self.expr self fn in
269529269528 match fn.pexp_desc with
269530269529 | Pexp_variant (label, None) ->
269531- { fn with pexp_desc = Pexp_variant (label, Some new_obj_arg); pexp_loc = e.pexp_loc }
269530+ {
269531+ fn with
269532+ pexp_desc = Pexp_variant (label, Some new_obj_arg);
269533+ pexp_loc = e.pexp_loc;
269534+ }
269532269535 | Pexp_construct (ctor, None) ->
269533- { fn with pexp_desc = Pexp_construct (ctor, Some new_obj_arg); pexp_loc = e.pexp_loc }
269534- | Pexp_apply (fn, args) ->
269536+ {
269537+ fn with
269538+ pexp_desc = Pexp_construct (ctor, Some new_obj_arg);
269539+ pexp_loc = e.pexp_loc;
269540+ }
269541+ | Pexp_apply (fn1, args) ->
269535269542 Bs_ast_invariant.warn_discarded_unused_attributes
269536- fn .pexp_attributes;
269543+ fn1 .pexp_attributes;
269537269544 {
269538- pexp_desc = Pexp_apply (fn, (Nolabel, new_obj_arg) :: args);
269539- pexp_attributes = [];
269545+ pexp_desc = Pexp_apply (fn1, (Nolabel, new_obj_arg) :: args);
269540269546 pexp_loc = e.pexp_loc;
269547+ pexp_attributes = e.pexp_attributes;
269541269548 }
269542269549 | _ -> (
269543269550 match Ast_open_cxt.destruct fn [] with
0 commit comments