Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":19,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":19,"index":19}},
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":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7}},
24 "key": {
25 "type": "Identifier",
26 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"x"},
27 "name": "x"
28 },
29 "computed": false,
30 "method": false,
31 "shorthand": true,
32 "value": {
33 "type": "Identifier",
34 "start":6,"end":7,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":7,"index":7},"identifierName":"x"},
35 "name": "x"
36 },
37 "extra": {
38 "shorthand": true
39 }
40 },
41 {
42 "type": "ObjectProperty",
43 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10}},
44 "key": {
45 "type": "Identifier",
46 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"y"},
47 "name": "y"
48 },
49 "computed": false,
50 "method": false,
51 "shorthand": true,
52 "value": {
53 "type": "Identifier",
54 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"y"},
55 "name": "y"
56 },
57 "extra": {
58 "shorthand": true
59 }
60 }
61 ],
62 "extra": {
63 "trailingComma": 10
64 }
65 },
66 "init": {
67 "type": "Identifier",
68 "start":16,"end":19,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":19,"index":19},"identifierName":"obj"},
69 "name": "obj"
70 }
71 }
72 ],
73 "kind": "let"
74 }
75 ],
76 "directives": []
77 }
78 }