Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-object/output.json

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