Debian Codegraph @

packages/babel-parser/test/fixtures/es2017/async-functions/await-binding-inside-arrow-params-inside-async-arrow-params/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 "errors": [
5 "SyntaxError: Can not use 'await' as identifier inside an async function. (1:14)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":36,"index":36}},
16 "expression": {
17 "type": "ArrowFunctionExpression",
18 "start":0,"end":35,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":35,"index":35}},
19 "id": null,
20 "generator": false,
21 "async": true,
22 "params": [
23 {
24 "type": "AssignmentPattern",
25 "start":7,"end":28,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":28,"index":28}},
26 "left": {
27 "type": "Identifier",
28 "start":7,"end":8,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":8,"index":8},"identifierName":"a"},
29 "name": "a"
30 },
31 "right": {
32 "type": "ArrowFunctionExpression",
33 "start":11,"end":28,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":28,"index":28}},
34 "id": null,
35 "generator": false,
36 "async": false,
37 "params": [
38 {
39 "type": "ObjectPattern",
40 "start":12,"end":21,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":21,"index":21}},
41 "properties": [
42 {
43 "type": "ObjectProperty",
44 "start":14,"end":19,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":19,"index":19}},
45 "method": false,
46 "key": {
47 "type": "Identifier",
48 "start":14,"end":19,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":19,"index":19},"identifierName":"await"},
49 "name": "await"
50 },
51 "computed": false,
52 "shorthand": true,
53 "value": {
54 "type": "Identifier",
55 "start":14,"end":19,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":1,"column":19,"index":19},"identifierName":"await"},
56 "name": "await"
57 },
58 "extra": {
59 "shorthand": true
60 }
61 }
62 ]
63 }
64 ],
65 "body": {
66 "type": "BlockStatement",
67 "start":26,"end":28,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":28,"index":28}},
68 "body": [],
69 "directives": []
70 }
71 }
72 }
73 ],
74 "body": {
75 "type": "BlockStatement",
76 "start":33,"end":35,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":35,"index":35}},
77 "body": [],
78 "directives": []
79 }
80 }
81 }
82 ],
83 "directives": []
84 }
85 }