Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Type expressions
val mk :
?loc:loc ->
?attrs:attrs ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type_desc ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val any :
?loc:loc ->
?attrs:attrs ->
unit ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val var :
?loc:loc ->
?attrs:attrs ->
string ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val tuple :
?loc:loc ->
?attrs:attrs ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type list ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val constr :
?loc:loc ->
?attrs:attrs ->
lid ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type list ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val object_ :
?loc:loc ->
?attrs:attrs ->
(string
* Migrate_parsetree.OCaml_403.Ast.Parsetree.attributes
* Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type)
list ->
Migrate_parsetree.OCaml_403.Ast.Asttypes.closed_flag ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val class_ :
?loc:loc ->
?attrs:attrs ->
lid ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type list ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val alias :
?loc:loc ->
?attrs:attrs ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type ->
string ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val variant :
?loc:loc ->
?attrs:attrs ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.row_field list ->
Migrate_parsetree.OCaml_403.Ast.Asttypes.closed_flag ->
Migrate_parsetree.OCaml_403.Ast.Asttypes.label list option ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val poly :
?loc:loc ->
?attrs:attrs ->
string list ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val package :
?loc:loc ->
?attrs:attrs ->
lid ->
(lid * Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type) list ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val extension :
?loc:loc ->
?attrs:attrs ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.extension ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
val varify_constructors :
string list ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type ->
Migrate_parsetree.OCaml_403.Ast.Parsetree.core_type
varify_constructors newtypes te
is type expression te
, of which any of nullary type constructor tc
is replaced by type variable of the same name, if tc
's name appears in newtypes
. Raise Syntaxerr.Variable_in_scope
if any type variable inside te
appears in newtypes
.