.TH "Attr_helper" 3o source: 2017-09-14 OCamldoc "OCaml library" .SH NAME Attr_helper \- Helpers for attributes .SH Module Module Attr_helper .SH Documentation .sp Module .BI "Attr_helper" : .B sig end .sp Helpers for attributes .sp .sp .sp .I type error = | Multiple_attributes .B of .B string | No_payload_expected .B of .B string .sp .sp .I val get_no_payload_attribute : .B string list -> Parsetree.attributes -> string Asttypes.loc option .sp The .B string list argument of the following functions is a list of alternative names for the attribute we are looking for\&. For instance: .sp .B .B ["foo"; "ocaml\&.foo"] .B .sp .I val has_no_payload_attribute : .B string list -> Parsetree.attributes -> bool .sp .sp .I exception Error .B of .B Location.t * error .sp .sp .I val report_error : .B Format.formatter -> error -> unit .sp .sp