jon.recoil.org

Module Ppxlib.LongidentSource

Overrides the Longident module of OCaml

Sourcetype t = Astlib.Longident.t =
  1. | Lident of string
  2. | Ldot of Ppxlib.Longident.t * string
  3. | Lapply of Ppxlib.Longident.t * Ppxlib.Longident.t
Sourceval flatten_exn : Ppxlib.Longident.t -> string list
Sourceval last_exn : Ppxlib.Longident.t -> string
Sourceval parse : string -> Ppxlib.Longident.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)".

Sourceval name : Ppxlib.Longident.t -> string