Debian Codegraph @

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

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