Skip to content

Commit e8d027c

Browse files
committed
Maybe not all instances.
1 parent b221207 commit e8d027c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+183
-278
lines changed

jscomp/core/lam_compile.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,8 +1407,8 @@ and compile_apply (appinfo : Lam.apply) (lambda_cxt : Lam_compile_context.t) =
14071407
match appinfo with
14081408
| {
14091409
ap_func =
1410-
Lapply { ap_func; ap_args; ap_info = { ap_status = App_uncurry; ap_inlined } };
1411-
ap_info = { ap_status = App_uncurry } as outer_ap_info;
1410+
Lapply { ap_func; ap_args; ap_info = { ap_status = App_na; ap_inlined } };
1411+
ap_info = { ap_status = App_na } as outer_ap_info;
14121412
} ->
14131413
(* After inlining, we can generate such code, see {!Ari_regress_test}*)
14141414
let ap_info =

jscomp/core/lam_convert.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,14 +695,14 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) :
695695
{
696696
ap_loc = outer_loc;
697697
ap_inlined = ap_info.ap_inlined;
698-
ap_status = App_uncurry;
698+
ap_status = App_na;
699699
}
700700
| _ ->
701701
Lam.apply f [ x ]
702702
{
703703
ap_loc = outer_loc;
704704
ap_inlined = Default_inline;
705-
ap_status = App_uncurry;
705+
ap_status = App_na;
706706
}
707707
and convert_switch (e : Lambda.lambda) (s : Lambda.lambda_switch) =
708708
let e = convert_aux e in

jscomp/core/lam_eta_conversion.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ let transform_under_supply n ap_info fn args =
111111
let unsafe_adjust_to_arity loc ~(to_ : int) ?(from : int option) (fn : Lam.t) :
112112
Lam.t =
113113
let ap_info : Lam.ap_info =
114-
{ ap_loc = loc; ap_inlined = Default_inline; ap_status = App_uncurry }
114+
{ ap_loc = loc; ap_inlined = Default_inline; ap_status = App_na }
115115
in
116116
let is_async_fn = match fn with
117117
| Lfunction { attr = {async}} -> async
@@ -199,7 +199,7 @@ let unsafe_adjust_to_arity loc ~(to_ : int) ?(from : int option) (fn : Lam.t) :
199199
Lam.apply
200200
(Lam.apply new_fn
201201
(Ext_list.map first_args Lam.var)
202-
{ ap_info with ap_status = App_uncurry })
202+
{ ap_info with ap_status = App_infer_full })
203203
(Ext_list.map rest_args Lam.var)
204204
ap_info)
205205
in
@@ -260,7 +260,7 @@ let unsafe_adjust_to_arity loc ~(to_ : int) ?(from : int option) (fn : Lam.t) :
260260
(Ext_list.map_append extra_outer_args
261261
(Ext_list.map extra_inner_args Lam.var)
262262
Lam.var)
263-
{ ap_info with ap_status = App_uncurry }))
263+
{ ap_info with ap_status = App_infer_full }))
264264
in
265265
match wrapper with
266266
| None -> cont

jscomp/core/lam_pass_alpha_conversion.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ let alpha_conversion (meta : Lam_stats.t) (lam : Lam.t) : Lam.t =
3030
| x :: _ ->
3131
if x = len then
3232
Lam.apply (simpl fn) (Ext_list.map args simpl)
33-
{ ap_info with ap_status = App_uncurry }
33+
{ ap_info with ap_status = App_infer_full }
3434
else if x > len then
3535
let fn = simpl fn in
3636
let args = Ext_list.map args simpl in
3737
Lam_eta_conversion.transform_under_supply (x - len)
38-
{ ap_info with ap_status = App_uncurry }
38+
{ ap_info with ap_status = App_infer_full }
3939
fn args
4040
else
4141
let first, rest = Ext_list.split_at args x in
4242
Lam.apply
4343
(Lam.apply (simpl fn) (Ext_list.map first simpl)
44-
{ ap_info with ap_status = App_uncurry })
44+
{ ap_info with ap_status = App_infer_full })
4545
(Ext_list.map rest simpl) ap_info
4646
(* TODO refien *)
4747
and simpl (lam : Lam.t) =

jscomp/gentype_tests/typescript-react-example/src/BucklescriptAnnotations.res.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/src/CreateErrorHandler1.res.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/src/ErrorHandler.res.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/src/Hooks.res.js

Lines changed: 7 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/src/ImmutableArray.res.js

Lines changed: 57 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jscomp/gentype_tests/typescript-react-example/src/ImportJsValue.res.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)