Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/arrow-functions/invalid-rest-in-params/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":8,"index":46}},
4 "errors": [
5 "SyntaxError: Rest element must be last element. (3:13)",
6 "SyntaxError: Unexpected trailing comma after rest element. (3:4)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":8,"index":46}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":46,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":8,"index":46}},
17 "expression": {
18 "type": "ArrowFunctionExpression",
19 "start":0,"end":45,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":7,"index":45}},
20 "id": null,
21 "generator": false,
22 "async": false,
23 "params": [
24 {
25 "type": "Identifier",
26 "start":6,"end":11,"loc":{"start":{"line":2,"column":4,"index":6},"end":{"line":2,"column":9,"index":11},"identifierName":"first"},
27 "name": "first"
28 },
29 {
30 "type": "RestElement",
31 "start":17,"end":26,"loc":{"start":{"line":3,"column":4,"index":17},"end":{"line":3,"column":13,"index":26}},
32 "argument": {
33 "type": "Identifier",
34 "start":20,"end":26,"loc":{"start":{"line":3,"column":7,"index":20},"end":{"line":3,"column":13,"index":26},"identifierName":"second"},
35 "name": "second"
36 }
37 },
38 {
39 "type": "Identifier",
40 "start":32,"end":37,"loc":{"start":{"line":4,"column":4,"index":32},"end":{"line":4,"column":9,"index":37},"identifierName":"third"},
41 "name": "third"
42 }
43 ],
44 "body": {
45 "type": "BlockStatement",
46 "start":43,"end":45,"loc":{"start":{"line":5,"column":5,"index":43},"end":{"line":5,"column":7,"index":45}},
47 "body": [],
48 "directives": []
49 }
50 }
51 }
52 ],
53 "directives": []
54 }
55 }