Debian Codegraph @

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

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