1Ast_helper.Pat(3) OCaml library Ast_helper.Pat(3)
2
3
4
6 Ast_helper.Pat - Patterns
7
9 Module Ast_helper.Pat
10
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 -> Parsetree.pattern option -> Parsetree.pattern
73
74
75
76
77 val variant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast‐
78 types.label -> Parsetree.pattern option -> Parsetree.pattern
79
80
81
82
83 val record : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
84 (Ast_helper.lid * Parsetree.pattern) list -> Asttypes.closed_flag ->
85 Parsetree.pattern
86
87
88
89
90 val array : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
91 tree.pattern list -> Parsetree.pattern
92
93
94
95
96 val or_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
97 tree.pattern -> Parsetree.pattern -> Parsetree.pattern
98
99
100
101
102 val constraint_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
103 Parsetree.pattern -> Parsetree.core_type -> Parsetree.pattern
104
105
106
107
108 val type_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
109 Ast_helper.lid -> Parsetree.pattern
110
111
112
113
114 val lazy_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
115 tree.pattern -> Parsetree.pattern
116
117
118
119
120 val unpack : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
121 Ast_helper.str_opt -> Parsetree.pattern
122
123
124
125
126 val open_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
127 Ast_helper.lid -> Parsetree.pattern -> Parsetree.pattern
128
129
130
131
132 val exception_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
133 Parsetree.pattern -> Parsetree.pattern
134
135
136
137
138 val extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
139 Parsetree.extension -> Parsetree.pattern
140
141
142
143
144
145
146OCamldoc 2020-02-27 Ast_helper.Pat(3)