Debian Codegraph @

tests/fixtures/ecma-version/8/modules/async-await-expression-class-method.result.js

raw
1 export default {
2 "type": "Program",
3 "loc": {
4 "start": {
5 "line": 1,
6 "column": 0
7 },
8 "end": {
9 "line": 1,
10 "column": 35
11 }
12 },
13 "range": [
14 0,
15 35
16 ],
17 "body": [
18 {
19 "type": "ExpressionStatement",
20 "loc": {
21 "start": {
22 "line": 1,
23 "column": 0
24 },
25 "end": {
26 "line": 1,
27 "column": 35
28 }
29 },
30 "range": [
31 0,
32 35
33 ],
34 "expression": {
35 "type": "ClassExpression",
36 "loc": {
37 "start": {
38 "line": 1,
39 "column": 1
40 },
41 "end": {
42 "line": 1,
43 "column": 33
44 }
45 },
46 "range": [
47 1,
48 33
49 ],
50 "id": null,
51 "superClass": null,
52 "body": {
53 "type": "ClassBody",
54 "loc": {
55 "start": {
56 "line": 1,
57 "column": 7
58 },
59 "end": {
60 "line": 1,
61 "column": 33
62 }
63 },
64 "range": [
65 7,
66 33
67 ],
68 "body": [
69 {
70 "type": "MethodDefinition",
71 "loc": {
72 "start": {
73 "line": 1,
74 "column": 8
75 },
76 "end": {
77 "line": 1,
78 "column": 32
79 }
80 },
81 "range": [
82 8,
83 32
84 ],
85 "computed": false,
86 "key": {
87 "type": "Identifier",
88 "loc": {
89 "start": {
90 "line": 1,
91 "column": 14
92 },
93 "end": {
94 "line": 1,
95 "column": 17
96 }
97 },
98 "range": [
99 14,
100 17
101 ],
102 "name": "foo"
103 },
104 "static": false,
105 "kind": "method",
106 "value": {
107 "type": "FunctionExpression",
108 "loc": {
109 "start": {
110 "line": 1,
111 "column": 17
112 },
113 "end": {
114 "line": 1,
115 "column": 32
116 }
117 },
118 "range": [
119 17,
120 32
121 ],
122 "id": null,
123 "generator": false,
124 "expression": false,
125 "async": true,
126 "params": [
127 {
128 "type": "Identifier",
129 "loc": {
130 "start": {
131 "line": 1,
132 "column": 18
133 },
134 "end": {
135 "line": 1,
136 "column": 19
137 }
138 },
139 "range": [
140 18,
141 19
142 ],
143 "name": "a"
144 }
145 ],
146 "body": {
147 "type": "BlockStatement",
148 "loc": {
149 "start": {
150 "line": 1,
151 "column": 21
152 },
153 "end": {
154 "line": 1,
155 "column": 32
156 }
157 },
158 "range": [
159 21,
160 32
161 ],
162 "body": [
163 {
164 "type": "ExpressionStatement",
165 "loc": {
166 "start": {
167 "line": 1,
168 "column": 23
169 },
170 "end": {
171 "line": 1,
172 "column": 30
173 }
174 },
175 "range": [
176 23,
177 30
178 ],
179 "expression": {
180 "type": "AwaitExpression",
181 "loc": {
182 "start": {
183 "line": 1,
184 "column": 23
185 },
186 "end": {
187 "line": 1,
188 "column": 30
189 }
190 },
191 "range": [
192 23,
193 30
194 ],
195 "argument": {
196 "type": "Identifier",
197 "loc": {
198 "start": {
199 "line": 1,
200 "column": 29
201 },
202 "end": {
203 "line": 1,
204 "column": 30
205 }
206 },
207 "range": [
208 29,
209 30
210 ],
211 "name": "a"
212 }
213 }
214 }
215 ]
216 }
217 }
218 }
219 ]
220 }
221 }
222 }
223 ],
224 "sourceType": "module",
225 "tokens": [
226 {
227 "type": "Punctuator",
228 "value": "(",
229 "loc": {
230 "start": {
231 "line": 1,
232 "column": 0
233 },
234 "end": {
235 "line": 1,
236 "column": 1
237 }
238 },
239 "range": [
240 0,
241 1
242 ]
243 },
244 {
245 "type": "Keyword",
246 "value": "class",
247 "loc": {
248 "start": {
249 "line": 1,
250 "column": 1
251 },
252 "end": {
253 "line": 1,
254 "column": 6
255 }
256 },
257 "range": [
258 1,
259 6
260 ]
261 },
262 {
263 "type": "Punctuator",
264 "value": "{",
265 "loc": {
266 "start": {
267 "line": 1,
268 "column": 7
269 },
270 "end": {
271 "line": 1,
272 "column": 8
273 }
274 },
275 "range": [
276 7,
277 8
278 ]
279 },
280 {
281 "type": "Identifier",
282 "value": "async",
283 "loc": {
284 "start": {
285 "line": 1,
286 "column": 8
287 },
288 "end": {
289 "line": 1,
290 "column": 13
291 }
292 },
293 "range": [
294 8,
295 13
296 ]
297 },
298 {
299 "type": "Identifier",
300 "value": "foo",
301 "loc": {
302 "start": {
303 "line": 1,
304 "column": 14
305 },
306 "end": {
307 "line": 1,
308 "column": 17
309 }
310 },
311 "range": [
312 14,
313 17
314 ]
315 },
316 {
317 "type": "Punctuator",
318 "value": "(",
319 "loc": {
320 "start": {
321 "line": 1,
322 "column": 17
323 },
324 "end": {
325 "line": 1,
326 "column": 18
327 }
328 },
329 "range": [
330 17,
331 18
332 ]
333 },
334 {
335 "type": "Identifier",
336 "value": "a",
337 "loc": {
338 "start": {
339 "line": 1,
340 "column": 18
341 },
342 "end": {
343 "line": 1,
344 "column": 19
345 }
346 },
347 "range": [
348 18,
349 19
350 ]
351 },
352 {
353 "type": "Punctuator",
354 "value": ")",
355 "loc": {
356 "start": {
357 "line": 1,
358 "column": 19
359 },
360 "end": {
361 "line": 1,
362 "column": 20
363 }
364 },
365 "range": [
366 19,
367 20
368 ]
369 },
370 {
371 "type": "Punctuator",
372 "value": "{",
373 "loc": {
374 "start": {
375 "line": 1,
376 "column": 21
377 },
378 "end": {
379 "line": 1,
380 "column": 22
381 }
382 },
383 "range": [
384 21,
385 22
386 ]
387 },
388 {
389 "type": "Identifier",
390 "value": "await",
391 "loc": {
392 "start": {
393 "line": 1,
394 "column": 23
395 },
396 "end": {
397 "line": 1,
398 "column": 28
399 }
400 },
401 "range": [
402 23,
403 28
404 ]
405 },
406 {
407 "type": "Identifier",
408 "value": "a",
409 "loc": {
410 "start": {
411 "line": 1,
412 "column": 29
413 },
414 "end": {
415 "line": 1,
416 "column": 30
417 }
418 },
419 "range": [
420 29,
421 30
422 ]
423 },
424 {
425 "type": "Punctuator",
426 "value": "}",
427 "loc": {
428 "start": {
429 "line": 1,
430 "column": 31
431 },
432 "end": {
433 "line": 1,
434 "column": 32
435 }
436 },
437 "range": [
438 31,
439 32
440 ]
441 },
442 {
443 "type": "Punctuator",
444 "value": "}",
445 "loc": {
446 "start": {
447 "line": 1,
448 "column": 32
449 },
450 "end": {
451 "line": 1,
452 "column": 33
453 }
454 },
455 "range": [
456 32,
457 33
458 ]
459 },
460 {
461 "type": "Punctuator",
462 "value": ")",
463 "loc": {
464 "start": {
465 "line": 1,
466 "column": 33
467 },
468 "end": {
469 "line": 1,
470 "column": 34
471 }
472 },
473 "range": [
474 33,
475 34
476 ]
477 },
478 {
479 "type": "Punctuator",
480 "value": ";",
481 "loc": {
482 "start": {
483 "line": 1,
484 "column": 34
485 },
486 "end": {
487 "line": 1,
488 "column": 35
489 }
490 },
491 "range": [
492 34,
493 35
494 ]
495 }
496 ]
497 }