jon.recoil.org

Module Ocaml_parsing.Attr_helper

Helpers for attributes

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

type error =
  1. | Multiple_attributes of string
  2. | No_payload_expected of string
val get_no_payload_attribute : string -> Ocaml_parsing.Parsetree.attributes -> string Ocaml_parsing.Asttypes.loc option

The string argument of the following functions is the name of the attribute we are looking for. If the argument is "foo", these functions will find attributes with the name "foo" or "ocaml.foo"

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