package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

dune-project
 Dependency

Authors

Maintainers

Sources

merlin-5.8-505.tbz
sha256=5642cde8486a84aad98fa5c590b70e8dcc6074d7fbdb3b9b8c46b2c5b42f653b
sha512=1d7a7751157e393d3ae248ef5ae24a6b4e81430666c61cc51a3d0ec35804523317036f3d7a3c7f18a7554337f4e5f5989fb677865b261ece3fd2b317903570ba

doc/merlin-lib.extend/Merlin_extend/Extend_protocol/Reader/index.html

Module Extend_protocol.ReaderSource

Sourcetype buffer = {
  1. path : string;
    (*

    Path of the buffer in the editor. The path is absolute if it is backed by a file, although it might not yet have been saved in the editor. The path is relative if it is a temporary buffer.

    *)
  2. flags : string list;
    (*

    Any flag that has been passed to the reader in .merlin file

    *)
  3. text : string;
    (*

    Content of the buffer

    *)
}

Description of a buffer managed by Merlin

Sourcetype parsetree =
  1. | Structure of Ocaml_parsing.Parsetree.structure
    (*

    An implementation, usually coming from a .ml file

    *)
  2. | Signature of Ocaml_parsing.Parsetree.signature
    (*

    An interface, usually coming from a .mli file

    *)

ASTs exchanged with Merlin

Printing in error messages or completion items

Sourcetype pretty_parsetree =
  1. | Pretty_toplevel_phrase of Ocaml_parsing.Parsetree.toplevel_phrase
  2. | Pretty_expression of Ocaml_parsing.Parsetree.expression
  3. | Pretty_core_type of Ocaml_parsing.Parsetree.core_type
  4. | Pretty_pattern of Ocaml_parsing.Parsetree.pattern
  5. | Pretty_signature of Ocaml_parsing.Parsetree.signature
  6. | Pretty_structure of Ocaml_parsing.Parsetree.structure
  7. | Pretty_case_list of Ocaml_parsing.Parsetree.case list

Printing in case destruction

Sourcetype complete_info = {
  1. complete_labels : bool;
    (*

    True if it is appropriate to suggest labels for this completion.

    *)
}

Additional information useful for guiding completion

Sourcemodule type V0 = sig ... end
Sourcetype request =
  1. | Req_load of buffer
  2. | Req_parse
  3. | Req_parse_line of Lexing.position * string
  4. | Req_parse_for_completion of Lexing.position
  5. | Req_get_ident_at of Lexing.position
  6. | Req_print_outcome of outcometree list
  7. | Req_pretty_print of pretty_parsetree
Sourcetype response =
  1. | Res_loaded
  2. | Res_parse of parsetree
  3. | Res_parse_for_completion of complete_info * parsetree
  4. | Res_get_ident_at of string Ocaml_parsing.Location.loc list
  5. | Res_print_outcome of string list
  6. | Res_pretty_print of string