Debian Codegraph @

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