Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/invalid-for-await-expression-init/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: 'await' is only allowed within async functions and at the top levels of modules. (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": "ForStatement",
15 "start":0,"end":26,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":26,"index":26}},
16 "init": {
17 "type": "AwaitExpression",
18 "start":5,"end":22,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":22,"index":22}},
19 "argument": {
20 "type": "MemberExpression",
21 "start":11,"end":22,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":22,"index":22}},
22 "object": {
23 "type": "Identifier",
24 "start":11,"end":18,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":18,"index":18},"identifierName":"of"},
25 "name": "of"
26 },
27 "computed": true,
28 "property": {
29 "type": "NumericLiteral",
30 "start":20,"end":21,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":21,"index":21}},
31 "extra": {
32 "rawValue": 0,
33 "raw": "0"
34 },
35 "value": 0
36 }
37 }
38 },
39 "test": null,
40 "update": null,
41 "body": {
42 "type": "EmptyStatement",
43 "start":25,"end":26,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":26,"index":26}}
44 }
45 }
46 ],
47 "directives": []
48 }
49 }