Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
13 "expression": {
14 "type": "CallExpression",
15 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
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": "Identifier",
24 "start":2,"end":3,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":3,"index":3},"identifierName":"a"},
25 "name": "a"
26 },
27 {
28 "type": "ArrowFunctionExpression",
29 "start":5,"end":35,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":35,"index":35}},
30 "id": null,
31 "generator": false,
32 "async": true,
33 "params": [
34 {
35 "type": "Identifier",
36 "start":11,"end":18,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":18,"index":18},"identifierName":"promise"},
37 "name": "promise"
38 }
39 ],
40 "body": {
41 "type": "AwaitExpression",
42 "start":22,"end":35,"loc":{"start":{"line":1,"column":22,"index":22},"end":{"line":1,"column":35,"index":35}},
43 "argument": {
44 "type": "Identifier",
45 "start":28,"end":35,"loc":{"start":{"line":1,"column":28,"index":28},"end":{"line":1,"column":35,"index":35},"identifierName":"promise"},
46 "name": "promise"
47 }
48 }
49 }
50 ]
51 }
52 }
53 ],
54 "directives": []
55 }
56 }