Set negative flags along with the templates using DONOTEVALUATE calls

This commit is contained in:
Leo Balter 2018-11-29 17:28:07 -05:00 committed by Rick Waldron
parent 73705f8801
commit b9aa09c33e
32 changed files with 90 additions and 6 deletions

View File

@ -18,9 +18,6 @@ info: |
...
For all other grammatical productions, recurse on all nonterminals. If any piece returns true, then return true. Otherwise return false.
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
template: initializer-error
---*/

View File

@ -11,9 +11,6 @@ info: |
- It is a Syntax Error if Initializer is present and Initializer Contains SuperCall is true.
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
template: initializer-error
---*/

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-arrow-fnc-
name: arrow function expression
features: [arrow-function, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-comp-name-
name: computed ClassElementName
features: [class, class-fields-public, computed-property-names]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-equality-
name: equality expression
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-literal-name-
name: literal ClassElementName
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-private-arrow-fnc-
name: private field, arrow function expression
features: [class, arrow-function, class-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-private-literal-name-
name: ClassElementName PrivateName
features: [class, class-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-private-ternary-
name: private field, ternary expression
features: [class, class-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-private-typeof-
name: private field, typeof expression
features: [class, class-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-comp-name-
name: static computed ClassElementName
features: [class, class-static-fields-public, computed-property-names]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-literal-
name: static literal ClassElementName
features: [class, class-static-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-private-
name: static PrivateName
features: [class, class-static-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-static-string-literal-name-
name: static string literal ClassElementName
features: [class, class-static-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-string-literal-name-
name: string literal ClassElementName
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-ternary-
name: ternary expression
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/statements/class/fields-typeof-
name: typeof expression
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-arrow-fnc-
name: arrow function expression
features: [arrow-function, class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-comp-name-
name: computed ClassElementName
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-equality-
name: equality expression
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-literal-name-
name: literal ClassElementName
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-private-arrow-fnc-
name: private field, arrow function expression
features: [class, arrow-function, class-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-private-literal-name-
name: ClassElementName PrivateName
features: [class, class-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-private-ternary-
name: private field, ternary expression
features: [class, class-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-private-typeof-
name: private field, typeof expression
features: [class, class-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-static-comp-name-
name: static computed ClassElementName
features: [class, class-static-fields-public, computed-property-names]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-static-literal-
name: static literal ClassElementName
features: [class, class-static-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-static-private-
name: static PrivateName
features: [class, class-static-fields-private]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-static-string-literal-name-
name: static string literal ClassElementName
features: [class, class-static-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-string-literal-name-
name: string literal ClassElementName
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-ternary-
name: ternary expression
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();

View File

@ -6,6 +6,9 @@ esid: sec-class-definitions-static-semantics-early-errors
path: language/expressions/class/fields-typeof-
name: typeof expression
features: [class, class-fields-public]
negative:
type: SyntaxError
phase: parse
---*/
$DONOTEVALUATE();