merlin-lib.kernel
Merlin_kernel.Mreader
merlin-lib.analysis
merlin-lib.commands
merlin-lib.config
merlin-lib.dot_protocol
merlin-lib.extend
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
type parsetree = [
| `Interface of Ocaml_parsing.Parsetree.signature
| `Implementation of Ocaml_parsing.Parsetree.structure
]
type comment = string * Ocaml_parsing.Location.t
type result = {
lexer_keywords : string list;
lexer_errors : exn list;
parser_errors : exn list;
comments : comment list;
parsetree : parsetree;
no_labels_for_completion : bool;
}
type pretty_parsetree = Merlin_extend.Extend_protocol.Reader.pretty_parsetree
type outcometree = Merlin_extend.Extend_protocol.Reader.outcometree
val with_ambient_reader : Mconfig.t -> Msource.t -> (unit -> 'a) -> 'a
val parse : ?for_completion:Msource.position -> Mconfig.t -> (Msource.t * parsetree option) -> result
val print_pretty : Mconfig.t -> Msource.t -> pretty_parsetree -> string
val print_outcome : Mconfig.t -> Msource.t -> outcometree -> string
val print_batch_outcome : Mconfig.t -> Msource.t -> outcometree list -> string list
val reconstruct_identifier : Mconfig.t -> Msource.t -> Lexing.position -> string Ocaml_parsing.Location.loc list