package ocp-index
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0bc13dfb30c5dece280fd2496ca57cea
sha512=19f564a98cba92c26ebb32d46b7eb9eb60374977760c97b62c1ffa4f568d0a8e563df4a6bbc3ad7ca7760548c7c57465d1eb30ab5f3138c6fb1084d68c0cc0b0
doc/ocp-index.lib/IndexBuild/index.html
Module IndexBuild
Source
This module contains the function to create our lazy data structure from cmi
, cmt
and cmti
files or from whole directories
Build the trie from a list of include directories. They will be scanned for .cmi
and .cmt
files to complete on module names, and the contents of these files will be lazily read whenever needed.
Load a single file into a trie
Consider the module at the given path as opened, i.e. rebind its contents at the root of the trie. If cleanup_path
, also change its contents to refer to the new path.
val fully_open_module :
?cleanup_path:bool ->
qualify:bool ->
IndexTypes.t ->
string list ->
IndexTypes.t
Same as open_module
, but tries to open even the elements that are not in the external interface (this needs a cmt to be present)
alias t origin alias
binds at alias
the contents found at origin
. If ~cleanup_path
is set, also change its contents to refer to the new path.