Module Ocaml_typing.DatareprSource
Source
val extension_descr :
current_unit:Ocaml_parsing.Unit_info.t option ->
Path.t ->
Types.extension_constructor ->
Data_types.constructor_descriptionSource
val labels_of_type :
Path.t ->
Types.type_declaration ->
(Ident.t * Data_types.label_description) listSource
val constructors_of_type :
current_unit:Ocaml_parsing.Unit_info.t option ->
Path.t ->
Types.type_declaration ->
(Ident.t * Data_types.constructor_description) listSource
val find_constr_by_tag :
Data_types.constructor_tag ->
Types.constructor_declaration list ->
Types.constructor_declarationSource
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