Skip to content

Commit 9d49f72

Browse files
committed
Generate tests
1 parent bac2d2f commit 9d49f72

File tree

204 files changed

+12372
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+12372
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// This file was procedurally generated from the following sources:
2+
// - src/top-level-await/await-expr-array-literal.case
3+
// - src/top-level-await/syntax/block.template
4+
/*---
5+
description: AwaitExpression ArrayLiteral (Valid syntax for top level await in a block.)
6+
esid: prod-AwaitExpression
7+
features: [top-level-await]
8+
flags: [generated, module]
9+
info: |
10+
ModuleItem:
11+
StatementListItem[~Yield, +Await, ~Return]
12+
13+
...
14+
15+
UnaryExpression[Yield, Await]
16+
[+Await]AwaitExpression[?Yield]
17+
18+
AwaitExpression[Yield]:
19+
await UnaryExpression[?Yield, +Await]
20+
21+
...
22+
23+
24+
PrimaryExpression[Yield, Await]:
25+
this
26+
IdentifierReference[?Yield, ?Await]
27+
Literal
28+
ArrayLiteral[?Yield, ?Await]
29+
ObjectLiteral[?Yield, ?Await]
30+
FunctionExpression
31+
ClassExpression[?Yield, ?Await]
32+
GeneratorExpression
33+
AsyncFunctionExpression
34+
AsyncGeneratorExpression
35+
RegularExpressionLiteral
36+
TemplateLiteral[?Yield, ?Await, ~Tagged]
37+
CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
38+
39+
---*/
40+
41+
42+
{
43+
{
44+
{
45+
{
46+
{
47+
{
48+
{
49+
{
50+
{
51+
{
52+
{
53+
{
54+
{
55+
{
56+
{
57+
{
58+
{
59+
await [];
60+
}
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
}
75+
}
76+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// This file was procedurally generated from the following sources:
2+
// - src/top-level-await/await-expr-func-expression.case
3+
// - src/top-level-await/syntax/block.template
4+
/*---
5+
description: AwaitExpression StringLiteral (Valid syntax for top level await in a block.)
6+
esid: prod-AwaitExpression
7+
features: [top-level-await]
8+
flags: [generated, module]
9+
info: |
10+
ModuleItem:
11+
StatementListItem[~Yield, +Await, ~Return]
12+
13+
...
14+
15+
UnaryExpression[Yield, Await]
16+
[+Await]AwaitExpression[?Yield]
17+
18+
AwaitExpression[Yield]:
19+
await UnaryExpression[?Yield, +Await]
20+
21+
...
22+
23+
24+
ExpressionStatement[Yield, Await]:
25+
[lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
26+
Expression[+In, ?Yield, ?Await];
27+
28+
...
29+
30+
PrimaryExpression[Yield, Await]:
31+
this
32+
IdentifierReference[?Yield, ?Await]
33+
Literal
34+
ArrayLiteral[?Yield, ?Await]
35+
ObjectLiteral[?Yield, ?Await]
36+
FunctionExpression
37+
ClassExpression[?Yield, ?Await]
38+
GeneratorExpression
39+
AsyncFunctionExpression
40+
AsyncGeneratorExpression
41+
RegularExpressionLiteral
42+
TemplateLiteral[?Yield, ?Await, ~Tagged]
43+
CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
44+
45+
---*/
46+
47+
48+
{
49+
{
50+
{
51+
{
52+
{
53+
{
54+
{
55+
{
56+
{
57+
{
58+
{
59+
{
60+
{
61+
{
62+
{
63+
{
64+
{
65+
await function() {};
66+
}
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
}
75+
}
76+
}
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// This file was procedurally generated from the following sources:
2+
// - src/top-level-await/await-expr-identifier.case
3+
// - src/top-level-await/syntax/block.template
4+
/*---
5+
description: AwaitExpression IdentifierReference (Valid syntax for top level await in a block.)
6+
esid: prod-AwaitExpression
7+
features: [top-level-await]
8+
flags: [generated, module]
9+
info: |
10+
ModuleItem:
11+
StatementListItem[~Yield, +Await, ~Return]
12+
13+
...
14+
15+
UnaryExpression[Yield, Await]
16+
[+Await]AwaitExpression[?Yield]
17+
18+
AwaitExpression[Yield]:
19+
await UnaryExpression[?Yield, +Await]
20+
21+
...
22+
23+
24+
PrimaryExpression[Yield, Await]:
25+
this
26+
IdentifierReference[?Yield, ?Await]
27+
Literal
28+
ArrayLiteral[?Yield, ?Await]
29+
ObjectLiteral[?Yield, ?Await]
30+
FunctionExpression
31+
ClassExpression[?Yield, ?Await]
32+
GeneratorExpression
33+
AsyncFunctionExpression
34+
AsyncGeneratorExpression
35+
RegularExpressionLiteral
36+
TemplateLiteral[?Yield, ?Await, ~Tagged]
37+
CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
38+
39+
---*/
40+
var foo = 1;
41+
42+
43+
{
44+
{
45+
{
46+
{
47+
{
48+
{
49+
{
50+
{
51+
{
52+
{
53+
{
54+
{
55+
{
56+
{
57+
{
58+
{
59+
{
60+
await foo;
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
}
75+
}
76+
}
77+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// This file was procedurally generated from the following sources:
2+
// - src/top-level-await/await-expr-literal-number.case
3+
// - src/top-level-await/syntax/block.template
4+
/*---
5+
description: AwaitExpression NumberLiteral (Valid syntax for top level await in a block.)
6+
esid: prod-AwaitExpression
7+
features: [top-level-await]
8+
flags: [generated, module]
9+
info: |
10+
ModuleItem:
11+
StatementListItem[~Yield, +Await, ~Return]
12+
13+
...
14+
15+
UnaryExpression[Yield, Await]
16+
[+Await]AwaitExpression[?Yield]
17+
18+
AwaitExpression[Yield]:
19+
await UnaryExpression[?Yield, +Await]
20+
21+
...
22+
23+
24+
PrimaryExpression[Yield, Await]:
25+
this
26+
IdentifierReference[?Yield, ?Await]
27+
Literal
28+
ArrayLiteral[?Yield, ?Await]
29+
ObjectLiteral[?Yield, ?Await]
30+
FunctionExpression
31+
ClassExpression[?Yield, ?Await]
32+
GeneratorExpression
33+
AsyncFunctionExpression
34+
AsyncGeneratorExpression
35+
RegularExpressionLiteral
36+
TemplateLiteral[?Yield, ?Await, ~Tagged]
37+
CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
38+
39+
---*/
40+
41+
42+
{
43+
{
44+
{
45+
{
46+
{
47+
{
48+
{
49+
{
50+
{
51+
{
52+
{
53+
{
54+
{
55+
{
56+
{
57+
{
58+
{
59+
await 1;
60+
}
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
}
75+
}
76+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// This file was procedurally generated from the following sources:
2+
// - src/top-level-await/await-expr-literal-string.case
3+
// - src/top-level-await/syntax/block.template
4+
/*---
5+
description: AwaitExpression StringLiteral (Valid syntax for top level await in a block.)
6+
esid: prod-AwaitExpression
7+
features: [top-level-await]
8+
flags: [generated, module]
9+
info: |
10+
ModuleItem:
11+
StatementListItem[~Yield, +Await, ~Return]
12+
13+
...
14+
15+
UnaryExpression[Yield, Await]
16+
[+Await]AwaitExpression[?Yield]
17+
18+
AwaitExpression[Yield]:
19+
await UnaryExpression[?Yield, +Await]
20+
21+
...
22+
23+
24+
PrimaryExpression[Yield, Await]:
25+
this
26+
IdentifierReference[?Yield, ?Await]
27+
Literal
28+
ArrayLiteral[?Yield, ?Await]
29+
ObjectLiteral[?Yield, ?Await]
30+
FunctionExpression
31+
ClassExpression[?Yield, ?Await]
32+
GeneratorExpression
33+
AsyncFunctionExpression
34+
AsyncGeneratorExpression
35+
RegularExpressionLiteral
36+
TemplateLiteral[?Yield, ?Await, ~Tagged]
37+
CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
38+
39+
---*/
40+
41+
42+
{
43+
{
44+
{
45+
{
46+
{
47+
{
48+
{
49+
{
50+
{
51+
{
52+
{
53+
{
54+
{
55+
{
56+
{
57+
{
58+
{
59+
await '';
60+
}
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)