Module Ocaml_parsing.Attr_helperSource

Helpers for attributes

Warning: this module is unstable and part of compiler-libs.

Sourcetype error =
  1. | Multiple_attributes of string
  2. | No_payload_expected of string
Sourceval 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"; "ocaml.foo"]
Sourceval has_no_payload_attribute : string list -> Parsetree.attributes -> bool
Sourceexception Error of Location.t * error
Sourceval report_error : Format.formatter -> error -> unit