Debian Codegraph @

packages/babel-parser/test/fixtures/es2015/uncategorised/283/output.json

raw
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: Rest element must be last element. (1:5)",
6 "SyntaxError: Unexpected trailing comma after rest element. (1:1)"
7 ],
8 "program": {
9 "type": "Program",
10 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
11 "sourceType": "script",
12 "interpreter": null,
13 "body": [
14 {
15 "type": "ExpressionStatement",
16 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
17 "expression": {
18 "type": "ArrowFunctionExpression",
19 "start":0,"end":15,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":15,"index":15}},
20 "id": null,
21 "generator": false,
22 "async": false,
23 "params": [
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 "body": {
40 "type": "BlockStatement",
41 "start":13,"end":15,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":15,"index":15}},
42 "body": [],
43 "directives": []
44 }
45 }
46 }
47 ],
48 "directives": []
49 }
50 }