Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/array-rest-spread/comma-after-spread-for-in/output.json

raw symbols SCIP
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 "errors": [
5 "SyntaxError: Unexpected trailing comma after rest element. (1:10)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ForInStatement",
15 "start":0,"end":20,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":20,"index":20}},
16 "left": {
17 "type": "ArrayPattern",
18 "start":5,"end":12,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":12,"index":12}},
19 "extra": {
20 "trailingComma": 10
21 },
22 "elements": [
23 {
24 "type": "RestElement",
25 "start":6,"end":10,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":10,"index":10}},
26 "argument": {
27 "type": "Identifier",
28 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"a"},
29 "name": "a"
30 }
31 }
32 ]
33 },
34 "right": {
35 "type": "ArrayExpression",
36 "start":16,"end":18,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":18,"index":18}},
37 "elements": []
38 },
39 "body": {
40 "type": "EmptyStatement",
41 "start":19,"end":20,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":20,"index":20}}
42 }
43 }
44 ],
45 "directives": []
46 }
47 }