package merlin-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Path : sig ... end
val parenthesize_name : string -> string
val parse_identifier : (Merlin_kernel.Mconfig.t * Merlin_kernel.Msource.t) -> Stdlib.Lexing.position -> string Ocaml_parsing.Location.loc list

parse_identifier attempts to re-parse a longident so that we get the location of each of its components.

val reconstruct_identifier : Merlin_kernel.Mpipeline.t -> Stdlib.Lexing.position -> (string * int) option -> string Ocaml_parsing.Location.loc list

reconstruct_identifier pipeline pos returns growing ranges around pos and the associated identifier.

OCaml

Innovation. Community. Security.