Debian Codegraph @

packages/babel-parser/test/fixtures/es2018/object-rest-spread/comma-after-rest/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
4 "errors": [
5 "SyntaxError: Unexpected trailing comma after rest element. (1:6)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":1,"end":13,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":13,"index":13}},
19 "operator": "=",
20 "left": {
21 "type": "ObjectPattern",
22 "start":1,"end":8,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":8,"index":8}},
23 "properties": [
24 {
25 "type": "RestElement",
26 "start":2,"end":6,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":6,"index":6}},
27 "argument": {
28 "type": "Identifier",
29 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6},"identifierName":"a"},
30 "name": "a"
31 }
32 }
33 ],
34 "extra": {
35 "trailingComma": 6
36 }
37 },
38 "right": {
39 "type": "ObjectExpression",
40 "start":11,"end":13,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":13,"index":13}},
41 "properties": []
42 },
43 "extra": {
44 "parenthesized": true,
45 "parenStart": 0
46 }
47 }
48 }
49 ],
50 "directives": []
51 }
52 }