merlin-lib.kernel
Merlin_kernel.Msource
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 t
Merlin representation of a textual source code
It bundles filename and a content, and offers functions for computing positions in the source.
module Digest : sig ... end
Minimal Digest utilities around t
Digest
t
val make : string -> t
Making a content from name and contents.
type position = [
| `Start
| `Offset of int
| `Logical of int * int
| `End
]
val get_offset : t -> [< position ] -> [> `Offset of int ]
val get_logical : t -> [< position ] -> [> `Logical of int * int ]
val get_lexing_pos : t -> filename:string -> [< position ] -> Lexing.position
val substitute : t -> [< position ] -> [< position | `Length of int ] -> string -> t
Updating content
val text : t -> string
Source code of the file
val dump : t -> Merlin_utils.Std.json
val print_position : unit -> [< position ] -> string