Debian Codegraph @

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