Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/await-async-function-expression-name/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
4 "errors": [
5 "SyntaxError: Can not use 'await' as identifier inside an async function. (1:16)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":28,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":28,"index":28}},
16 "expression": {
17 "type": "FunctionExpression",
18 "start":1,"end":26,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":26,"index":26}},
19 "id": {
20 "type": "Identifier",
21 "start":16,"end":21,"loc":{"start":{"line":1,"column":16,"index":16},"end":{"line":1,"column":21,"index":21},"identifierName":"await"},
22 "name": "await"
23 },
24 "generator": false,
25 "async": true,
26 "params": [],
27 "body": {
28 "type": "BlockStatement",
29 "start":24,"end":26,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":26,"index":26}},
30 "body": [],
31 "directives": []
32 },
33 "extra": {
34 "parenthesized": true,
35 "parenStart": 0
36 }
37 }
38 }
39 ],
40 "directives": []
41 }
42 }