Debian Codegraph @

tests/fixtures/ecma-version/6/modules/export-named-as-specifiers.result.js

raw
1 export default {
2 "type": "Program",
3 "start": 0,
4 "end": 65,
5 "loc": {
6 "start": {
7 "line": 1,
8 "column": 0
9 },
10 "end": {
11 "line": 3,
12 "column": 29
13 }
14 },
15 "range": [
16 0,
17 65
18 ],
19 "body": [
20 {
21 "type": "VariableDeclaration",
22 "start": 0,
23 "end": 35,
24 "loc": {
25 "start": {
26 "line": 1,
27 "column": 0
28 },
29 "end": {
30 "line": 2,
31 "column": 16
32 }
33 },
34 "range": [
35 0,
36 35
37 ],
38 "declarations": [
39 {
40 "type": "VariableDeclarator",
41 "start": 6,
42 "end": 17,
43 "loc": {
44 "start": {
45 "line": 1,
46 "column": 6
47 },
48 "end": {
49 "line": 1,
50 "column": 17
51 }
52 },
53 "range": [
54 6,
55 17
56 ],
57 "id": {
58 "type": "Identifier",
59 "start": 6,
60 "end": 9,
61 "loc": {
62 "start": {
63 "line": 1,
64 "column": 6
65 },
66 "end": {
67 "line": 1,
68 "column": 9
69 }
70 },
71 "range": [
72 6,
73 9
74 ],
75 "name": "foo"
76 },
77 "init": {
78 "type": "Literal",
79 "start": 12,
80 "end": 17,
81 "loc": {
82 "start": {
83 "line": 1,
84 "column": 12
85 },
86 "end": {
87 "line": 1,
88 "column": 17
89 }
90 },
91 "range": [
92 12,
93 17
94 ],
95 "value": "foo",
96 "raw": "\"foo\""
97 }
98 },
99 {
100 "type": "VariableDeclarator",
101 "start": 23,
102 "end": 34,
103 "loc": {
104 "start": {
105 "line": 2,
106 "column": 4
107 },
108 "end": {
109 "line": 2,
110 "column": 15
111 }
112 },
113 "range": [
114 23,
115 34
116 ],
117 "id": {
118 "type": "Identifier",
119 "start": 23,
120 "end": 26,
121 "loc": {
122 "start": {
123 "line": 2,
124 "column": 4
125 },
126 "end": {
127 "line": 2,
128 "column": 7
129 }
130 },
131 "range": [
132 23,
133 26
134 ],
135 "name": "bar"
136 },
137 "init": {
138 "type": "Literal",
139 "start": 29,
140 "end": 34,
141 "loc": {
142 "start": {
143 "line": 2,
144 "column": 10
145 },
146 "end": {
147 "line": 2,
148 "column": 15
149 }
150 },
151 "range": [
152 29,
153 34
154 ],
155 "value": "bar",
156 "raw": "\"bar\""
157 }
158 }
159 ],
160 "kind": "const"
161 },
162 {
163 "type": "ExportNamedDeclaration",
164 "start": 36,
165 "end": 65,
166 "loc": {
167 "start": {
168 "line": 3,
169 "column": 0
170 },
171 "end": {
172 "line": 3,
173 "column": 29
174 }
175 },
176 "range": [
177 36,
178 65
179 ],
180 "declaration": null,
181 "specifiers": [
182 {
183 "type": "ExportSpecifier",
184 "start": 44,
185 "end": 58,
186 "loc": {
187 "start": {
188 "line": 3,
189 "column": 8
190 },
191 "end": {
192 "line": 3,
193 "column": 22
194 }
195 },
196 "range": [
197 44,
198 58
199 ],
200 "local": {
201 "type": "Identifier",
202 "start": 44,
203 "end": 47,
204 "loc": {
205 "start": {
206 "line": 3,
207 "column": 8
208 },
209 "end": {
210 "line": 3,
211 "column": 11
212 }
213 },
214 "range": [
215 44,
216 47
217 ],
218 "name": "foo"
219 },
220 "exported": {
221 "type": "Identifier",
222 "start": 51,
223 "end": 58,
224 "loc": {
225 "start": {
226 "line": 3,
227 "column": 15
228 },
229 "end": {
230 "line": 3,
231 "column": 22
232 }
233 },
234 "range": [
235 51,
236 58
237 ],
238 "name": "default"
239 }
240 },
241 {
242 "type": "ExportSpecifier",
243 "start": 60,
244 "end": 63,
245 "loc": {
246 "start": {
247 "line": 3,
248 "column": 24
249 },
250 "end": {
251 "line": 3,
252 "column": 27
253 }
254 },
255 "range": [
256 60,
257 63
258 ],
259 "local": {
260 "type": "Identifier",
261 "start": 60,
262 "end": 63,
263 "loc": {
264 "start": {
265 "line": 3,
266 "column": 24
267 },
268 "end": {
269 "line": 3,
270 "column": 27
271 }
272 },
273 "range": [
274 60,
275 63
276 ],
277 "name": "bar"
278 },
279 "exported": {
280 "type": "Identifier",
281 "start": 60,
282 "end": 63,
283 "loc": {
284 "start": {
285 "line": 3,
286 "column": 24
287 },
288 "end": {
289 "line": 3,
290 "column": 27
291 }
292 },
293 "range": [
294 60,
295 63
296 ],
297 "name": "bar"
298 }
299 }
300 ],
301 "source": null
302 }
303 ],
304 "sourceType": "module",
305 "tokens": [
306 {
307 "type": "Keyword",
308 "value": "const",
309 "start": 0,
310 "end": 5,
311 "loc": {
312 "start": {
313 "line": 1,
314 "column": 0
315 },
316 "end": {
317 "line": 1,
318 "column": 5
319 }
320 },
321 "range": [
322 0,
323 5
324 ]
325 },
326 {
327 "type": "Identifier",
328 "value": "foo",
329 "start": 6,
330 "end": 9,
331 "loc": {
332 "start": {
333 "line": 1,
334 "column": 6
335 },
336 "end": {
337 "line": 1,
338 "column": 9
339 }
340 },
341 "range": [
342 6,
343 9
344 ]
345 },
346 {
347 "type": "Punctuator",
348 "value": "=",
349 "start": 10,
350 "end": 11,
351 "loc": {
352 "start": {
353 "line": 1,
354 "column": 10
355 },
356 "end": {
357 "line": 1,
358 "column": 11
359 }
360 },
361 "range": [
362 10,
363 11
364 ]
365 },
366 {
367 "type": "String",
368 "value": "\"foo\"",
369 "start": 12,
370 "end": 17,
371 "loc": {
372 "start": {
373 "line": 1,
374 "column": 12
375 },
376 "end": {
377 "line": 1,
378 "column": 17
379 }
380 },
381 "range": [
382 12,
383 17
384 ]
385 },
386 {
387 "type": "Punctuator",
388 "value": ",",
389 "start": 17,
390 "end": 18,
391 "loc": {
392 "start": {
393 "line": 1,
394 "column": 17
395 },
396 "end": {
397 "line": 1,
398 "column": 18
399 }
400 },
401 "range": [
402 17,
403 18
404 ]
405 },
406 {
407 "type": "Identifier",
408 "value": "bar",
409 "start": 23,
410 "end": 26,
411 "loc": {
412 "start": {
413 "line": 2,
414 "column": 4
415 },
416 "end": {
417 "line": 2,
418 "column": 7
419 }
420 },
421 "range": [
422 23,
423 26
424 ]
425 },
426 {
427 "type": "Punctuator",
428 "value": "=",
429 "start": 27,
430 "end": 28,
431 "loc": {
432 "start": {
433 "line": 2,
434 "column": 8
435 },
436 "end": {
437 "line": 2,
438 "column": 9
439 }
440 },
441 "range": [
442 27,
443 28
444 ]
445 },
446 {
447 "type": "String",
448 "value": "\"bar\"",
449 "start": 29,
450 "end": 34,
451 "loc": {
452 "start": {
453 "line": 2,
454 "column": 10
455 },
456 "end": {
457 "line": 2,
458 "column": 15
459 }
460 },
461 "range": [
462 29,
463 34
464 ]
465 },
466 {
467 "type": "Punctuator",
468 "value": ";",
469 "start": 34,
470 "end": 35,
471 "loc": {
472 "start": {
473 "line": 2,
474 "column": 15
475 },
476 "end": {
477 "line": 2,
478 "column": 16
479 }
480 },
481 "range": [
482 34,
483 35
484 ]
485 },
486 {
487 "type": "Keyword",
488 "value": "export",
489 "start": 36,
490 "end": 42,
491 "loc": {
492 "start": {
493 "line": 3,
494 "column": 0
495 },
496 "end": {
497 "line": 3,
498 "column": 6
499 }
500 },
501 "range": [
502 36,
503 42
504 ]
505 },
506 {
507 "type": "Punctuator",
508 "value": "{",
509 "start": 43,
510 "end": 44,
511 "loc": {
512 "start": {
513 "line": 3,
514 "column": 7
515 },
516 "end": {
517 "line": 3,
518 "column": 8
519 }
520 },
521 "range": [
522 43,
523 44
524 ]
525 },
526 {
527 "type": "Identifier",
528 "value": "foo",
529 "start": 44,
530 "end": 47,
531 "loc": {
532 "start": {
533 "line": 3,
534 "column": 8
535 },
536 "end": {
537 "line": 3,
538 "column": 11
539 }
540 },
541 "range": [
542 44,
543 47
544 ]
545 },
546 {
547 "type": "Identifier",
548 "value": "as",
549 "start": 48,
550 "end": 50,
551 "loc": {
552 "start": {
553 "line": 3,
554 "column": 12
555 },
556 "end": {
557 "line": 3,
558 "column": 14
559 }
560 },
561 "range": [
562 48,
563 50
564 ]
565 },
566 {
567 "type": "Keyword",
568 "value": "default",
569 "start": 51,
570 "end": 58,
571 "loc": {
572 "start": {
573 "line": 3,
574 "column": 15
575 },
576 "end": {
577 "line": 3,
578 "column": 22
579 }
580 },
581 "range": [
582 51,
583 58
584 ]
585 },
586 {
587 "type": "Punctuator",
588 "value": ",",
589 "start": 58,
590 "end": 59,
591 "loc": {
592 "start": {
593 "line": 3,
594 "column": 22
595 },
596 "end": {
597 "line": 3,
598 "column": 23
599 }
600 },
601 "range": [
602 58,
603 59
604 ]
605 },
606 {
607 "type": "Identifier",
608 "value": "bar",
609 "start": 60,
610 "end": 63,
611 "loc": {
612 "start": {
613 "line": 3,
614 "column": 24
615 },
616 "end": {
617 "line": 3,
618 "column": 27
619 }
620 },
621 "range": [
622 60,
623 63
624 ]
625 },
626 {
627 "type": "Punctuator",
628 "value": "}",
629 "start": 63,
630 "end": 64,
631 "loc": {
632 "start": {
633 "line": 3,
634 "column": 27
635 },
636 "end": {
637 "line": 3,
638 "column": 28
639 }
640 },
641 "range": [
642 63,
643 64
644 ]
645 },
646 {
647 "type": "Punctuator",
648 "value": ";",
649 "start": 64,
650 "end": 65,
651 "loc": {
652 "start": {
653 "line": 3,
654 "column": 28
655 },
656 "end": {
657 "line": 3,
658 "column": 29
659 }
660 },
661 "range": [
662 64,
663 65
664 ]
665 }
666 ]
667 };