Odoc_xref2.EnvSourcetype resolver = {open_units : string list;lookup_unit : path_query ->
(lookup_unit_result, lookup_error) Odoc_utils.result;lookup_page : path_query ->
(Odoc_model.Lang.Page.t, lookup_error) Odoc_utils.result;lookup_asset : path_query ->
(Odoc_model.Lang.Asset.t, lookup_error) Odoc_utils.result;lookup_impl : string -> Odoc_model.Lang.Implementation.t option;}type root = | Resolved of Odoc_model.Root.t
* Odoc_model.Paths.Identifier.Module.t
* Component.Module.t| Forwardtype lookup_type = | Module of Odoc_model.Paths.Identifier.Path.Module.t| ModuleType of Odoc_model.Paths.Identifier.ModuleType.t| RootModule of Odoc_model.Names.ModuleName.t
* [ `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 ->
Component.Extension.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_page_by_name :
string ->
t ->
(Odoc_model.Lang.Page.t, lookup_error) Odoc_utils.resultval lookup_page_by_path :
Odoc_model.Paths.Reference.Hierarchy.t ->
t ->
(Odoc_model.Lang.Page.t, lookup_error) Odoc_utils.resultval lookup_asset_by_path :
Odoc_model.Paths.Reference.Hierarchy.t ->
t ->
(Odoc_model.Lang.Asset.t, lookup_error) Odoc_utils.resultval lookup_asset_by_name :
string ->
t ->
(Odoc_model.Lang.Asset.t, lookup_error) Odoc_utils.resultval lookup_unit_by_path :
Odoc_model.Paths.Reference.Hierarchy.t ->
t ->
(Component.Element.module_, lookup_error) Odoc_utils.resultTarget of a lookup
type 'a maybe_ambiguous =
('a, [ `Ambiguous of 'a * 'a list | `Not_found ]) Odoc_utils.Result.resultLookup 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.
Create a new env for an implementation.