Debian Codegraph @

tests/fixtures/ecma-version/8/not-strict/async-await-inside-parens.result.js

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