Module Ppxlib.Longident

Overrides the Longident module of OCaml

type t = Astlib.Longident.t =
  1. | Lident of string
  2. | Ldot of t * string
  3. | Lapply of t * t
val compare : t -> t -> int
val sexp_of_t : t -> Ppxlib__.Import.Sexp.t
val flatten_exn : t -> string list
val last_exn : t -> string
val parse : string -> t

Parses the given string as a longident, properly handling infix operators which may contain '.'. Note that it does not parse Lapply _ longidents and will raise Invalid_argument _ if passed values such as "A(B)".

val name : t -> string
module Map : Stdlib.Map.S with type key = t
module Set : Stdlib.Set.S with type elt = t