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

NAME

6       Ast_helper - Helpers to produce Parsetree fragments
7

Module

9       Module   Ast_helper
10

Documentation

12       Module Ast_helper
13        : sig end
14
15
16       Helpers to produce Parsetree fragments
17
18       Warning This module is unstable and part of Compiler_libs .
19
20
21
22
23
24       type 'a with_loc = 'a Location.loc
25
26
27
28
29       type loc = Location.t
30
31
32
33
34       type lid = Longident.t with_loc
35
36
37
38
39       type str = string with_loc
40
41
42
43
44       type str_opt = string option with_loc
45
46
47
48
49       type attrs = Parsetree.attribute list
50
51
52
53
54
55
56   Default locations
57       val default_loc : loc ref
58
59       Default value for all optional location arguments.
60
61
62
63       val with_default_loc : loc -> (unit -> 'a) -> 'a
64
65       Set  the  default_loc within the scope of the execution of the provided
66       function.
67
68
69
70
71   Constants
72       module Const : sig end
73
74
75
76
77       module Attr : sig end
78
79
80
81   Attributes
82   Core language
83       module Typ : sig end
84
85
86       Type expressions
87
88
89       module Pat : sig end
90
91
92       Patterns
93
94
95       module Exp : sig end
96
97
98       Expressions
99
100
101       module Val : sig end
102
103
104       Value declarations
105
106
107       module Type : sig end
108
109
110       Type declarations
111
112
113       module Te : sig end
114
115
116       Type extensions
117
118
119
120
121   Module language
122       module Mty : sig end
123
124
125       Module type expressions
126
127
128       module Mod : sig end
129
130
131       Module expressions
132
133
134       module Sig : sig end
135
136
137       Signature items
138
139
140       module Str : sig end
141
142
143       Structure items
144
145
146       module Md : sig end
147
148
149       Module declarations
150
151
152       module Ms : sig end
153
154
155       Module substitutions
156
157
158       module Mtd : sig end
159
160
161       Module type declarations
162
163
164       module Mb : sig end
165
166
167       Module bindings
168
169
170       module Opn : sig end
171
172
173       Opens
174
175
176       module Incl : sig end
177
178
179       Includes
180
181
182       module Vb : sig end
183
184
185       Value bindings
186
187
188
189
190   Class language
191       module Cty : sig end
192
193
194       Class type expressions
195
196
197       module Ctf : sig end
198
199
200       Class type fields
201
202
203       module Cl : sig end
204
205
206       Class expressions
207
208
209       module Cf : sig end
210
211
212       Class fields
213
214
215       module Ci : sig end
216
217
218       Classes
219
220
221       module Csig : sig end
222
223
224       Class signatures
225
226
227       module Cstr : sig end
228
229
230       Class structures
231
232
233       module Rf : sig end
234
235
236       Row fields
237
238
239       module Of : sig end
240
241
242       Object fields
243
244
245
246
247
248OCamldoc                          2021-01-26                     Ast_helper(3)
Impressum