Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
4 "errors": [
5 "SyntaxError: 'await' is not allowed in async function parameters. (2:13)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "FunctionDeclaration",
15 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":1,"index":52}},
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":52,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":3,"column":1,"index":52}},
27 "body": [
28 {
29 "type": "ExpressionStatement",
30 "start":24,"end":50,"loc":{"start":{"line":2,"column":2,"index":24},"end":{"line":2,"column":28,"index":50}},
31 "expression": {
32 "type": "ArrowFunctionExpression",
33 "start":24,"end":49,"loc":{"start":{"line":2,"column":2,"index":24},"end":{"line":2,"column":27,"index":49}},
34 "id": null,
35 "generator": false,
36 "async": true,
37 "params": [
38 {
39 "type": "AssignmentPattern",
40 "start":31,"end":42,"loc":{"start":{"line":2,"column":9,"index":31},"end":{"line":2,"column":20,"index":42}},
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": "AwaitExpression",
48 "start":35,"end":42,"loc":{"start":{"line":2,"column":13,"index":35},"end":{"line":2,"column":20,"index":42}},
49 "argument": {
50 "type": "NumericLiteral",
51 "start":41,"end":42,"loc":{"start":{"line":2,"column":19,"index":41},"end":{"line":2,"column":20,"index":42}},
52 "extra": {
53 "rawValue": 2,
54 "raw": "2"
55 },
56 "value": 2
57 }
58 }
59 }
60 ],
61 "body": {
62 "type": "BlockStatement",
63 "start":47,"end":49,"loc":{"start":{"line":2,"column":25,"index":47},"end":{"line":2,"column":27,"index":49}},
64 "body": [],
65 "directives": []
66 }
67 }
68 }
69 ],
70 "directives": []
71 }
72 }
73 ],
74 "directives": []
75 }
76 }