1Ast_helper.Exp(3) OCamldoc Ast_helper.Exp(3)
2
3
4
6 Ast_helper.Exp - Expressions
7
9 Module Ast_helper.Exp
10
12 Module Exp
13 : sig end
14
15
16 Expressions
17
18
19
20
21
22
23 val mk : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
24 tree.expression_desc -> Parsetree.expression
25
26
27
28
29 val attr : Parsetree.expression -> Parsetree.attribute -> Parse‐
30 tree.expression
31
32
33
34
35 val ident : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
36 Ast_helper.lid -> Parsetree.expression
37
38
39
40
41 val constant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
42 tree.constant -> Parsetree.expression
43
44
45
46
47 val let_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast‐
48 types.rec_flag -> Parsetree.value_binding list -> Parsetree.expression
49 -> Parsetree.expression
50
51
52
53
54 val fun_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast‐
55 types.arg_label -> Parsetree.expression option -> Parsetree.pattern ->
56 Parsetree.expression -> Parsetree.expression
57
58
59
60
61 val function_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
62 Parsetree.case list -> Parsetree.expression
63
64
65
66
67 val apply : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
68 tree.expression -> (Asttypes.arg_label * Parsetree.expression) list ->
69 Parsetree.expression
70
71
72
73
74 val match_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
75 tree.expression -> Parsetree.case list -> Parsetree.expression
76
77
78
79
80 val try_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
81 tree.expression -> Parsetree.case list -> Parsetree.expression
82
83
84
85
86 val tuple : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
87 tree.expression list -> Parsetree.expression
88
89
90
91
92 val construct : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
93 Ast_helper.lid -> Parsetree.expression option -> Parsetree.expression
94
95
96
97
98 val variant : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast‐
99 types.label -> Parsetree.expression option -> Parsetree.expression
100
101
102
103
104 val record : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
105 (Ast_helper.lid * Parsetree.expression) list -> Parsetree.expression
106 option -> Parsetree.expression
107
108
109
110
111 val field : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
112 tree.expression -> Ast_helper.lid -> Parsetree.expression
113
114
115
116
117 val setfield : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
118 tree.expression -> Ast_helper.lid -> Parsetree.expression -> Parse‐
119 tree.expression
120
121
122
123
124 val array : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
125 tree.expression list -> Parsetree.expression
126
127
128
129
130 val ifthenelse : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
131 Parsetree.expression -> Parsetree.expression -> Parsetree.expression
132 option -> Parsetree.expression
133
134
135
136
137 val sequence : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
138 tree.expression -> Parsetree.expression -> Parsetree.expression
139
140
141
142
143 val while_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
144 tree.expression -> Parsetree.expression -> Parsetree.expression
145
146
147
148
149 val for_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
150 tree.pattern -> Parsetree.expression -> Parsetree.expression -> Ast‐
151 types.direction_flag -> Parsetree.expression -> Parsetree.expression
152
153
154
155
156 val coerce : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
157 tree.expression -> Parsetree.core_type option -> Parsetree.core_type ->
158 Parsetree.expression
159
160
161
162
163 val constraint_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
164 Parsetree.expression -> Parsetree.core_type -> Parsetree.expression
165
166
167
168
169 val send : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
170 tree.expression -> Ast_helper.str -> Parsetree.expression
171
172
173
174
175 val new_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
176 Ast_helper.lid -> Parsetree.expression
177
178
179
180
181 val setinstvar : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
182 Ast_helper.str -> Parsetree.expression -> Parsetree.expression
183
184
185
186
187 val override : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
188 (Ast_helper.str * Parsetree.expression) list -> Parsetree.expression
189
190
191
192
193 val letmodule : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
194 Ast_helper.str -> Parsetree.module_expr -> Parsetree.expression ->
195 Parsetree.expression
196
197
198
199
200 val letexception : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
201 Parsetree.extension_constructor -> Parsetree.expression -> Parse‐
202 tree.expression
203
204
205
206
207 val assert_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
208 tree.expression -> Parsetree.expression
209
210
211
212
213 val lazy_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
214 tree.expression -> Parsetree.expression
215
216
217
218
219 val poly : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
220 tree.expression -> Parsetree.core_type option -> Parsetree.expression
221
222
223
224
225 val object_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
226 tree.class_structure -> Parsetree.expression
227
228
229
230
231 val newtype : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
232 Ast_helper.str -> Parsetree.expression -> Parsetree.expression
233
234
235
236
237 val pack : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Parse‐
238 tree.module_expr -> Parsetree.expression
239
240
241
242
243 val open_ : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs -> Ast‐
244 types.override_flag -> Ast_helper.lid -> Parsetree.expression -> Parse‐
245 tree.expression
246
247
248
249
250 val extension : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
251 Parsetree.extension -> Parsetree.expression
252
253
254
255
256 val unreachable : ?loc:Ast_helper.loc -> ?attrs:Ast_helper.attrs ->
257 unit -> Parsetree.expression
258
259
260
261
262 val case : Parsetree.pattern -> ?guard:Parsetree.expression -> Parse‐
263 tree.expression -> Parsetree.case
264
265
266
267
268
269
2702018-04-14 source: Ast_helper.Exp(3)