mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
remove invalid element decorator yield reference tests
This commit is contained in:
parent
f00d4118db
commit
58b3321dba
@ -17,7 +17,10 @@ info: |
|
|||||||
[~Yield] yield
|
[~Yield] yield
|
||||||
...
|
...
|
||||||
|
|
||||||
template: syntax/valid
|
templates:
|
||||||
|
- syntax/valid/cls-decl-decorators-valid-syntax.template
|
||||||
|
- syntax/valid/cls-expr-decorators-valid-syntax.template
|
||||||
|
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -8,7 +8,10 @@ info: |
|
|||||||
IdentifierReference[Yield, Await] :
|
IdentifierReference[Yield, Await] :
|
||||||
[~Yield] yield
|
[~Yield] yield
|
||||||
...
|
...
|
||||||
template: syntax/valid
|
templates:
|
||||||
|
- syntax/valid/cls-decl-decorators-valid-syntax.template
|
||||||
|
- syntax/valid/cls-expr-decorators-valid-syntax.template
|
||||||
|
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -26,7 +26,10 @@ info: |
|
|||||||
IdentifierReference[Yield, Await] :
|
IdentifierReference[Yield, Await] :
|
||||||
[~Yield] yield
|
[~Yield] yield
|
||||||
...
|
...
|
||||||
template: syntax/valid
|
templates:
|
||||||
|
- syntax/valid/cls-decl-decorators-valid-syntax.template
|
||||||
|
- syntax/valid/cls-expr-decorators-valid-syntax.template
|
||||||
|
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
|
@ -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;
|
|
||||||
}
|
|
@ -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;
|
|
||||||
}
|
|
@ -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;
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user