Debian Codegraph @

packages/babel-parser/test/fixtures/es2018/object-rest-spread/expression-rest-not-last-invalid/output.json

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