Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/array-rest-spread/invalid-location/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
4 "errors": [
5 "SyntaxError: Unexpected trailing comma after rest element. (1:1)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
16 "expression": {
17 "type": "AssignmentExpression",
18 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
19 "operator": "=",
20 "left": {
21 "type": "ArrayPattern",
22 "start":0,"end":9,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":9,"index":9}},
23 "elements": [
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": "Identifier",
35 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"b"},
36 "name": "b"
37 }
38 ]
39 },
40 "right": {
41 "type": "Identifier",
42 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"c"},
43 "name": "c"
44 }
45 }
46 }
47 ],
48 "directives": []
49 }
50 }