package ocp-index
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=b4d5f80b168a31146df5eb30613cc1b9
sha512=f8f97e846e37473a77636518ceefafa72a62f26ed9e7fc65ee4625498bcc1797187e895d903dfb2e874e93889956ee02b2e1f6f90c61717107db8e96d388d65a
doc/ocp-index.lib/IndexBuild/index.html
Module IndexBuildSource
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.tSame 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.