Attr_helper.3o man page

Attr_helper — Helpers for attributes


Module   Attr_helper


Module Attr_helper
: sig end

Helpers for attributes

type error =
| Multiple_attributes of string
| No_payload_expected of string

val get_no_payload_attribute : string list -> Parsetree.attributes -> string Asttypes.loc option

The string list argument of the following functions is a list of alternative names for the attribute we are looking for. For instance:

["foo"; ]

val has_no_payload_attribute : string list -> Parsetree.attributes -> bool

exception Error of Location.t * error

val report_error : Format.formatter -> error -> unit


2018-08-17 OCamldoc OCaml library