package ocp-index

  1. Overview
  2. Docs
Lightweight completion and documentation browsing for OCaml libraries

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocp-index-1.4.1.tbz
sha256=59adbd99a9c88106dcf23bc0e3424a00f840fcedee4e4b644eaf0385ada3f911
sha512=53c9b83ee7c274bf1981de716081e4d7f603d2d4cc25c83a20d2f4c599d88d2200393feef54f4cdb25e014ea058d498ac711581c40e298df30f33a7cf8f65ff6

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

Sourceval load : qualify:bool -> string list -> IndexTypes.t

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.

Sourceval add_file : qualify:bool -> IndexTypes.t -> string -> IndexTypes.t

Load a single file into a trie

Sourceval open_module : ?cleanup_path:bool -> IndexTypes.t -> string list -> IndexTypes.t

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.

Sourceval 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)

Sourceval alias : ?cleanup_path:bool -> IndexTypes.t -> string list -> string list -> IndexTypes.t

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.