val string_of_bool : bool -> string
Merlin
type t = {
server : bool;
bin_path : string;
dot_merlin : string;
context : Core.Buffer.t;
}
val create :
?server:bool ->
?bin_path:string ->
?dot_merlin:string ->
unit ->
t
val add_context : t -> string -> unit
Top-level merlin replies
type merlin_reply_body = {
klass : string;
value : string;
notifications : string list;
}
Detection of identifiers
type ident_position = {
id_line : int;
id_col : int;
}
Completion
type kind =
| CMPL_VALUE
| CMPL_VARIANT
| CMPL_CONSTR
| CMPL_LABEL
| CMPL_MODULE
| CMPL_SIG
| CMPL_TYPE
| CMPL_METHOD
| CMPL_METHOD_CALL
| CMPL_EXN
| CMPL_CLASS
type candidate = {
cmpl_name : string;
cmpl_kind : kind;
cmpl_type : string;
cmpl_doc : string;
}
type reply = {
cmpl_candidates : candidate list;
cmpl_start : int;
cmpl_end : int;
}
val rfind_prefix_start : string -> int -> int
val find_cmpl_end : string -> int -> int