Debian Codegraph @

tests/fixtures/ecma-version/9/for-await-of/valid-linebreak-before-await.result.js

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