Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/rest-parameter/arrow-rest-parameter-array/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": "ArrayPattern",
30 "start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10}},
31 "elements": [
32 {
33 "type": "Identifier",
34 "start":8,"end":9,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":9,"index":9},"identifierName":"b"},
35 "name": "b"
36 }
37 ]
38 }
39 }
40 ],
41 "body": {
42 "type": "Identifier",
43 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"c"},
44 "name": "c"
45 }
46 }
47 }
48 ],
49 "directives": []
50 }
51 }