@@ -61656,7 +61656,7 @@ type attr =
61656
61656
| Arg_cst of cst
61657
61657
| Fn_uncurry_arity of int (* annotated with [@bs.uncurry ] or [@bs.uncurry 2]*)
61658
61658
(* maybe we can improve it as a combination of {!Asttypes.constant} and tuple *)
61659
- | Array
61659
+ | Extern_arg_array
61660
61660
| Extern_unit
61661
61661
| Nothing
61662
61662
| Ignore
@@ -61727,7 +61727,7 @@ type attr =
61727
61727
| Arg_cst of cst
61728
61728
| Fn_uncurry_arity of int (* annotated with [@bs.uncurry ] or [@bs.uncurry 2]*)
61729
61729
(* maybe we can improve it as a combination of {!Asttypes.constant} and tuple *)
61730
- | Array
61730
+ | Extern_arg_array
61731
61731
| Extern_unit
61732
61732
| Nothing
61733
61733
| Ignore
@@ -94950,7 +94950,7 @@ let ocaml_to_js_eff
94950
94950
Js_of_lam_variant.eval_as_unwrap raw_arg
94951
94951
in
94952
94952
Splice1 single_arg,[]
94953
- | Nothing | Array -> Splice1 arg, []
94953
+ | Nothing | Extern_arg_array -> Splice1 arg, []
94954
94954
94955
94955
94956
94956
@@ -95015,7 +95015,7 @@ let assemble_args_has_splice call_loc ffi (arg_types : specs) (args : exprs)
95015
95015
let accs, eff = aux labels args in
95016
95016
begin match args, (arg : E.t) with
95017
95017
| [], {expression_desc = Array (ls,_mutable_flag) ;_ } ->
95018
- assert (arg_kind.arg_type = Array );
95018
+ assert (arg_kind.arg_type = Extern_arg_array );
95019
95019
Ext_list.append ls accs, eff
95020
95020
| _ ->
95021
95021
if args = [] then dynamic := true ;
@@ -105880,7 +105880,7 @@ let spec_of_ptyp nolabel (ptyp : Parsetree.core_type) =
105880
105880
| Ptyp_constr ({txt = Lident "unit"; _}, [])
105881
105881
-> if nolabel then Extern_unit else Nothing
105882
105882
| Ptyp_constr ({txt = Lident "array"; _}, [_])
105883
- -> Array
105883
+ -> Extern_arg_array
105884
105884
| Ptyp_variant _ ->
105885
105885
Bs_warnings.prerr_bs_ffi_warning ptyp.ptyp_loc Unsafe_poly_variant_type;
105886
105886
Nothing
@@ -106217,7 +106217,7 @@ let process_obj
106217
106217
arg_type },
106218
106218
arg_types, (* ignored in [arg_types], reserved in [result_types] *)
106219
106219
((name , [], new_ty) :: result_types)
106220
- | Nothing | Array ->
106220
+ | Nothing | Extern_arg_array ->
106221
106221
let s = (Lam_methname.translate ~loc name) in
106222
106222
{arg_label = External_arg_spec.label s None ; arg_type },
106223
106223
{param_type with ty = new_ty}::arg_types,
@@ -106250,7 +106250,7 @@ let process_obj
106250
106250
| Ignore ->
106251
106251
External_arg_spec.empty_kind arg_type,
106252
106252
param_type::arg_types, result_types
106253
- | Nothing | Array ->
106253
+ | Nothing | Extern_arg_array ->
106254
106254
let s = (Lam_methname.translate ~loc name) in
106255
106255
{arg_label = External_arg_spec.optional s; arg_type},
106256
106256
param_type :: arg_types,
@@ -106697,7 +106697,7 @@ let handle_attributes
106697
106697
in
106698
106698
(if i = 0 && splice then
106699
106699
match arg_type with
106700
- | Array -> ()
106700
+ | Extern_arg_array -> ()
106701
106701
| _ -> Location.raise_errorf ~loc "[@@@@bs.splice] expect the last type to be an array");
106702
106702
({ External_arg_spec.arg_label ;
106703
106703
arg_type
0 commit comments