merlin-lib.index_format
Merlin_index_format.Index_format
merlin-lib.analysis
merlin-lib.commands
merlin-lib.config
merlin-lib.dot_protocol
merlin-lib.extend
merlin-lib.kernel
merlin-lib.ocaml_compression
merlin-lib.ocaml_merlin_specific
merlin-lib.ocaml_parsing
merlin-lib.ocaml_preprocess
merlin-lib.ocaml_typing
merlin-lib.ocaml_utils
merlin-lib.os_ipc
merlin-lib.query_commands
merlin-lib.query_protocol
merlin-lib.sherlodoc
merlin-lib.utils
exception Not_an_index of string
val ext : string
val magic_number : string
module Lid : sig ... end
module Lid_set : Granular_set.S with type elt = Lid.t
module Stats : Stdlib.Map.S with type key = Stdlib.String.t
module Uid_set = Ocaml_typing.Shape.Uid.Set
module Uid_map : Granular_map.S with type key = Ocaml_typing.Shape.Uid.t
module Union_find : sig ... end
type stat = {
mtime : float;
size : int;
source_digest : string option;
}
type index = {
defs : Lid_set.t Uid_map.t;
approximated : Lid_set.t Uid_map.t;
cu_shape : (string, Ocaml_typing.Shape.t) Stdlib.Hashtbl.t;
stats : stat Stats.t;
root_directory : string option;
related_uids : Union_find.t Uid_map.t;
val pp : Stdlib.Format.formatter -> index -> unit
val add : Lid_set.t Uid_map.t -> Ocaml_typing.Shape.Uid.t -> Lid_set.t -> Lid_set.t Uid_map.t
add tbl uid locs adds a binding of uid to the locations locs. If this key is already present the locations are merged.
add tbl uid locs
uid
locs
type file_content =
| Cmt of Ocaml_typing.Cmt_format.cmt_infos
| Index of index
| Unknown
val write : file:string -> index -> unit
val read : file:string -> file_content
val read_exn : file:string -> index