Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/12/output.json

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