Ocaml_typing.Typetexpmodule TyVarEnv : sig ... endval type_open :
(?used_slot:bool ref ->
Ocaml_parsing.Asttypes.override_flag ->
Env.t ->
Ocaml_parsing.Location.t ->
Ocaml_parsing.Longident.t Ocaml_parsing.Asttypes.loc ->
Path.t * Env.t)
refval transl_label :
Ocaml_parsing.Parsetree.arg_label ->
Ocaml_parsing.Parsetree.core_type option ->
Types.arg_labeltransl_label lbl ty produces a Typedtree argument label for an argument with label lbl and type ty.
Position arguments (lbl:[%call_pos] -> ...) are parsed as Labelled l. This function converts them to Position l when the type is of the form [%call_pos].
val transl_label_from_pat :
Ocaml_parsing.Parsetree.arg_label ->
Ocaml_parsing.Parsetree.pattern ->
Types.arg_label * Ocaml_parsing.Parsetree.patternProduces a Typedtree argument label, as well as the pattern corresponding to the argument. transl_label lbl pat is equal to:
Position l, P when lbl is Labelled l and pat represents (P : [%call_pos])transl_label lbl None, pat otherwise.val transl_label_from_expr :
Ocaml_parsing.Parsetree.arg_label ->
Ocaml_parsing.Parsetree.expression ->
Types.arg_label * Ocaml_parsing.Parsetree.expressionLike transl_label_from_pat, but with special handling for expressions (E : [%call_pos]) instead of for patterns.
val transl_simple_type :
Env.t ->
new_var_jkind:jkind_initialization_choice ->
?univars:TyVarEnv.poly_univars ->
closed:bool ->
Mode.Alloc.Const.t ->
Ocaml_parsing.Parsetree.core_type ->
Typedtree.core_typeval transl_simple_type_univars :
Env.t ->
Ocaml_parsing.Parsetree.core_type ->
Typedtree.core_typeval transl_simple_type_delayed :
Env.t ->
Mode.Alloc.Const.t ->
Ocaml_parsing.Parsetree.core_type ->
Typedtree.core_type * Types.type_expr * (unit -> unit)val transl_type_scheme :
Env.t ->
Ocaml_parsing.Parsetree.core_type ->
Typedtree.core_typeval transl_type_param :
Env.t ->
Path.t ->
Types.jkind_lr ->
Ocaml_parsing.Parsetree.core_type ->
Typedtree.core_typeval get_type_param_jkind :
Path.t ->
Ocaml_parsing.Parsetree.core_type ->
Types.jkind_lrval get_type_param_name : Ocaml_parsing.Parsetree.core_type -> string optiontype error = | Unbound_type_variable of string * string list * unbound_variable_reason option| No_type_wildcards of unbound_variable_reason option| Undefined_type_constructor of Path.t| Type_arity_mismatch of Ocaml_parsing.Longident.t * int * int| Bound_type_variable of string| Recursive_type| Type_mismatch of Errortrace.unification_error| Alias_type_mismatch of Errortrace.unification_error| Present_has_conjunction of string| Present_has_no_type of string| Constructor_mismatch of Types.type_expr * Types.type_expr| Not_a_variant of Types.type_expr| Invalid_variable_name of string| Cannot_quantify of string * cannot_quantify_reason| Bad_univar_jkind of {name : string;jkind_info : jkind_info;inferred_jkind : Types.jkind_lr;}| Multiple_constraints_on_type of Ocaml_parsing.Longident.t| Method_mismatch of string * Types.type_expr * Types.type_expr| Opened_object of Path.t option| Not_an_object of Types.type_expr| Unsupported_extension : _ Ocaml_parsing.Language_extension.t -> error| Polymorphic_optional_param| Non_value of {vloc : value_loc;typ : Types.type_expr;err : Jkind.Violation.t;}| Non_sort of {vloc : sort_loc;typ : Types.type_expr;err : Jkind.Violation.t;}| Bad_jkind_annot of Types.type_expr * Jkind.Violation.t| Did_you_mean_unboxed of Ocaml_parsing.Longident.t| Invalid_label_for_call_pos of Ocaml_parsing.Parsetree.arg_label| Invalid_variable_stage of {}exception Error of Ocaml_parsing.Location.t * Env.t * errorval report_error : Env.t -> Format.formatter -> error -> unitval transl_modtype_longident :
(Ocaml_parsing.Location.t ->
Env.t ->
Ocaml_parsing.Longident.t ->
Path.t)
refval transl_modtype :
(Env.t -> Ocaml_parsing.Parsetree.module_type -> Typedtree.module_type) refval check_package_with_type_constraints :
(Ocaml_parsing.Location.t ->
Env.t ->
Types.module_type ->
(Ocaml_parsing.Longident.t Ocaml_parsing.Asttypes.loc * Typedtree.core_type)
list ->
Types.module_type)
ref