Odoc_loader.Lookup_def
Sourceval lookup_def :
(string -> (Odoc_model.Lang.Compilation_unit.t * t) option) ->
Odoc_model.Paths.Identifier.NonSrc.t ->
Odoc_model.Paths.Identifier.SourceLocation.t option
Returns the root module containing the definition of the given identifier and the corresponding anchor.
Returns None
if the cmt doesn't have a shape (eg. if it is not an implementation). Returns Some _
even if shapes are not implemented.
In case of Some _
, returns both the shape and the relevant infos taken from the cmt
.