Debian Codegraph @

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

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