Module Astlib.Migrate_504_503

module From = Ast_504
module To = Ast_503
module Bivariant_param : sig ... end
val bivariant_error : loc:Location.t -> 'a
val copy_class_infos_ : 'f0 'g0. ('f0 -> 'g0) -> 'f0 Ast_504.Parsetree.class_infos -> bool * 'g0 Ast_503.Parsetree.class_infos
val copy_include_infos : 'f0 'g0. ('f0 -> 'g0) -> 'f0 Ast_504.Parsetree.include_infos -> 'g0 Ast_503.Parsetree.include_infos
val copy_open_infos : 'f0 'g0. ('f0 -> 'g0) -> 'f0 Ast_504.Parsetree.open_infos -> 'g0 Ast_503.Parsetree.open_infos
val copy_Longident_t : Ast_504.Longident.t -> Longident.t
val copy_loc : 'f0 'g0. ('f0 -> 'g0) -> 'f0 Ast_504.Asttypes.loc -> 'g0 Ast_503.Asttypes.loc
val copy_location : Location.t -> Location.t

The functions below are provided to keep a coherent and stable API with other migrate_X_Y modules while allowing us to locally define variations of those functions used to encode 5.4 features into the 5.3 AST.

val copy_class_infos : 'f0 'g0. ('f0 -> 'g0) -> 'f0 Ast_504.Parsetree.class_infos -> 'g0 Ast_503.Parsetree.class_infos