File tree 4 files changed +12
-28
lines changed
4 files changed +12
-28
lines changed Original file line number Diff line number Diff line change @@ -128,12 +128,6 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
128
128
pexp_loc = e.pexp_loc;
129
129
pexp_attributes = e.pexp_attributes;
130
130
}
131
- | Pexp_ident _ ->
132
- {
133
- pexp_desc = Pexp_apply (fn, [ (Nolabel , new_obj_arg) ]);
134
- pexp_loc = e.pexp_loc;
135
- pexp_attributes = e.pexp_attributes;
136
- }
137
131
| _ -> (
138
132
match Ast_open_cxt. destruct fn [] with
139
133
| ( { pexp_desc = Pexp_tuple xs; pexp_attributes = tuple_attrs },
@@ -186,7 +180,9 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
186
180
pexp_attributes = [] ;
187
181
pexp_loc = loc;
188
182
}
189
- | _ -> Ast_compatible. app1 ~loc fn new_obj_arg))
183
+ | _ ->
184
+ Ast_compatible. app1 ~loc ~attrs: e.pexp_attributes fn
185
+ new_obj_arg))
190
186
| Some { op = "##" ; loc; args = [ obj; rest ] } -> (
191
187
(* - obj##property
192
188
- obj#(method a b )
Original file line number Diff line number Diff line change @@ -269546,12 +269546,6 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
269546
269546
pexp_loc = e.pexp_loc;
269547
269547
pexp_attributes = e.pexp_attributes;
269548
269548
}
269549
- | Pexp_ident _ ->
269550
- {
269551
- pexp_desc = Pexp_apply (fn, [ (Nolabel, new_obj_arg) ]);
269552
- pexp_loc = e.pexp_loc;
269553
- pexp_attributes = e.pexp_attributes;
269554
- }
269555
269549
| _ -> (
269556
269550
match Ast_open_cxt.destruct fn [] with
269557
269551
| ( { pexp_desc = Pexp_tuple xs; pexp_attributes = tuple_attrs },
@@ -269604,7 +269598,9 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
269604
269598
pexp_attributes = [];
269605
269599
pexp_loc = loc;
269606
269600
}
269607
- | _ -> Ast_compatible.app1 ~loc fn new_obj_arg))
269601
+ | _ ->
269602
+ Ast_compatible.app1 ~loc ~attrs:e.pexp_attributes fn
269603
+ new_obj_arg))
269608
269604
| Some { op = "##"; loc; args = [ obj; rest ] } -> (
269609
269605
(* - obj##property
269610
269606
- obj#(method a b )
Original file line number Diff line number Diff line change @@ -271009,12 +271009,6 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
271009
271009
pexp_loc = e.pexp_loc;
271010
271010
pexp_attributes = e.pexp_attributes;
271011
271011
}
271012
- | Pexp_ident _ ->
271013
- {
271014
- pexp_desc = Pexp_apply (fn, [ (Nolabel, new_obj_arg) ]);
271015
- pexp_loc = e.pexp_loc;
271016
- pexp_attributes = e.pexp_attributes;
271017
- }
271018
271012
| _ -> (
271019
271013
match Ast_open_cxt.destruct fn [] with
271020
271014
| ( { pexp_desc = Pexp_tuple xs; pexp_attributes = tuple_attrs },
@@ -271067,7 +271061,9 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
271067
271061
pexp_attributes = [];
271068
271062
pexp_loc = loc;
271069
271063
}
271070
- | _ -> Ast_compatible.app1 ~loc fn new_obj_arg))
271064
+ | _ ->
271065
+ Ast_compatible.app1 ~loc ~attrs:e.pexp_attributes fn
271066
+ new_obj_arg))
271071
271067
| Some { op = "##"; loc; args = [ obj; rest ] } -> (
271072
271068
(* - obj##property
271073
271069
- obj#(method a b )
Original file line number Diff line number Diff line change @@ -281299,12 +281299,6 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
281299
281299
pexp_loc = e.pexp_loc;
281300
281300
pexp_attributes = e.pexp_attributes;
281301
281301
}
281302
- | Pexp_ident _ ->
281303
- {
281304
- pexp_desc = Pexp_apply (fn, [ (Nolabel, new_obj_arg) ]);
281305
- pexp_loc = e.pexp_loc;
281306
- pexp_attributes = e.pexp_attributes;
281307
- }
281308
281302
| _ -> (
281309
281303
match Ast_open_cxt.destruct fn [] with
281310
281304
| ( { pexp_desc = Pexp_tuple xs; pexp_attributes = tuple_attrs },
@@ -281357,7 +281351,9 @@ let app_exp_mapper (e : exp) (self : Bs_ast_mapper.mapper) (fn : exp)
281357
281351
pexp_attributes = [];
281358
281352
pexp_loc = loc;
281359
281353
}
281360
- | _ -> Ast_compatible.app1 ~loc fn new_obj_arg))
281354
+ | _ ->
281355
+ Ast_compatible.app1 ~loc ~attrs:e.pexp_attributes fn
281356
+ new_obj_arg))
281361
281357
| Some { op = "##"; loc; args = [ obj; rest ] } -> (
281362
281358
(* - obj##property
281363
281359
- obj#(method a b )
You can’t perform that action at this time.
0 commit comments