Debian Codegraph @

packages/babel-parser/test/fixtures/core/uncategorised/396/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
4 "errors": [
5 "SyntaxError: Rest element must be last element. (1:18)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
16 "id": {
17 "type": "Identifier",
18 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"t"},
19 "name": "t"
20 },
21 "generator": false,
22 "async": false,
23 "params": [
24 {
25 "type": "RestElement",
26 "start":11,"end":18,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":18,"index":18}},
27 "argument": {
28 "type": "Identifier",
29 "start":14,"end":18,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":18,"index":18},"identifierName":"rest"},
30 "name": "rest"
31 }
32 },
33 {
34 "type": "Identifier",
35 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21},"identifierName":"b"},
36 "name": "b"
37 }
38 ],
39 "body": {
40 "type": "BlockStatement",
41 "start":23,"end":26,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":26,"index":26}},
42 "body": [],
43 "directives": []
44 }
45 }
46 ],
47 "directives": []
48 }
49 }