Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":17,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":17,"index":17}},
17 "id": {
18 "type": "ObjectPattern",
19 "start":4,"end":13,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":13,"index":13}},
20 "properties": [
21 {
22 "type": "ObjectProperty",
23 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6}},
24 "key": {
25 "type": "Identifier",
26 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"x"},
27 "name": "x"
28 },
29 "computed": false,
30 "method": false,
31 "shorthand": true,
32 "value": {
33 "type": "Identifier",
34 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"x"},
35 "name": "x"
36 },
37 "extra": {
38 "shorthand": true
39 }
40 },
41 {
42 "type": "RestElement",
43 "start":8,"end":12,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":12,"index":12}},
44 "argument": {
45 "type": "Identifier",
46 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12},"identifierName":"y"},
47 "name": "y"
48 }
49 }
50 ]
51 },
52 "init": {
53 "type": "Identifier",
54 "start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17},"identifierName":"z"},
55 "name": "z"
56 }
57 }
58 ],
59 "kind": "let"
60 }
61 ],
62 "directives": []
63 }
64 }