Debian Codegraph @

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