1Ast_helper.Pat(3)                OCaml library               Ast_helper.Pat(3)
2
3
4

NAME

6       Ast_helper.Pat - Patterns
7

Module

9       Module   Ast_helper.Pat
10

Documentation

12       Module Pat
13        : sig end
14
15
16       Patterns
17
18
19
20
21
22
23       val  mk  :  ?loc:Ast_helper.loc  ->  ?attrs:Ast_helper.attrs  -> Parse‐
24       tree.pattern_desc -> Parsetree.pattern
25
26
27
28
29       val attr : Parsetree.pattern -> Parsetree.attribute  ->  Parsetree.pat‐
30       tern
31
32
33
34
35       val  any  :  ?loc:Ast_helper.loc  -> ?attrs:Ast_helper.attrs -> unit ->
36       Parsetree.pattern
37
38
39
40
41       val   var   :   ?loc:Ast_helper.loc   ->   ?attrs:Ast_helper.attrs   ->
42       Ast_helper.str -> Parsetree.pattern
43
44
45
46
47       val  alias  :  ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
48       tree.pattern -> Ast_helper.str -> Parsetree.pattern
49
50
51
52
53       val constant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
54       tree.constant -> Parsetree.pattern
55
56
57
58
59       val interval : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
60       tree.constant -> Parsetree.constant -> Parsetree.pattern
61
62
63
64
65       val tuple : ?loc:Ast_helper.loc ->  ?attrs:Ast_helper.attrs  ->  Parse‐
66       tree.pattern list -> Parsetree.pattern
67
68
69
70
71       val  construct  :  ?loc:Ast_helper.loc  ->  ?attrs:Ast_helper.attrs  ->
72       Ast_helper.lid -> (Ast_helper.str list * Parsetree.pattern)  option  ->
73       Parsetree.pattern
74
75
76
77
78       val  variant  :  ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast‐
79       types.label -> Parsetree.pattern option -> Parsetree.pattern
80
81
82
83
84       val  record  :  ?loc:Ast_helper.loc   ->   ?attrs:Ast_helper.attrs   ->
85       (Ast_helper.lid  *  Parsetree.pattern)  list -> Asttypes.closed_flag ->
86       Parsetree.pattern
87
88
89
90
91       val array : ?loc:Ast_helper.loc ->  ?attrs:Ast_helper.attrs  ->  Parse‐
92       tree.pattern list -> Parsetree.pattern
93
94
95
96
97       val  or_  :  ?loc:Ast_helper.loc  ->  ?attrs:Ast_helper.attrs -> Parse‐
98       tree.pattern -> Parsetree.pattern -> Parsetree.pattern
99
100
101
102
103       val constraint_ :  ?loc:Ast_helper.loc  ->  ?attrs:Ast_helper.attrs  ->
104       Parsetree.pattern -> Parsetree.core_type -> Parsetree.pattern
105
106
107
108
109       val   type_   :   ?loc:Ast_helper.loc   ->  ?attrs:Ast_helper.attrs  ->
110       Ast_helper.lid -> Parsetree.pattern
111
112
113
114
115       val lazy_ : ?loc:Ast_helper.loc ->  ?attrs:Ast_helper.attrs  ->  Parse‐
116       tree.pattern -> Parsetree.pattern
117
118
119
120
121       val   unpack   :   ?loc:Ast_helper.loc  ->  ?attrs:Ast_helper.attrs  ->
122       Ast_helper.str_opt -> Parsetree.pattern
123
124
125
126
127       val  open_  :   ?loc:Ast_helper.loc   ->   ?attrs:Ast_helper.attrs   ->
128       Ast_helper.lid -> Parsetree.pattern -> Parsetree.pattern
129
130
131
132
133       val  exception_  :  ?loc:Ast_helper.loc  ->  ?attrs:Ast_helper.attrs ->
134       Parsetree.pattern -> Parsetree.pattern
135
136
137
138
139       val  extension  :  ?loc:Ast_helper.loc  ->  ?attrs:Ast_helper.attrs  ->
140       Parsetree.extension -> Parsetree.pattern
141
142
143
144
145
146
147OCamldoc                          2023-07-20                 Ast_helper.Pat(3)
Impressum