package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

Dune Dependency

Authors

Maintainers

Sources

merlin-5.3-502.tbz
sha256=2cea46f12397fa6e31ef0c0d4f5e11c1cfd916ee49420694005c95ebb3aa24bc
sha512=e94abb9ae38149245337db033e2c3891c7ec772168e99abf1bda0216a894c0854e7170b56fe88eba83ec98f2ebc0f5c7c723e8db14f59eeb6dd348bec12c6d62

doc/merlin-lib.ocaml_parsing/Ocaml_parsing/Location_aux/index.html

Module Ocaml_parsing.Location_auxSource

Sourcetype t = Location.t = {
  1. loc_start : Lexing.position;
  2. loc_end : Lexing.position;
  3. loc_ghost : bool;
}
Sourceval compare : t -> t -> int

compare l1 l2 compares start positions, if equal compares end positions

Sourceval compare_pos : Lexing.position -> t -> int
Sourceval union : t -> t -> t

Return the smallest location covered by both arguments, ghost if both are ghosts

Sourceval extend : t -> t -> t

Like location_union, but keep loc_ghost'ness of first argument

Sourceval included : into:t -> t -> bool

included ~into:parent child returns true if child is included in parent. Otherwise returns false.

Sourceval overlap_with_range : (Lexing.position * Lexing.position) -> t -> bool

overlap_with_range (pos_start, pos_end) loc returns true if loc overlap with the range defined by pos_start and pos_end.

Sourceval prepare_errors : exn list -> Location.error list

Filter valid errors, log invalid ones

Dump

Sourceval print : unit -> t -> string
Sourceval print_loc : (unit -> 'a -> string) -> unit -> 'a Location.loc -> string
Sourceval is_relaxed_location : string Location.loc -> bool
OCaml

Innovation. Community. Security.

On This Page
  1. Dump