Debian Codegraph @

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