Debian Codegraph @

packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0258/output.json

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