Reason_omp.Versionsmodule type Ast = sig ... endAbstract view of a version of an OCaml Ast
type 'a get_out_value = 'x constraint 'a _types = < out_value : 'x.. >type 'a get_out_type = 'x constraint 'a _types = < out_type : 'x.. >type 'a get_out_class_type = 'x constraint 'a _types = < out_class_type : 'x.. >type 'a get_out_module_type = 'x constraint 'a _types = < out_module_type : 'x.. >type 'a get_out_sig_item = 'x constraint 'a _types = < out_sig_item : 'x.. >type 'a get_out_type_extension = 'x constraint 'a _types = < out_type_extension : 'x.. >type 'a get_out_phrase = 'x constraint 'a _types = < out_phrase : 'x.. >A version of the OCaml frontend packs the ast with type witnesses so that equalities can be recovered dynamically.
module type OCaml_version = sig ... endAn OCaml frontend versions an Ast, version number and some witnesses for conversion.
type 'types ocaml_version =
(module OCaml_version
with type Ast.Outcometree.out_class_type = 'types get_out_class_type
and type Ast.Outcometree.out_module_type = 'types get_out_module_type
and type Ast.Outcometree.out_phrase = 'types get_out_phrase
and type Ast.Outcometree.out_sig_item = 'types get_out_sig_item
and type Ast.Outcometree.out_type = 'types get_out_type
and type Ast.Outcometree.out_type_extension = 'types get_out_type_extension
and type Ast.Outcometree.out_value = 'types get_out_value)Representing an ocaml version in type language
module OCaml_402 : OCaml_version with module Ast = Ast_402val ocaml_402 : OCaml_402.types ocaml_versionmodule OCaml_403 : OCaml_version with module Ast = Ast_403val ocaml_403 : OCaml_403.types ocaml_versionmodule OCaml_404 : OCaml_version with module Ast = Ast_404val ocaml_404 : OCaml_404.types ocaml_versionmodule OCaml_405 : OCaml_version with module Ast = Ast_405val ocaml_405 : OCaml_405.types ocaml_versionmodule OCaml_406 : OCaml_version with module Ast = Ast_406val ocaml_406 : OCaml_406.types ocaml_versionmodule OCaml_407 : OCaml_version with module Ast = Ast_407val ocaml_407 : OCaml_407.types ocaml_versionmodule OCaml_408 : OCaml_version with module Ast = Ast_408val ocaml_408 : OCaml_408.types ocaml_versionmodule OCaml_409 : OCaml_version with module Ast = Ast_409val ocaml_409 : OCaml_409.types ocaml_versionmodule OCaml_410 : OCaml_version with module Ast = Ast_410val ocaml_410 : OCaml_410.types ocaml_versionmodule OCaml_411 : OCaml_version with module Ast = Ast_411val ocaml_411 : OCaml_411.types ocaml_versionmodule OCaml_412 : OCaml_version with module Ast = Ast_412val ocaml_412 : OCaml_412.types ocaml_versionmodule OCaml_413 : OCaml_version with module Ast = Ast_413val ocaml_413 : OCaml_413.types ocaml_versionmodule OCaml_414 : OCaml_version with module Ast = Ast_414val ocaml_414 : OCaml_414.types ocaml_versionmodule OCaml_500 : OCaml_version with module Ast = Ast_500val ocaml_500 : OCaml_500.types ocaml_versionmodule OCaml_51 : OCaml_version with module Ast = Ast_51val ocaml_51 : OCaml_51.types ocaml_versionmodule OCaml_52 : OCaml_version with module Ast = Ast_52val ocaml_52 : OCaml_52.types ocaml_versionmodule OCaml_53 : OCaml_version with module Ast = Reason_omp__.Ast_53val ocaml_53 : OCaml_53.types ocaml_versionmodule OCaml_current = OCaml_410val ocaml_current : OCaml_current.types ocaml_versionval all_versions : (module OCaml_version) listtype ('a, 'b) type_comparison = | Lt : ('a, 'b) type_comparison| Eq : ('a, 'a) type_comparison| Gt : ('a, 'b) type_comparisonval compare_ocaml_version :
'a ocaml_version ->
'b ocaml_version ->
('a, 'b) type_comparisontype ('from, 'to_) migration_functions = {copy_out_value : 'from get_out_value -> 'to_ get_out_value;copy_out_type : 'from get_out_type -> 'to_ get_out_type;copy_out_class_type : 'from get_out_class_type -> 'to_ get_out_class_type;copy_out_module_type : 'from get_out_module_type -> 'to_ get_out_module_type;copy_out_sig_item : 'from get_out_sig_item -> 'to_ get_out_sig_item;copy_out_type_extension : 'from get_out_type_extension ->
'to_ get_out_type_extension;copy_out_phrase : 'from get_out_phrase -> 'to_ get_out_phrase;}A record for migrating each AST construct between two known versions
val migration_identity : ('a, 'a) migration_functionsMigrating to the same version is no-op
val migration_compose :
('a, 'b) migration_functions ->
('b, 'c) migration_functions ->
('a, 'c) migration_functionsMigrations can be composed
Represent the next or previous version of an Ast
type 'from immediate_migration = | No_migration : 'from immediate_migrationCannot migrate earliest or latest supported version
*)| Immediate_migration : ('from, 'to_) migration_functions
* 'to_ ocaml_version -> 'from immediate_migrationPack the migration functions and the new version
*)val immediate_migration :
'types ocaml_version ->
[< `Next | `Previous ] ->
'types immediate_migrationval migrate :
'from ocaml_version ->
'to_ ocaml_version ->
('from, 'to_) migration_functionsmodule Convert (A : OCaml_version) (B : OCaml_version) : sig ... endModule level migration