remove invalid element decorator yield reference tests

This commit is contained in:
Huáng Jùnliàng 2022-12-02 15:46:04 -05:00 committed by Philip Chimento
parent f00d4118db
commit 58b3321dba
6 changed files with 12 additions and 161 deletions

View File

@ -17,7 +17,10 @@ info: |
[~Yield] yield
...
template: syntax/valid
templates:
- syntax/valid/cls-decl-decorators-valid-syntax.template
- syntax/valid/cls-expr-decorators-valid-syntax.template
flags: [noStrict]
---*/

View File

@ -8,7 +8,10 @@ info: |
IdentifierReference[Yield, Await] :
[~Yield] yield
...
template: syntax/valid
templates:
- syntax/valid/cls-decl-decorators-valid-syntax.template
- syntax/valid/cls-expr-decorators-valid-syntax.template
flags: [noStrict]
---*/

View File

@ -26,7 +26,10 @@ info: |
IdentifierReference[Yield, Await] :
[~Yield] yield
...
template: syntax/valid
templates:
- syntax/valid/cls-decl-decorators-valid-syntax.template
- syntax/valid/cls-expr-decorators-valid-syntax.template
flags: [noStrict]
---*/

View File

@ -1,54 +0,0 @@
// 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

@ -1,43 +0,0 @@
// 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

@ -1,61 +0,0 @@
// 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;
}