Rebuild generated tests

This adds new tests because the tests that previously had name conflicts
are now renamed.
This commit is contained in:
Philip Chimento 2022-11-30 10:53:39 -08:00 committed by Philip Chimento
parent db39fee915
commit e7895c53d2
14 changed files with 545 additions and 198 deletions

View File

@ -0,0 +1,54 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-call-expr-identifier-reference-yield.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorCallExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated, noStrict]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
Decorator[Yield, Await] :
@ DecoratorMemberExpression[?Yield, ?Await]
@ DecoratorParenthesizedExpression[?Yield, ?Await]
@ DecoratorCallExpression[?Yield, ?Await]
...
DecoratorCallExpression[Yield, Await] :
DecoratorMemberExpression[?Yield, ?Await] Arguments[?Yield, ?Await]
DecoratorMemberExpression[Yield, Await] :
IdentifierReference[?Yield, ?Await]
PrivateIdentifier
DecoratorMemberExpression[?Yield, ?Await] . IdentifierName
IdentifierReference[Yield, Await] :
[~Yield] yield
...
---*/
function decorator() {
return () => {};
}
var yield = decorator;
class C {
@yield() method() {}
@yield() static method() {}
@yield() field;
@yield() static field;
}

View File

@ -0,0 +1,85 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-call-expr-identifier-reference.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorCallExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
Decorator[Yield, Await] :
@ DecoratorMemberExpression[?Yield, ?Await]
@ DecoratorParenthesizedExpression[?Yield, ?Await]
@ DecoratorCallExpression[?Yield, ?Await]
...
DecoratorCallExpression[Yield, Await] :
DecoratorMemberExpression[?Yield, ?Await] Arguments[?Yield, ?Await]
DecoratorMemberExpression[Yield, Await] :
IdentifierReference[?Yield, ?Await]
PrivateIdentifier
DecoratorMemberExpression[?Yield, ?Await] . IdentifierName
IdentifierReference[Yield, Await] :
Identifier
[~Yield] yield
[~Await] await
---*/
function decorator() {
return () => {};
}
var $ = decorator;
var _ = decorator;
var \u{6F} = decorator;
var \u2118 = decorator;
var ZW_\u200C_NJ = decorator;
var ZW_\u200D_J = decorator;
var await = decorator;
class C {
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() method() {}
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() static method() {}
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() field;
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() static field;
}

View File

@ -0,0 +1,81 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-member-expr-decorator-member-expr.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorMemberExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
Decorator[Yield, Await] :
@ DecoratorMemberExpression[?Yield, ?Await]
@ DecoratorParenthesizedExpression[?Yield, ?Await]
@ DecoratorCallExpression[?Yield, ?Await]
...
DecoratorMemberExpression[Yield, Await] :
IdentifierReference[?Yield, ?Await]
PrivateIdentifier
DecoratorMemberExpression[?Yield, ?Await] . IdentifierName
---*/
let ns = {
$() {},
_() {},
\u{6F}() {},
\u2118() {},
ZW_\u200C_NJ() {},
ZW_\u200D_J() {},
yield() {},
await() {},
}
class C {
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await method() {}
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await static method() {}
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await field;
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await static field;
}

View File

@ -0,0 +1,43 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-member-expr-identifier-reference-yield.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorMemberExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated, noStrict]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
Decorator[Yield, Await] :
@ DecoratorMemberExpression[?Yield, ?Await]
@ DecoratorParenthesizedExpression[?Yield, ?Await]
@ DecoratorCallExpression[?Yield, ?Await]
...
IdentifierReference[Yield, Await] :
[~Yield] yield
...
---*/
function yield() {}
class C {
@yield method() {}
@yield static method() {}
@yield field;
@yield static field;
}

View File

@ -0,0 +1,74 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-member-expr-identifier-reference.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorMemberExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
Decorator[Yield, Await] :
@ DecoratorMemberExpression[?Yield, ?Await]
@ DecoratorParenthesizedExpression[?Yield, ?Await]
@ DecoratorCallExpression[?Yield, ?Await]
...
IdentifierReference[Yield, Await] :
Identifier
[~Yield] yield
[~Await] await
---*/
function $() {}
function _() {}
function \u{6F}() {}
function \u2118() {}
function ZW_\u200C_NJ() {}
function ZW_\u200D_J() {}
function await() {}
class C {
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await method() {}
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await static method() {}
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await field;
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await static field;
}

View File

@ -0,0 +1,61 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-parenthesized-expr-identifier-reference-yield.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorParenthesizedExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated, noStrict]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
Decorator[Yield, Await] :
@ DecoratorMemberExpression[?Yield, ?Await]
@ DecoratorParenthesizedExpression[?Yield, ?Await]
@ DecoratorCallExpression[?Yield, ?Await]
...
DecoratorParenthesizedExpression[Yield, Await] :
( Expression[+In, ?Yield, ?Await] )
PrimaryExpression[Yield, Await] :
this
IdentifierReference[?Yield, ?Await]
Literal
ArrayLiteral[?Yield, ?Await]
ObjectLiteral[?Yield, ?Await]
FunctionExpression
ClassExpression[?Yield, ?Await]
GeneratorExpression
AsyncFunctionExpression
AsyncGeneratorExpression
RegularExpressionLiteral
TemplateLiteral[?Yield, ?Await, ~Tagged]
CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
IdentifierReference[Yield, Await] :
[~Yield] yield
...
---*/
function yield() {}
class C {
@(yield) method() {}
@(yield) static method() {}
@(yield) field;
@(yield) static field;
}

View File

@ -0,0 +1,87 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-parenthesized-expr-identifier-reference.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorParenthesizedExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
Decorator[Yield, Await] :
@ DecoratorMemberExpression[?Yield, ?Await]
@ DecoratorParenthesizedExpression[?Yield, ?Await]
@ DecoratorCallExpression[?Yield, ?Await]
...
DecoratorParenthesizedExpression[Yield, Await] :
( Expression[+In, ?Yield, ?Await] )
PrimaryExpression[Yield, Await] :
this
IdentifierReference[?Yield, ?Await]
Literal
ArrayLiteral[?Yield, ?Await]
ObjectLiteral[?Yield, ?Await]
FunctionExpression
ClassExpression[?Yield, ?Await]
GeneratorExpression
AsyncFunctionExpression
AsyncGeneratorExpression
RegularExpressionLiteral
TemplateLiteral[?Yield, ?Await, ~Tagged]
CoverParenthesizedExpressionAndArrowParameterList[?Yield, ?Await]
---*/
function $() {}
function _() {}
function \u{6F}() {}
function \u2118() {}
function ZW_\u200C_NJ() {}
function ZW_\u200D_J() {}
function await() {}
class C {
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) method() {}
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) static method() {}
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) field;
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) static field;
}

View File

@ -1,19 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-call-expr-identifier-reference-yield.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
// - src/decorator/syntax/valid/cls-decl-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorCallExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated, noStrict]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
ClassDeclaration[Yield, Await, Default] :
DecoratorList[?Yield, ?Await]opt class BindingIdentifier[?Yield, ?Await] ClassTail[?Yield, ?Await]
[+Default] DecoratorList[?Yield, ?Await]opt class ClassTail[?Yield, ?Await]
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
@ -46,9 +42,4 @@ var yield = decorator;
class C {
@yield() method() {}
@yield() static method() {}
@yield() field;
@yield() static field;
}
@yield() class C {}

View File

@ -1,19 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-call-expr-identifier-reference.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
// - src/decorator/syntax/valid/cls-decl-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorCallExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
ClassDeclaration[Yield, Await, Default] :
DecoratorList[?Yield, ?Await]opt class BindingIdentifier[?Yield, ?Await] ClassTail[?Yield, ?Await]
[+Default] DecoratorList[?Yield, ?Await]opt class ClassTail[?Yield, ?Await]
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
@ -53,33 +49,10 @@ var await = decorator;
class C {
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() method() {}
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() static method() {}
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() field;
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() static field;
}
@$()
@_()
@\u{6F}()
@\u2118()
@ZW_\u200C_NJ()
@ZW_\u200D_J()
@await() class C {}

View File

@ -1,19 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-member-expr-decorator-member-expr.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
// - src/decorator/syntax/valid/cls-decl-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorMemberExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
ClassDeclaration[Yield, Await, Default] :
DecoratorList[?Yield, ?Await]opt class BindingIdentifier[?Yield, ?Await] ClassTail[?Yield, ?Await]
[+Default] DecoratorList[?Yield, ?Await]opt class ClassTail[?Yield, ?Await]
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
@ -45,37 +41,11 @@ let ns = {
class C {
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await method() {}
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await static method() {}
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await field;
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await static field;
}
@ns.$
@ns._
@ns.\u{6F}
@ns.\u2118
@ns.ZW_\u200C_NJ
@ns.ZW_\u200D_J
@ns.yield
@ns.await class C {}

View File

@ -1,19 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-member-expr-identifier-reference-yield.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
// - src/decorator/syntax/valid/cls-decl-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorMemberExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated, noStrict]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
ClassDeclaration[Yield, Await, Default] :
DecoratorList[?Yield, ?Await]opt class BindingIdentifier[?Yield, ?Await] ClassTail[?Yield, ?Await]
[+Default] DecoratorList[?Yield, ?Await]opt class ClassTail[?Yield, ?Await]
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
@ -35,9 +31,4 @@ function yield() {}
class C {
@yield method() {}
@yield static method() {}
@yield field;
@yield static field;
}
@yield class C {}

View File

@ -1,19 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-member-expr-identifier-reference.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
// - src/decorator/syntax/valid/cls-decl-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorMemberExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
ClassDeclaration[Yield, Await, Default] :
DecoratorList[?Yield, ?Await]opt class BindingIdentifier[?Yield, ?Await] ClassTail[?Yield, ?Await]
[+Default] DecoratorList[?Yield, ?Await]opt class ClassTail[?Yield, ?Await]
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
@ -42,33 +38,10 @@ function await() {}
class C {
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await method() {}
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await static method() {}
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await field;
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await static field;
}
@$
@_
@\u{6F}
@\u2118
@ZW_\u200C_NJ
@ZW_\u200D_J
@await class C {}

View File

@ -1,19 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-parenthesized-expr-identifier-reference-yield.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
// - src/decorator/syntax/valid/cls-decl-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorParenthesizedExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated, noStrict]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
ClassDeclaration[Yield, Await, Default] :
DecoratorList[?Yield, ?Await]opt class BindingIdentifier[?Yield, ?Await] ClassTail[?Yield, ?Await]
[+Default] DecoratorList[?Yield, ?Await]opt class ClassTail[?Yield, ?Await]
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
@ -53,9 +49,4 @@ function yield() {}
class C {
@(yield) method() {}
@(yield) static method() {}
@(yield) field;
@(yield) static field;
}
@(yield) class C {}

View File

@ -1,19 +1,15 @@
// This file was procedurally generated from the following sources:
// - src/decorator/decorator-parenthesized-expr-identifier-reference.case
// - src/decorator/syntax/valid/cls-element-decorators-valid-syntax.template
// - src/decorator/syntax/valid/cls-decl-decorators-valid-syntax.template
/*---
description: Decorator @ DecoratorParenthesizedExpression (Valid syntax for decorator on class.)
esid: prod-ClassDeclaration
features: [class, decorators]
flags: [generated]
info: |
ClassElement[Yield, Await] :
DecoratorList[?Yield, ?Await]opt MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt static MethodDefinition[?Yield, ?Await]
DecoratorList[?Yield, ?Await]opt FieldDefinition[?Yield, ?Await] ;
DecoratorList[?Yield, ?Await]opt static FieldDefinition[?Yield, ?Await] ;
ClassStaticBlock
;
ClassDeclaration[Yield, Await, Default] :
DecoratorList[?Yield, ?Await]opt class BindingIdentifier[?Yield, ?Await] ClassTail[?Yield, ?Await]
[+Default] DecoratorList[?Yield, ?Await]opt class ClassTail[?Yield, ?Await]
DecoratorList[Yield, Await] :
DecoratorList[?Yield, ?Await]opt Decorator[?Yield, ?Await]
@ -55,33 +51,10 @@ function await() {}
class C {
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) method() {}
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) static method() {}
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) field;
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) static field;
}
@($)
@(_)
@(\u{6F})
@(\u2118)
@(ZW_\u200C_NJ)
@(ZW_\u200D_J)
@(await) class C {}