File tree Expand file tree Collapse file tree 6 files changed +24
-35
lines changed Expand file tree Collapse file tree 6 files changed +24
-35
lines changed Original file line number Diff line number Diff line change @@ -209,11 +209,7 @@ let app_exp_mapper
209
209
Ast_attributes. is_bs with
210
210
| None -> default_expr_mapper self e
211
211
| Some pexp_attributes ->
212
- #if BS_NATIVE then
213
- {e with pexp_attributes }
214
- #else
215
- {e with pexp_desc = Ast_util. uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
216
- pexp_attributes }
217
-
218
-
219
- #end
212
+ if ! Clflags. bs_only then
213
+ {e with pexp_desc = Ast_util. uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
214
+ pexp_attributes }
215
+ else {e with pexp_attributes } (* BS_NATIVE branch*)
Original file line number Diff line number Diff line change @@ -39131,12 +39131,10 @@ let app_exp_mapper
39131
39131
Ast_attributes.is_bs with
39132
39132
| None -> default_expr_mapper self e
39133
39133
| Some pexp_attributes ->
39134
-
39135
- {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
39136
- pexp_attributes }
39137
-
39138
-
39139
-
39134
+ if !Clflags.bs_only then
39135
+ {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
39136
+ pexp_attributes }
39137
+ else {e with pexp_attributes } (* BS_NATIVE branch*)
39140
39138
39141
39139
end
39142
39140
module Ast_exp_extension : sig
Original file line number Diff line number Diff line change @@ -21237,12 +21237,10 @@ let app_exp_mapper
21237
21237
Ast_attributes.is_bs with
21238
21238
| None -> default_expr_mapper self e
21239
21239
| Some pexp_attributes ->
21240
-
21241
- {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
21242
- pexp_attributes }
21243
-
21244
-
21245
-
21240
+ if !Clflags.bs_only then
21241
+ {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
21242
+ pexp_attributes }
21243
+ else {e with pexp_attributes } (* BS_NATIVE branch*)
21246
21244
21247
21245
end
21248
21246
module Ast_exp_extension : sig
Original file line number Diff line number Diff line change @@ -21118,12 +21118,10 @@ let app_exp_mapper
21118
21118
Ast_attributes.is_bs with
21119
21119
| None -> default_expr_mapper self e
21120
21120
| Some pexp_attributes ->
21121
-
21122
- {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
21123
- pexp_attributes }
21124
-
21125
-
21126
-
21121
+ if !Clflags.bs_only then
21122
+ {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
21123
+ pexp_attributes }
21124
+ else {e with pexp_attributes } (* BS_NATIVE branch*)
21127
21125
21128
21126
end
21129
21127
module Ast_exp_extension : sig
Original file line number Diff line number Diff line change @@ -19449,9 +19449,10 @@ let app_exp_mapper
19449
19449
Ast_attributes.is_bs with
19450
19450
| None -> default_expr_mapper self e
19451
19451
| Some pexp_attributes ->
19452
-
19453
- {e with pexp_attributes }
19454
-
19452
+ if !Clflags.bs_only then
19453
+ {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
19454
+ pexp_attributes }
19455
+ else {e with pexp_attributes } (* BS_NATIVE branch*)
19455
19456
19456
19457
end
19457
19458
module Ast_signature : sig
Original file line number Diff line number Diff line change @@ -117692,12 +117692,10 @@ let app_exp_mapper
117692
117692
Ast_attributes.is_bs with
117693
117693
| None -> default_expr_mapper self e
117694
117694
| Some pexp_attributes ->
117695
-
117696
- {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
117697
- pexp_attributes }
117698
-
117699
-
117700
-
117695
+ if !Clflags.bs_only then
117696
+ {e with pexp_desc = Ast_util.uncurry_fn_apply e.pexp_loc self fn (check_and_discard args) ;
117697
+ pexp_attributes }
117698
+ else {e with pexp_attributes } (* BS_NATIVE branch*)
117701
117699
117702
117700
end
117703
117701
module Ast_external : sig
You can’t perform that action at this time.
0 commit comments