Debian Codegraph @

testsuite/tests/parsing/attributes.compilers.reference

raw
1 [
2 structure_item (attributes.ml[8,120+0]..[8,120+28])
3 Pstr_exception
4 type_exception
5 attribute "foo"
6 []
7 ptyext_constructor =
8 extension_constructor (attributes.ml[8,120+0]..[8,120+20])
9 attribute "foo"
10 []
11 pext_name = "Foo"
12 pext_kind =
13 Pext_decl
14 []
15 None
16 structure_item (attributes.ml[10,150+0]..[10,150+44])
17 Pstr_exception
18 type_exception
19 attribute "foo"
20 []
21 ptyext_constructor =
22 extension_constructor (attributes.ml[10,150+0]..[10,150+36])
23 attribute "foo"
24 []
25 pext_name = "Bar"
26 pext_kind =
27 Pext_decl
28 [
29 core_type (attributes.ml[10,150+18]..[10,150+21])
30 attribute "foo"
31 []
32 Ptyp_constr "int" (attributes.ml[10,150+18]..[10,150+21])
33 []
34 ]
35 None
36 structure_item (attributes.ml[12,196+0]..[12,196+8])
37 Pstr_attribute "foo"
38 []
39 structure_item (attributes.ml[14,206+0]..[15,245+9])
40 Pstr_value Nonrec
41 [
42 <def>
43 attribute "foo"
44 []
45 pattern (attributes.ml[14,206+4]..[14,206+13])
46 attribute "foo"
47 []
48 Ppat_var "x" (attributes.ml[14,206+5]..[14,206+6])
49 core_type (attributes.ml[14,206+16]..[14,206+20])
50 attribute "foo"
51 []
52 Ptyp_constr "unit" (attributes.ml[14,206+16]..[14,206+20])
53 []
54 expression (attributes.ml[14,206+30]..[14,206+32])
55 attribute "foo"
56 []
57 Pexp_construct "()" (attributes.ml[14,206+30]..[14,206+32])
58 None
59 ]
60 structure_item (attributes.ml[17,256+0]..[19,293+7])
61 Pstr_type Rec
62 [
63 type_declaration "t" (attributes.ml[17,256+5]..[17,256+6]) (attributes.ml[17,256+0]..[19,293+7])
64 attribute "foo"
65 []
66 ptype_params =
67 []
68 ptype_cstrs =
69 []
70 ptype_kind =
71 Ptype_variant
72 [
73 (attributes.ml[18,265+2]..[18,265+27])
74 "Foo" (attributes.ml[18,265+4]..[18,265+7])
75 attribute "foo"
76 []
77 [
78 core_type (attributes.ml[18,265+12]..[18,265+13])
79 attribute "foo"
80 []
81 Ptyp_constr "t" (attributes.ml[18,265+12]..[18,265+13])
82 []
83 ]
84 None
85 ]
86 ptype_private = Public
87 ptype_manifest =
88 None
89 ]
90 structure_item (attributes.ml[21,302+0]..[21,302+8])
91 Pstr_attribute "foo"
92 []
93 structure_item (attributes.ml[24,313+0]..[33,420+7])
94 Pstr_module
95 "M" (attributes.ml[24,313+7]..[24,313+8])
96 attribute "foo"
97 []
98 module_expr (attributes.ml[24,313+11]..[32,410+3])
99 attribute "foo"
100 []
101 Pmod_structure
102 [
103 structure_item (attributes.ml[25,331+2]..[29,386+11])
104 Pstr_type Rec
105 [
106 type_declaration "t" (attributes.ml[25,331+7]..[25,331+8]) (attributes.ml[25,331+2]..[29,386+11])
107 attribute "foo"
108 []
109 attribute "foo"
110 []
111 ptype_params =
112 []
113 ptype_cstrs =
114 []
115 ptype_kind =
116 Ptype_record
117 [
118 (attributes.ml[26,344+4]..[26,344+25])
119 attribute "foo"
120 []
121 Immutable
122 "l" (attributes.ml[26,344+4]..[26,344+5]) core_type (attributes.ml[26,344+9]..[26,344+10])
123 attribute "foo"
124 []
125 Ptyp_constr "t" (attributes.ml[26,344+9]..[26,344+10])
126 []
127 ]
128 ptype_private = Public
129 ptype_manifest =
130 None
131 ]
132 structure_item (attributes.ml[31,399+2]..[31,399+10])
133 Pstr_attribute "foo"
134 []
135 ]
136 structure_item (attributes.ml[35,429+0]..[45,601+7])
137 Pstr_modtype "S" (attributes.ml[35,429+12]..[35,429+13])
138 attribute "foo"
139 []
140 module_type (attributes.ml[35,429+16]..[44,591+3])
141 attribute "foo"
142 []
143 Pmty_signature
144 [
145 signature_item (attributes.ml[37,450+2]..[37,450+46])
146 Psig_exception
147 type_exception
148 attribute "foo"
149 []
150 ptyext_constructor =
151 extension_constructor (attributes.ml[37,450+2]..[37,450+38])
152 attribute "foo"
153 []
154 pext_name = "Bar"
155 pext_kind =
156 Pext_decl
157 [
158 core_type (attributes.ml[37,450+20]..[37,450+23])
159 attribute "foo"
160 []
161 Ptyp_constr "int" (attributes.ml[37,450+20]..[37,450+23])
162 []
163 ]
164 None
165 signature_item (attributes.ml[39,498+2]..[40,566+11])
166 Psig_include
167 module_type (attributes.ml[39,498+10]..[39,498+61])
168 attribute "foo"
169 []
170 Pmty_with
171 module_type (attributes.ml[39,498+11]..[39,498+35])
172 attribute "foo"
173 []
174 Pmty_typeof
175 module_expr (attributes.ml[39,498+27]..[39,498+28])
176 attribute "foo"
177 []
178 Pmod_ident "M" (attributes.ml[39,498+27]..[39,498+28])
179 [
180 Pwith_typesubst "t" (attributes.ml[39,498+53]..[39,498+54])
181 type_declaration "t" (attributes.ml[39,498+53]..[39,498+54]) (attributes.ml[39,498+48]..[39,498+61])
182 ptype_params =
183 []
184 ptype_cstrs =
185 []
186 ptype_kind =
187 Ptype_abstract
188 ptype_private = Public
189 ptype_manifest =
190 Some
191 core_type (attributes.ml[39,498+58]..[39,498+61])
192 Ptyp_constr "M.t" (attributes.ml[39,498+58]..[39,498+61])
193 []
194 ]
195 attribute "foo"
196 []
197 signature_item (attributes.ml[42,579+2]..[42,579+10])
198 Psig_attribute "foo"
199 []
200 ]
201 structure_item (attributes.ml[47,610+0]..[47,610+8])
202 Pstr_attribute "foo"
203 []
204 structure_item (attributes.ml[49,620+0]..[49,620+30])
205 Pstr_modtype "T" (attributes.ml[49,620+12]..[49,620+13])
206 module_type (attributes.ml[49,620+16]..[49,620+30])
207 Pmty_signature
208 [
209 signature_item (attributes.ml[49,620+20]..[49,620+26])
210 Psig_type Rec
211 [
212 type_declaration "t" (attributes.ml[49,620+25]..[49,620+26]) (attributes.ml[49,620+20]..[49,620+26])
213 ptype_params =
214 []
215 ptype_cstrs =
216 []
217 ptype_kind =
218 Ptype_abstract
219 ptype_private = Public
220 ptype_manifest =
221 None
222 ]
223 ]
224 structure_item (attributes.ml[51,652+0]..[51,652+27])
225 Pstr_module
226 "_" (attributes.ml[51,652+7]..[51,652+8])
227 module_expr (attributes.ml[51,652+11]..[51,652+27])
228 Pmod_constraint
229 module_expr (attributes.ml[51,652+12]..[51,652+15])
230 Pmod_ident "Int" (attributes.ml[51,652+12]..[51,652+15])
231 module_type (attributes.ml[51,652+18]..[51,652+19])
232 attribute "foo"
233 []
234 Pmty_ident "T" (attributes.ml[51,652+18]..[51,652+19])
235 structure_item (attributes.ml[53,681+0]..[53,681+45])
236 Pstr_module
237 "_" (attributes.ml[53,681+7]..[53,681+8])
238 module_expr (attributes.ml[53,681+11]..[53,681+45])
239 Pmod_constraint
240 module_expr (attributes.ml[53,681+12]..[53,681+15])
241 Pmod_ident "Int" (attributes.ml[53,681+12]..[53,681+15])
242 module_type (attributes.ml[53,681+18]..[53,681+37])
243 attribute "foo"
244 []
245 Pmty_with
246 module_type (attributes.ml[53,681+18]..[53,681+19])
247 Pmty_ident "T" (attributes.ml[53,681+18]..[53,681+19])
248 [
249 Pwith_type "t" (attributes.ml[53,681+30]..[53,681+31])
250 type_declaration "t" (attributes.ml[53,681+30]..[53,681+31]) (attributes.ml[53,681+25]..[53,681+37])
251 ptype_params =
252 []
253 ptype_cstrs =
254 []
255 ptype_kind =
256 Ptype_abstract
257 ptype_private = Public
258 ptype_manifest =
259 Some
260 core_type (attributes.ml[53,681+34]..[53,681+37])
261 Ptyp_constr "int" (attributes.ml[53,681+34]..[53,681+37])
262 []
263 ]
264 structure_item (attributes.ml[55,728+0]..[55,728+31])
265 Pstr_value Nonrec
266 [
267 <def>
268 pattern (attributes.ml[55,728+4]..[55,728+5])
269 Ppat_any
270 expression (attributes.ml[55,728+8]..[55,728+31])
271 Pexp_pack
272 module_expr (attributes.ml[55,728+16]..[55,728+19])
273 Pmod_ident "Int" (attributes.ml[55,728+16]..[55,728+19])
274 Some
275 package_type "T" (attributes.ml[55,728+22]..[55,728+23])
276 []
277 attribute "foo"
278 []
279 ]
280 structure_item (attributes.ml[57,761+0]..[57,761+49])
281 Pstr_value Nonrec
282 [
283 <def>
284 pattern (attributes.ml[57,761+4]..[57,761+5])
285 Ppat_any
286 expression (attributes.ml[57,761+8]..[57,761+49])
287 Pexp_pack
288 module_expr (attributes.ml[57,761+16]..[57,761+19])
289 Pmod_ident "Int" (attributes.ml[57,761+16]..[57,761+19])
290 Some
291 package_type "T" (attributes.ml[57,761+22]..[57,761+23])
292 [
293 with type "t" (attributes.ml[57,761+34]..[57,761+35])
294 core_type (attributes.ml[57,761+38]..[57,761+41])
295 Ptyp_constr "int" (attributes.ml[57,761+38]..[57,761+41])
296 []
297 ]
298 attribute "foo"
299 []
300 ]
301 structure_item (attributes.ml[59,812+0]..[60,869+26])
302 Pstr_value Nonrec
303 [
304 <def>
305 pattern (attributes.ml[59,812+4]..[59,812+5])
306 Ppat_var "f" (attributes.ml[59,812+4]..[59,812+5])
307 expression (attributes.ml[59,812+6]..[60,869+26]) ghost
308 Pexp_function
309 [
310 Pparam_val (attributes.ml[59,812+6]..[59,812+16])
311 Nolabel
312 None
313 pattern (attributes.ml[59,812+6]..[59,812+16])
314 attribute "foo"
315 []
316 Ppat_var "x" (attributes.ml[59,812+7]..[59,812+8])
317 ]
318 Some
319 Pconstraint
320 core_type (attributes.ml[59,812+19]..[59,812+31])
321 attribute "foo"
322 []
323 Ptyp_arrow
324 Nolabel
325 core_type (attributes.ml[59,812+19]..[59,812+23])
326 Ptyp_constr "unit" (attributes.ml[59,812+19]..[59,812+23])
327 []
328 core_type (attributes.ml[59,812+27]..[59,812+31])
329 Ptyp_constr "unit" (attributes.ml[59,812+27]..[59,812+31])
330 []
331 Pfunction_cases (attributes.ml[59,812+41]..[60,869+26])
332 attribute "foo"
333 []
334 [
335 <case>
336 pattern (attributes.ml[60,869+4]..[60,869+14])
337 attribute "foo"
338 []
339 Ppat_construct "()" (attributes.ml[60,869+5]..[60,869+7])
340 None
341 expression (attributes.ml[60,869+18]..[60,869+20])
342 attribute "foo"
343 []
344 Pexp_construct "()" (attributes.ml[60,869+18]..[60,869+20])
345 None
346 ]
347 ]
348 ]
349