Debian Codegraph @

packages/babel-parser/test/fixtures/es2018/async-generators/for-await-async-of-arrow/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":57}},
4 "errors": [
5 "SyntaxError: Invalid left-hand side in for-of statement. (2:13)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":57}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":57,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":57}},
16 "id": {
17 "type": "Identifier",
18 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"f"},
19 "name": "f"
20 },
21 "generator": false,
22 "async": true,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":19,"end":57,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":3,"column":1,"index":57}},
27 "body": [
28 {
29 "type": "ForOfStatement",
30 "start":23,"end":55,"loc":{"start":{"line":2,"column":2,"index":23},"end":{"line":2,"column":34,"index":55}},
31 "await": true,
32 "left": {
33 "type": "ArrowFunctionExpression",
34 "start":34,"end":48,"loc":{"start":{"line":2,"column":13,"index":34},"end":{"line":2,"column":27,"index":48}},
35 "id": null,
36 "generator": false,
37 "async": true,
38 "params": [
39 {
40 "type": "Identifier",
41 "start":40,"end":42,"loc":{"start":{"line":2,"column":19,"index":40},"end":{"line":2,"column":21,"index":42},"identifierName":"of"},
42 "name": "of"
43 }
44 ],
45 "body": {
46 "type": "BlockStatement",
47 "start":46,"end":48,"loc":{"start":{"line":2,"column":25,"index":46},"end":{"line":2,"column":27,"index":48}},
48 "body": [],
49 "directives": []
50 }
51 },
52 "right": {
53 "type": "Identifier",
54 "start":52,"end":53,"loc":{"start":{"line":2,"column":31,"index":52},"end":{"line":2,"column":32,"index":53},"identifierName":"x"},
55 "name": "x"
56 },
57 "body": {
58 "type": "EmptyStatement",
59 "start":54,"end":55,"loc":{"start":{"line":2,"column":33,"index":54},"end":{"line":2,"column":34,"index":55}}
60 }
61 }
62 ],
63 "directives": []
64 }
65 }
66 ],
67 "directives": []
68 }
69 }