Module Ocaml_typing.DatareprSource
Source
val extension_descr :
current_unit:Unit_info.t option ->
Path.t ->
Types.extension_constructor ->
Types.constructor_descriptionSource
val labels_of_type :
Path.t ->
Types.type_declaration ->
(Ident.t * Types.label_description) listSource
val unboxed_labels_of_type :
Path.t ->
Types.type_declaration ->
(Ident.t * Types.unboxed_label_description) listSource
val constructors_of_type :
current_unit:Unit_info.t option ->
Path.t ->
Types.type_declaration ->
(Ident.t * Types.constructor_description) listSource
type variant_with_null_payload = {payload_cstr : Types.constructor_declaration;payload_arg : Types.constructor_argument;
}Source
val find_variant_with_null_payload :
Types.constructor_declaration list ->
variant_with_null_payload optionSource
val find_constr_by_tag :
constant:bool ->
int ->
((Types.constructor_description * 'a) * 'b) list ->
Types.constructor_descriptionSource
val constructor_existentials :
Types.constructor_arguments ->
Types.type_expr option ->
Types.type_expr list * Types.type_expr listTakes cd_args and cd_res from a constructor_declaration and returns:
- the types of the constructor's arguments
- the existential variables introduced by the constructor