Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/await-inside-async-call-inside-parameters-of-function-inside-async-function/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":56}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":56}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":56,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":56}},
13 "id": {
14 "type": "Identifier",
15 "start":15,"end":16,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":16,"index":16},"identifierName":"f"},
16 "name": "f"
17 },
18 "generator": false,
19 "async": true,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":19,"end":56,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":3,"column":1,"index":56}},
24 "body": [
25 {
26 "type": "FunctionDeclaration",
27 "start":23,"end":54,"loc":{"start":{"line":2,"column":2,"index":23},"end":{"line":2,"column":33,"index":54}},
28 "id": {
29 "type": "Identifier",
30 "start":32,"end":33,"loc":{"start":{"line":2,"column":11,"index":32},"end":{"line":2,"column":12,"index":33},"identifierName":"g"},
31 "name": "g"
32 },
33 "generator": false,
34 "async": false,
35 "params": [
36 {
37 "type": "AssignmentPattern",
38 "start":34,"end":50,"loc":{"start":{"line":2,"column":13,"index":34},"end":{"line":2,"column":29,"index":50}},
39 "left": {
40 "type": "Identifier",
41 "start":34,"end":35,"loc":{"start":{"line":2,"column":13,"index":34},"end":{"line":2,"column":14,"index":35},"identifierName":"x"},
42 "name": "x"
43 },
44 "right": {
45 "type": "CallExpression",
46 "start":38,"end":50,"loc":{"start":{"line":2,"column":17,"index":38},"end":{"line":2,"column":29,"index":50}},
47 "callee": {
48 "type": "Identifier",
49 "start":38,"end":43,"loc":{"start":{"line":2,"column":17,"index":38},"end":{"line":2,"column":22,"index":43},"identifierName":"async"},
50 "name": "async"
51 },
52 "arguments": [
53 {
54 "type": "Identifier",
55 "start":44,"end":49,"loc":{"start":{"line":2,"column":23,"index":44},"end":{"line":2,"column":28,"index":49},"identifierName":"await"},
56 "name": "await"
57 }
58 ]
59 }
60 }
61 ],
62 "body": {
63 "type": "BlockStatement",
64 "start":52,"end":54,"loc":{"start":{"line":2,"column":31,"index":52},"end":{"line":2,"column":33,"index":54}},
65 "body": [],
66 "directives": []
67 }
68 }
69 ],
70 "directives": []
71 }
72 }
73 ],
74 "directives": []
75 }
76 }