Module Odoc_xref2.Env

type lookup_unit_result =
  1. | Forward_reference
  2. | Found of Odoc_model.Lang.Compilation_unit.t
  3. | Not_found
type lookup_page_result = Odoc_model.Lang.Page.t option
type resolver = {
  1. open_units : string list;
  2. lookup_unit : string -> lookup_unit_result;
  3. lookup_page : string -> lookup_page_result;
}
type lookup_type =
  1. | Module of Odoc_model.Paths.Identifier.Path.Module.t
  2. | ModuleType of Odoc_model.Paths.Identifier.ModuleType.t
  3. | RootModule of string * [ `Forward | `Resolved of Digest.t ] option
  4. | ModuleByName of string * Odoc_model.Paths.Identifier.Path.Module.t
  5. | FragmentRoot of int
module LookupTypeSet : sig ... end
val pp_lookup_type_list : Format.formatter -> lookup_type list -> unit
type t
val is_linking : t -> bool
val with_recorded_lookups : t -> (t -> 'a) -> LookupTypeSet.t * 'a
val set_resolver : t -> resolver -> t
val has_resolver : t -> bool
val id : t -> int
val empty : t
val add_fragment_root : Odoc_xref2.Component.Signature.t -> t -> t
val add_docs : Odoc_model.Comment.docs -> t -> t
val add_comment : Odoc_model.Comment.docs_or_stop -> t -> t
val lookup_fragment_root : t -> (int * Odoc_xref2.Component.Signature.t) option
val lookup_page : string -> t -> Odoc_model.Lang.Page.t option
val lookup_unit : string -> t -> lookup_unit_result option
val lookup_root_module : string -> t -> root option
type 'a scope constraint 'a = [< Odoc_xref2.Component.Element.any ]
type !'a maybe_ambiguous = ('a, [ `Ambiguous of 'a * 'a list | `Not_found ]) Result.result
val lookup_by_name : [< Odoc_xref2.Component.Element.any ] as 'a scope -> string -> t -> 'a maybe_ambiguous
val add_functor_parameter : Odoc_model.Lang.FunctorParameter.t -> t -> t
val open_class_signature : Odoc_model.Lang.ClassSignature.t -> t -> t
val open_signature : Odoc_model.Lang.Signature.t -> t -> t
val open_type_substitution : Odoc_model.Lang.TypeDecl.t -> t -> t
val open_module_substitution : Odoc_model.Lang.ModuleSubstitution.t -> t -> t
val open_module_type_substitution : Odoc_model.Lang.ModuleTypeSubstitution.t -> t -> t
val open_page : Odoc_model.Lang.Page.t -> t -> t
val env_of_unit : Odoc_model.Lang.Compilation_unit.t -> linking:bool -> resolver -> t
val env_of_page : Odoc_model.Lang.Page.t -> resolver -> t
val env_for_reference : resolver -> t
val env_for_testing : linking:bool -> t
val inherit_resolver : t -> t
val len : int ref
val n : int ref
val verify_lookups : t -> LookupTypeSet.t -> bool