1Attr_helper(3)                     OCamldoc                     Attr_helper(3)
2
3
4

NAME

6       Attr_helper - Helpers for attributes
7

Module

9       Module   Attr_helper
10

Documentation

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