Attr_helper(3o)

Attr_helper3o

Helpers for attributes

Module

Module Attr_helper

Documentation

Module Attr_helper
: sig end

Helpers for attributes

Warning: this module is unstable and part of Compiler_libs .

type error =
| Multiple_attributes of string
| No_payload_expected of string

val get_no_payload_attribute : string -> Parsetree.attributes -> string 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 -> Parsetree.attributes -> bool

exception Error of Location.t * error

val report_error : error Format_doc.format_printer

val report_error_doc : error Format_doc.printer

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From ocaml 5.5.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.