Debian Codegraph @

tests/fixtures/ecma-version/6/objectLiteralShorthandProperties/shorthand-properties.result.js

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