Module Merlin_kernel.MreaderSource

Sourcetype parsetree = [
  1. | `Interface of Ocaml_parsing.Parsetree.signature
  2. | `Implementation of Ocaml_parsing.Parsetree.structure
]
Sourcetype comment = string * Ocaml_parsing.Location.t
Sourcetype result = {
  1. lexer_keywords : string list;
  2. lexer_errors : exn list;
  3. parser_errors : exn list;
  4. comments : comment list;
  5. parsetree : parsetree;
  6. no_labels_for_completion : bool;
}
Sourceval with_ambient_reader : Mconfig.t -> Msource.t -> (unit -> 'a) -> 'a
Sourceval parse : ?for_completion:Msource.position -> Mconfig.t -> (Msource.t * parsetree option) -> result
Sourceval print_pretty : Mconfig.t -> Msource.t -> pretty_parsetree -> string
Sourceval print_outcome : Mconfig.t -> Msource.t -> outcometree -> string
Sourceval print_batch_outcome : Mconfig.t -> Msource.t -> outcometree list -> string list
Sourceval reconstruct_identifier : Mconfig.t -> Msource.t -> Lexing.position -> string Ocaml_parsing.Location.loc list