1Attr_helper(3) OCaml library Attr_helper(3)
2
3
4
6 Attr_helper - Helpers for attributes
7
9 Module Attr_helper
10
12 Module Attr_helper
13 : sig end
14
15
16 Helpers for attributes
17
18 Warning: this module is unstable and part of Compiler_libs .
19
20
21
22
23
24 type error =
25 | Multiple_attributes of string
26 | No_payload_expected of string
27
28
29
30
31
32 val get_no_payload_attribute : string list -> Parsetree.attributes ->
33 string Asttypes.loc option
34
35 The string list argument of the following functions is a list of alter‐
36 native names for the attribute we are looking for. For instance:
37
38
39 ["foo"; "ocaml.foo"]
40
41
42
43
44 val has_no_payload_attribute : string list -> Parsetree.attributes ->
45 bool
46
47
48
49
50 exception Error of Location.t * error
51
52
53
54
55
56 val report_error : Format.formatter -> error -> unit
57
58
59
60
61
62
63OCamldoc 2023-01-23 Attr_helper(3)