Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/es2015-arrow-function/arrow-with-multiple-rest/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 "errors": [
5 "SyntaxError: Rest element must be last element. (1:5)",
6 "SyntaxError: Unexpected trailing comma after rest element. (1:1)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
17 "expression": {
18 "type": "ArrowFunctionExpression",
19 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
20 "id": null,
21 "generator": false,
22 "async": false,
23 "params": [
24 {
25 "type": "RestElement",
26 "start":1,"end":5,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":5,"index":5}},
27 "argument": {
28 "type": "Identifier",
29 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"a"},
30 "name": "a"
31 }
32 },
33 {
34 "type": "RestElement",
35 "start":7,"end":11,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":11,"index":11}},
36 "argument": {
37 "type": "Identifier",
38 "start":10,"end":11,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":11,"index":11},"identifierName":"b"},
39 "name": "b"
40 }
41 }
42 ],
43 "body": {
44 "type": "NumericLiteral",
45 "start":16,"end":17,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":17,"index":17}},
46 "extra": {
47 "rawValue": 0,
48 "raw": "0"
49 },
50 "value": 0
51 }
52 }
53 }
54 ],
55 "directives": []
56 }
57 }