jon.recoil.org

Module Persistent_env

module Consistbl_data = Import_info.Intf.Nonalias.Kind
module Consistbl : module type of struct include Consistbl.Make(Compilation_unit.Name)(Consistbl_data) end
type error =
  1. | Illegal_renaming of Compilation_unit.Name.t * Compilation_unit.Name.t * Misc.filepath
  2. | Inconsistent_import of Compilation_unit.Name.t * Misc.filepath * Misc.filepath
  3. | Need_recursive_types of Compilation_unit.Name.t
  4. | Inconsistent_package_declaration_between_imports of Misc.filepath * Compilation_unit.t * Compilation_unit.t
  5. | Direct_reference_from_wrong_package of Compilation_unit.t * Misc.filepath * Compilation_unit.Prefix.t
  6. | Illegal_import_of_parameter of Global_module.Name.t * Misc.filepath
  7. | Not_compiled_as_parameter of Global_module.Name.t
  8. | Imported_module_has_unset_parameter of {
    1. imported : Global_module.Name.t;
    2. parameter : Global_module.Parameter_name.t;
    }
  9. | Imported_module_has_no_such_parameter of {
    1. imported : Compilation_unit.Name.t;
    2. valid_parameters : Global_module.Parameter_name.t list;
    3. parameter : Global_module.Parameter_name.t;
    4. value : Global_module.Name.t;
    }
  10. | Not_compiled_as_argument of {
    1. param : Global_module.Parameter_name.t;
    2. value : Global_module.Name.t;
    3. filename : Misc.filepath;
    }
  11. | Argument_type_mismatch of {
    1. value : Global_module.Name.t;
    2. filename : Misc.filepath;
    3. expected : Global_module.Parameter_name.t;
    4. actual : Global_module.Parameter_name.t;
    }
  12. | Unbound_module_as_argument_value of {
    1. instance : Global_module.Name.t;
    2. value : Global_module.Name.t;
    }
exception Error of Persistent_env.error
val report_error : Stdlib.Format.formatter -> Persistent_env.error -> unit
module Persistent_signature : sig ... end
type can_load_cmis =
  1. | Can_load_cmis
  2. | Cannot_load_cmis of Lazy_backtrack.log
type 'a t
val empty : unit -> 'a Persistent_env.t
val clear : 'a Persistent_env.t -> unit
val clear_missing : 'a Persistent_env.t -> unit
val fold : 'a Persistent_env.t -> (Global_module.Name.t -> 'a -> 'b -> 'b) -> 'b -> 'b
type address =
  1. | Aunit of Compilation_unit.t
  2. | Alocal of Ident.t
  3. | Adot of Persistent_env.address * Types.module_representation * int
type 'a sig_reader = Subst.Lazy.signature -> Global_module.Name.t -> Shape.Uid.t -> shape:Shape.t -> address:Persistent_env.address -> flags:Cmi_format.pers_flags list -> 'a
val find : allow_hidden:bool -> 'a Persistent_env.t -> 'a Persistent_env.sig_reader -> Global_module.Name.t -> allow_excess_args:bool -> 'a
val find_in_cache : 'a Persistent_env.t -> Global_module.Name.t -> 'a option
val check : allow_hidden:bool -> 'a Persistent_env.t -> 'a Persistent_env.sig_reader -> loc:Location.t -> Global_module.Name.t -> unit
val register_parameter : 'a Persistent_env.t -> Global_module.Parameter_name.t -> unit
val is_parameter_import : 'a Persistent_env.t -> Global_module.Name.t -> bool
val looked_up : 'a Persistent_env.t -> Global_module.Name.t -> bool
val is_imported_opaque : 'a Persistent_env.t -> Compilation_unit.Name.t -> bool
val register_import_as_opaque : 'a Persistent_env.t -> Compilation_unit.Name.t -> unit
val implemented_parameter : 'a Persistent_env.t -> Global_module.Name.t -> Global_module.Parameter_name.t option
val global_of_global_name : 'a Persistent_env.t -> check:bool -> Global_module.Name.t -> allow_excess_args:bool -> Global_module.t
val normalize_global_name : 'a Persistent_env.t -> Global_module.Name.t -> Global_module.Name.t
val set_can_load_cmis : 'a Persistent_env.t -> Persistent_env.can_load_cmis -> unit
val without_cmis : 'a Persistent_env.t -> ('b -> 'c) -> 'b -> 'c
val import_crcs : 'a Persistent_env.t -> source:Misc.filepath -> Import_info.Intf.t array -> unit
val imports : 'a Persistent_env.t -> Import_info.Intf.t list
val require_global_for_quote : 'a Persistent_env.t -> Compilation_unit.Name.t -> unit
val quoted_globals : 'a Persistent_env.t -> Compilation_unit.Name.t list
val runtime_parameter_bindings : 'a Persistent_env.t -> (Global_module.t * Ident.t) list
val is_bound_to_runtime_parameter : 'a Persistent_env.t -> Ident.t -> bool
val is_imported_parameter : 'a Persistent_env.t -> Global_module.Name.t -> bool
val add_delayed_check_forward : ((unit -> unit) -> unit) Stdlib.ref