Odoc_xref2.EnvSourcetype lookup_unit_result = | Forward_reference| Found of Odoc_model.Lang.Compilation_unit.t| Not_foundtype root = | Resolved of Odoc_model.Root.t
* Odoc_model.Paths.Identifier.Module.t
* Component.Module.t| Forwardtype resolver = {open_units : string list;lookup_unit : string -> lookup_unit_result;lookup_page : string -> lookup_page_result;lookup_def : Odoc_model.Paths.Identifier.NonSrc.t ->
Odoc_model.Paths.Identifier.SourceLocation.t option;Lookup the source code location from an identifier. Returns Some (source_parent, anchor) when definition is found.
}type lookup_type = | Module of Odoc_model.Paths.Identifier.Path.Module.t| ModuleType of Odoc_model.Paths.Identifier.ModuleType.t| RootModule of string * [ `Forward | `Resolved of Digest.t ] option| ModuleByName of string * Odoc_model.Paths.Identifier.Path.Module.t| FragmentRoot of intval add_module :
Odoc_model.Paths.Identifier.Path.Module.t ->
Component.Module.t Component.Delayed.t ->
Component.CComment.docs ->
t ->
tval add_module_type :
Odoc_model.Paths.Identifier.Path.ModuleType.t ->
Component.ModuleType.t ->
t ->
tval add_class_type :
Odoc_model.Paths.Identifier.ClassType.t ->
Component.ClassType.t ->
t ->
tval add_exception :
Odoc_model.Paths.Identifier.Exception.t ->
Component.Exception.t ->
t ->
tval add_extension_constructor :
Odoc_model.Paths.Identifier.Extension.t ->
Component.Extension.Constructor.t ->
t ->
tval add_module_functor_args :
Component.Module.t ->
Odoc_model.Paths.Identifier.Path.Module.t ->
t ->
tval add_module_type_functor_args :
Component.ModuleType.t ->
Odoc_model.Paths.Identifier.ModuleType.t ->
t ->
tval lookup_def :
Odoc_model.Paths.Identifier.NonSrc.t ->
t ->
Odoc_model.Paths.Identifier.SourceLocation.t optionLookup the definition of the given identifier. Returns the root module and the anchor.
Target of a lookup
Lookup an element in Env depending on the given scope. Return Error (`Ambiguous _) when two or more elements match the given scope and name.
val lookup_by_id :
'a scope ->
[< Odoc_model.Paths.Identifier.t_pv ] Odoc_model.Paths.Identifier.id ->
t ->
'a optionLike lookup_by_name but use an identifier as key.
Add a page content to the env.
Create a new env with a module initially opened.
Create a new env for a page.