Debian Codegraph @

packages/babel-parser/test/fixtures/es2022/class-static-block/await-binding-in-static-block/input.js

raw symbols SCIP
1 var C;
2 // This file enumerates all the disallowed cases, for allowed cases, see await-binding-*
3 C = class { static { await } };
4
5 C = class { static { (await) } };
6
7 C = class { static { async (await) } };
8
9 C = class { static { async ({ [await]: x}) } };
10
11 async (x = class { static { await } }) => {};
12 // await as label is not allowed
13 C = class { static { await: 0 } };
14
15 C = class { static { class D { [await] } } };
16 // await binding in function declaration is not allowed
17 C = class { static { function await() {} } };
18 // await binding in class declaration is not allowed
19 C = class { static { class await {} } };
20 // await binding in class expression is not allowed
21 C = class { static { (class await {}) } };
22 // await in arrow parameters is not allowed
23 C = class { static { (await) => {} } };
24
25 C = class { static { (x = await) => {} } };
26
27 C = class { static { ({ [await]: x }) => {} } };
28
29 C = class { static { { await } } };