Module Cobj.Index
Compilation object indexes.
Indexes
val empty : tThe type for empty indexes.
val of_cobjs : ?init:t -> cobj list -> tof_cobjs ~init cobjsis an index made ofinit(defaults toempty) andcobjs.
val cobjs_by_name : t -> cobj list Omod.Private.String.Map.tcobjs_by_name iare the module names ofiand the compilation objects they map to.
val cobjs_by_digest : t -> cobj list Digest.Map.tcobjs_by_digest iare the interface digests ofiand the compilation objects they map to.
val cobjs_by_pkg_name : t -> cobj list Omod.Private.String.Map.tcobjs_by_pkg_name iare the package names ofiand the compilation objects they map to.
val cobjs_for_mod_name : string -> t -> cobj listcobjs_for_mod_name n iare the compilation objects ofiwhose module name matchesn.
val cobjs_for_iface_digest : Digest.t -> t -> cobj listcobjs_for_iface_digest d iare the compilation objects ofiwhose interface digest matchesd.
val cobjs_for_pkg_name : string -> t -> cobj listcobjs_for_pkg_name n iare the compilation objects ofiwhose package name matchesn.
val cobjs_for_dep : dep -> t -> cobj listcobjs_for_iface_digest dep iare the compilation objects ofiwhich satisfy dependencydep.
val cobjs_for_dep_res : variants:Omod.Private.String.Set.t -> sat:(cobj -> bool) -> kind:kind -> dep -> t -> cobj listcobjs_for_dep_res ~variants ~sat ~kind dep iresolvesdepinito asatsatisfying compilation object of kindkindwith the following twists:- If no
kindcan be found but aCmiexists the latter is returned, assuming an mli-only module. - If an object is available both as a standalone compilation object and in an archive, only resolutions that mention the archive are returned.
- If an object is available in multiple variants and
variantsis notString.Set.empty then variants that do not belong tovariantsare dropped.
- If no