@@ -61650,7 +61650,9 @@ type file_kind =
61650
61650
| Upper_bs
61651
61651
| Little_js
61652
61652
| Little_bs
61653
- (** [js_name_of_modulename ~little A-Ns]
61653
+
61654
+
61655
+ (** [js_name_of_modulename ~little A-Ns]
61654
61656
*)
61655
61657
val js_name_of_modulename :
61656
61658
string ->
@@ -83656,18 +83658,18 @@ val runtime_package_path:
83656
83658
string ->
83657
83659
string
83658
83660
83659
- type package_info
83660
- =
83661
- {
83662
- module_system : module_system ;
83663
- path : string
83664
- }
83661
+ type package_info = {
83662
+ module_system : module_system ;
83663
+ path : string
83664
+ }
83665
83665
83666
83666
type t
83667
83667
83668
83668
val is_runtime_package:
83669
83669
t ->
83670
83670
bool
83671
+
83672
+
83671
83673
83672
83674
val same_package_by_name :
83673
83675
t ->
@@ -86913,10 +86915,12 @@ val make:
86913
86915
cmj_case:cmj_case ->
86914
86916
t
86915
86917
86916
- type keyed_cmj_value =
86917
- { name : string ;
86918
- arity : arity ;
86919
- persistent_closed_lambda : Lam.t option}
86918
+ type keyed_cmj_value = {
86919
+ name : string ;
86920
+ arity : arity ;
86921
+ persistent_closed_lambda : Lam.t option
86922
+ }
86923
+
86920
86924
val query_by_name :
86921
86925
t ->
86922
86926
string ->
@@ -86944,7 +86948,8 @@ val from_file_with_digest :
86944
86948
86945
86949
val from_string : string -> t
86946
86950
86947
- (* Note writing the file if its content is not chnaged
86951
+ (*
86952
+ Note writing the file if its content is not changed
86948
86953
*)
86949
86954
val to_file :
86950
86955
string -> check_exists:bool -> t -> unit
@@ -106647,17 +106652,17 @@ let rec get_arity (meta : Lam_stats.t) (lam : Lam.t) : Lam_arity.t =
106647
106652
| Lvar v -> arity_of_var meta v
106648
106653
| Lconst _ -> Lam_arity.non_function_arity_info
106649
106654
| Llet(_,_,_, l ) -> get_arity meta l
106650
- | Lprim {primitive = Pfield (_, Fld_module {name = fld_name });
106655
+ | Lprim {primitive = Pfield (_, Fld_module {name });
106651
106656
args = [ Lglobal_module id ]; _} ->
106652
- begin match (Lam_compile_env.query_external_id_info id fld_name ).arity with
106657
+ begin match (Lam_compile_env.query_external_id_info id name ).arity with
106653
106658
| Single x -> x
106654
106659
| Submodule _ -> Lam_arity.na
106655
106660
end
106656
106661
| Lprim {primitive = Pfield (m,_);
106657
- args = [ Lprim{primitive = Pfield(n ,Fld_module {name = fld_name });
106662
+ args = [ Lprim{primitive = Pfield(_ ,Fld_module {name });
106658
106663
args = [ Lglobal_module id]} ]
106659
106664
; _} ->
106660
- begin match (Lam_compile_env.query_external_id_info id fld_name ).arity with
106665
+ begin match (Lam_compile_env.query_external_id_info id name ).arity with
106661
106666
| Submodule subs -> subs.(m) (* TODO: shall we store it as array?*)
106662
106667
| Single _ -> Lam_arity.na
106663
106668
end
@@ -115973,14 +115978,14 @@ let rec
115973
115978
compile_external_field (* Like [List.empty]*)
115974
115979
(lamba_cxt : Lam_compile_context.t)
115975
115980
(id : Ident.t)
115976
- pos
115981
+ name
115977
115982
: Js_output.t =
115978
- match Lam_compile_env.query_external_id_info id pos with
115983
+ match Lam_compile_env.query_external_id_info id name with
115979
115984
| { persistent_closed_lambda = Some lam}
115980
115985
when Lam_util.not_function lam
115981
115986
->
115982
115987
compile_lambda lamba_cxt lam
115983
- | { name} ->
115988
+ | _ ->
115984
115989
Js_output.output_of_expression lamba_cxt.continuation
115985
115990
~no_effects:no_effects_const
115986
115991
(E.ml_var_dot id name )
@@ -116050,7 +116055,9 @@ and compile_external_field_apply
116050
116055
E.call ~info:(call_info_of_ap_status ap_status) fn args
116051
116056
| App_na ->
116052
116057
match ident_info.arity with
116053
- | Submodule _ -> E.call ~info:Js_call_info.dummy fn args
116058
+ | Submodule _
116059
+ | Single Arity_na
116060
+ -> E.call ~info:Js_call_info.dummy fn args
116054
116061
| Single x ->
116055
116062
apply_with_arity
116056
116063
fn ~arity:(Lam_arity.extract_arity x) args
@@ -403421,9 +403428,8 @@ let simplify_alias
403421
403428
end
403422
403429
| _ -> true
403423
403430
) ->
403424
- simpl @@
403425
- Lam_beta_reduce.propogate_beta_reduce
403426
- meta params body args
403431
+ simpl (Lam_beta_reduce.propogate_beta_reduce
403432
+ meta params body args)
403427
403433
| _ ->
403428
403434
Lam.apply (simpl l1) (Ext_list.map args simpl) loc status
403429
403435
@@ -403703,9 +403709,7 @@ let values_of_export
403703
403709
match arity, persistent_closed_lambda with
403704
403710
| Single Arity_na,
403705
403711
(None | Some (Lconst (Const_pointer (_, Pt_module_alias)))) -> acc
403706
- (* TODO: empty module can be saved too
403707
- This is common since we have a module of externals quite common
403708
- *)
403712
+ | Submodule [||], None -> acc
403709
403713
| _ ->
403710
403714
let cmj_value : Js_cmj_format.cmj_value =
403711
403715
{arity ; persistent_closed_lambda } in
0 commit comments