Module Odoc_odoc.ResolverSource
Management of the documentation environment.
This is the module which does the link between packages, directories and Odoc_xref2's needs.
type roots = {page_roots : Odoc_odoc.Resolver.named_root list;lib_roots : Odoc_odoc.Resolver.named_root list;current_lib : Odoc_odoc.Resolver.named_root option;(*The current
*)-L.current_package : Odoc_odoc.Resolver.named_root option;(*The current
*)-P.current_dir : Odoc_odoc.Fs.Directory.t;(*Directory containing the output for the current unit.
*)
}val create :
important_digests:bool ->
directories:Odoc_odoc.Fs.Directory.t list ->
open_modules:string list ->
roots:Odoc_odoc.Resolver.roots option ->
Odoc_odoc.Resolver.tPrepare the environment for a given list of include directories, page roots and library roots.
Helpers for creating xref2 env.
val build_compile_env_for_unit :
Odoc_odoc.Resolver.t ->
Odoc_model.Lang.Compilation_unit.t ->
Odoc_xref2.Env.tInitialize the environment for compiling the given module.
val build_link_env_for_unit :
Odoc_odoc.Resolver.t ->
Odoc_model.Lang.Compilation_unit.t ->
Odoc_xref2.Env.tInitialize the environment for linking the given module.
Initialize the environment for the given page.
val build_compile_env_for_impl :
Odoc_odoc.Resolver.t ->
Odoc_model.Lang.Implementation.t ->
Odoc_xref2.Env.tInitialize the environment for the given implementation.
val build_link_env_for_impl :
Odoc_odoc.Resolver.t ->
Odoc_model.Lang.Implementation.t ->
Odoc_xref2.Env.tInitialize the environment for the given implementation.
Initialize the environment for a reference.
Similar to Odoc_xref2.Env.lookup_root_module but save work by loading only the root. Only used when resolving imports, which are needed for the link-deps command.