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