From 58b3321dba9996c896090ab83e996a5a4c65e6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 2 Dec 2022 15:46:04 -0500 Subject: [PATCH] remove invalid element decorator yield reference tests --- ...-call-expr-identifier-reference-yield.case | 5 +- ...ember-expr-identifier-reference-yield.case | 5 +- ...sized-expr-identifier-reference-yield.case | 5 +- ...or-call-expr-identifier-reference-yield.js | 54 ---------------- ...-member-expr-identifier-reference-yield.js | 43 ------------- ...hesized-expr-identifier-reference-yield.js | 61 ------------------- 6 files changed, 12 insertions(+), 161 deletions(-) delete mode 100644 test/language/statements/class/decorator/syntax/valid/class-element-decorator-call-expr-identifier-reference-yield.js delete mode 100644 test/language/statements/class/decorator/syntax/valid/class-element-decorator-member-expr-identifier-reference-yield.js delete mode 100644 test/language/statements/class/decorator/syntax/valid/class-element-decorator-parenthesized-expr-identifier-reference-yield.js diff --git a/src/decorator/decorator-call-expr-identifier-reference-yield.case b/src/decorator/decorator-call-expr-identifier-reference-yield.case index 23c7e956ca..00c695d2c0 100644 --- a/src/decorator/decorator-call-expr-identifier-reference-yield.case +++ b/src/decorator/decorator-call-expr-identifier-reference-yield.case @@ -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] ---*/ diff --git a/src/decorator/decorator-member-expr-identifier-reference-yield.case b/src/decorator/decorator-member-expr-identifier-reference-yield.case index 541e0af9c9..835e5059bc 100644 --- a/src/decorator/decorator-member-expr-identifier-reference-yield.case +++ b/src/decorator/decorator-member-expr-identifier-reference-yield.case @@ -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] ---*/ diff --git a/src/decorator/decorator-parenthesized-expr-identifier-reference-yield.case b/src/decorator/decorator-parenthesized-expr-identifier-reference-yield.case index 13e7326a0a..62922a80d6 100644 --- a/src/decorator/decorator-parenthesized-expr-identifier-reference-yield.case +++ b/src/decorator/decorator-parenthesized-expr-identifier-reference-yield.case @@ -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] ---*/ diff --git a/test/language/statements/class/decorator/syntax/valid/class-element-decorator-call-expr-identifier-reference-yield.js b/test/language/statements/class/decorator/syntax/valid/class-element-decorator-call-expr-identifier-reference-yield.js deleted file mode 100644 index 318fb36618..0000000000 --- a/test/language/statements/class/decorator/syntax/valid/class-element-decorator-call-expr-identifier-reference-yield.js +++ /dev/null @@ -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; -} diff --git a/test/language/statements/class/decorator/syntax/valid/class-element-decorator-member-expr-identifier-reference-yield.js b/test/language/statements/class/decorator/syntax/valid/class-element-decorator-member-expr-identifier-reference-yield.js deleted file mode 100644 index a685b425f4..0000000000 --- a/test/language/statements/class/decorator/syntax/valid/class-element-decorator-member-expr-identifier-reference-yield.js +++ /dev/null @@ -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; -} diff --git a/test/language/statements/class/decorator/syntax/valid/class-element-decorator-parenthesized-expr-identifier-reference-yield.js b/test/language/statements/class/decorator/syntax/valid/class-element-decorator-parenthesized-expr-identifier-reference-yield.js deleted file mode 100644 index ab8ebcc0b1..0000000000 --- a/test/language/statements/class/decorator/syntax/valid/class-element-decorator-parenthesized-expr-identifier-reference-yield.js +++ /dev/null @@ -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; -}