Debian Codegraph @

packages/babel-parser/test/fixtures/es2021/for-async-of/forbidden-arrow-function/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: Invalid left-hand side in for-of statement. (1:5)"
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": "ForOfStatement",
15 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
16 "await": false,
17 "left": {
18 "type": "ArrowFunctionExpression",
19 "start":5,"end":19,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":19,"index":19}},
20 "id": null,
21 "generator": false,
22 "async": true,
23 "params": [
24 {
25 "type": "Identifier",
26 "start":11,"end":13,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":13,"index":13},"identifierName":"of"},
27 "name": "of"
28 }
29 ],
30 "body": {
31 "type": "BlockStatement",
32 "start":17,"end":19,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":19,"index":19}},
33 "body": [],
34 "directives": []
35 }
36 },
37 "right": {
38 "type": "Identifier",
39 "start":23,"end":24,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":24,"index":24},"identifierName":"x"},
40 "name": "x"
41 },
42 "body": {
43 "type": "EmptyStatement",
44 "start":25,"end":26,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":26,"index":26}}
45 }
46 }
47 ],
48 "directives": []
49 }
50 }