Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-arrow-expression-disallowed/output.json

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
4 "errors": [
5 "SyntaxError: 'await' is only allowed within async functions and at the top levels of modules. (1:8)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
16 "expression": {
17 "type": "ArrowFunctionExpression",
18 "start":0,"end":17,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":17,"index":17}},
19 "id": null,
20 "generator": false,
21 "async": false,
22 "params": [],
23 "body": {
24 "type": "BlockStatement",
25 "start":6,"end":17,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":17,"index":17}},
26 "body": [
27 {
28 "type": "ExpressionStatement",
29 "start":8,"end":15,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":15,"index":15}},
30 "expression": {
31 "type": "AwaitExpression",
32 "start":8,"end":15,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":15,"index":15}},
33 "argument": {
34 "type": "Identifier",
35 "start":14,"end":15,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":15,"index":15},"identifierName":"x"},
36 "name": "x"
37 }
38 }
39 }
40 ],
41 "directives": []
42 }
43 }
44 }
45 ],
46 "directives": []
47 }
48 }