Debian Codegraph @

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

raw symbols SCIP
1 {
2 "type": "File",
3 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":63}},
4 "errors": [
5 "SyntaxError: 'await' is not allowed in async function parameters. (2:23)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":63}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":63,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":63}},
16 "id": {
17 "type": "Identifier",
18 "start":15,"end":17,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":17,"index":17},"identifierName":"fn"},
19 "name": "fn"
20 },
21 "generator": false,
22 "async": true,
23 "params": [],
24 "body": {
25 "type": "BlockStatement",
26 "start":20,"end":63,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":3,"column":1,"index":63}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":24,"end":61,"loc":{"start":{"line":2,"column":2,"index":24},"end":{"line":2,"column":39,"index":61}},
31 "expression": {
32 "type": "ArrowFunctionExpression",
33 "start":24,"end":60,"loc":{"start":{"line":2,"column":2,"index":24},"end":{"line":2,"column":38,"index":60}},
34 "id": null,
35 "generator": false,
36 "async": true,
37 "params": [
38 {
39 "type": "AssignmentPattern",
40 "start":31,"end":53,"loc":{"start":{"line":2,"column":9,"index":31},"end":{"line":2,"column":31,"index":53}},
41 "left": {
42 "type": "Identifier",
43 "start":31,"end":32,"loc":{"start":{"line":2,"column":9,"index":31},"end":{"line":2,"column":10,"index":32},"identifierName":"x"},
44 "name": "x"
45 },
46 "right": {
47 "type": "CallExpression",
48 "start":35,"end":53,"loc":{"start":{"line":2,"column":13,"index":35},"end":{"line":2,"column":31,"index":53}},
49 "callee": {
50 "type": "Identifier",
51 "start":35,"end":40,"loc":{"start":{"line":2,"column":13,"index":35},"end":{"line":2,"column":18,"index":40},"identifierName":"async"},
52 "name": "async"
53 },
54 "arguments": [
55 {
56 "type": "AssignmentExpression",
57 "start":41,"end":52,"loc":{"start":{"line":2,"column":19,"index":41},"end":{"line":2,"column":30,"index":52}},
58 "operator": "=",
59 "left": {
60 "type": "Identifier",
61 "start":41,"end":42,"loc":{"start":{"line":2,"column":19,"index":41},"end":{"line":2,"column":20,"index":42},"identifierName":"y"},
62 "name": "y"
63 },
64 "right": {
65 "type": "AwaitExpression",
66 "start":45,"end":52,"loc":{"start":{"line":2,"column":23,"index":45},"end":{"line":2,"column":30,"index":52}},
67 "argument": {
68 "type": "NumericLiteral",
69 "start":51,"end":52,"loc":{"start":{"line":2,"column":29,"index":51},"end":{"line":2,"column":30,"index":52}},
70 "extra": {
71 "rawValue": 2,
72 "raw": "2"
73 },
74 "value": 2
75 }
76 }
77 }
78 ]
79 }
80 }
81 ],
82 "body": {
83 "type": "BlockStatement",
84 "start":58,"end":60,"loc":{"start":{"line":2,"column":36,"index":58},"end":{"line":2,"column":38,"index":60}},
85 "body": [],
86 "directives": []
87 }
88 }
89 }
90 ],
91 "directives": []
92 }
93 }
94 ],
95 "directives": []
96 }
97 }