Debian Codegraph @

packages/babel-parser/test/fixtures/es2018/object-rest-spread/6/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":25,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":25,"index":25}},
13 "expression": {
14 "type": "ObjectExpression",
15 "start":1,"end":24,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":24,"index":24}},
16 "properties": [
17 {
18 "type": "ObjectProperty",
19 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3}},
20 "method": false,
21 "key": {
22 "type": "Identifier",
23 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"x"},
24 "name": "x"
25 },
26 "computed": false,
27 "shorthand": true,
28 "value": {
29 "type": "Identifier",
30 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"x"},
31 "name": "x"
32 },
33 "extra": {
34 "shorthand": true
35 }
36 },
37 {
38 "type": "SpreadElement",
39 "start":5,"end":9,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":9,"index":9}},
40 "argument": {
41 "type": "Identifier",
42 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9},"identifierName":"y"},
43 "name": "y"
44 }
45 },
46 {
47 "type": "ObjectProperty",
48 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12}},
49 "method": false,
50 "key": {
51 "type": "Identifier",
52 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"a"},
53 "name": "a"
54 },
55 "computed": false,
56 "shorthand": true,
57 "value": {
58 "type": "Identifier",
59 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"a"},
60 "name": "a"
61 },
62 "extra": {
63 "shorthand": true
64 }
65 },
66 {
67 "type": "SpreadElement",
68 "start":14,"end":18,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":18,"index":18}},
69 "argument": {
70 "type": "Identifier",
71 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18},"identifierName":"b"},
72 "name": "b"
73 }
74 },
75 {
76 "type": "ObjectProperty",
77 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21}},
78 "method": false,
79 "key": {
80 "type": "Identifier",
81 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"c"},
82 "name": "c"
83 },
84 "computed": false,
85 "shorthand": true,
86 "value": {
87 "type": "Identifier",
88 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"c"},
89 "name": "c"
90 },
91 "extra": {
92 "shorthand": true
93 }
94 }
95 ],
96 "extra": {
97 "trailingComma": 21,
98 "parenthesized": true,
99 "parenStart": 0
100 }
101 }
102 }
103 ],
104 "directives": []
105 }
106 }