From 3073b2a4a92eef0fbdd1aefc151d5d01aa33c775 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Sat, 9 Jan 2021 22:59:49 -0800 Subject: [PATCH] Editorial: prefer multi-line productions when in groups --- spec.html | 168 +++++++++++++++++++++++++++++------------------------- 1 file changed, 89 insertions(+), 79 deletions(-) diff --git a/spec.html b/spec.html index 1636642bbbf..992a8a10422 100644 --- a/spec.html +++ b/spec.html @@ -6842,41 +6842,31 @@

Static Semantics: IsConstantDeclaration

1. Return *true*. - FunctionDeclaration : `function` BindingIdentifier `(` FormalParameters `)` `{` FunctionBody `}` - - FunctionDeclaration : `function` `(` FormalParameters `)` `{` FunctionBody `}` - - - 1. Return *false*. - - - GeneratorDeclaration : `function` `*` BindingIdentifier `(` FormalParameters `)` `{` GeneratorBody `}` + FunctionDeclaration : + `function` BindingIdentifier `(` FormalParameters `)` `{` FunctionBody `}` + `function` `(` FormalParameters `)` `{` FunctionBody `}` - GeneratorDeclaration : `function` `*` `(` FormalParameters `)` `{` GeneratorBody `}` - - - 1. Return *false*. - - - AsyncGeneratorDeclaration : `async` `function` `*` BindingIdentifier `(` FormalParameters `)` `{` AsyncGeneratorBody `}` + GeneratorDeclaration : + `function` `*` BindingIdentifier `(` FormalParameters `)` `{` GeneratorBody `}` + `function` `*` `(` FormalParameters `)` `{` GeneratorBody `}` - AsyncGeneratorDeclaration : `async` `function` `*` `(` FormalParameters `)` `{` AsyncGeneratorBody `}` - - - 1. Return *false*. - - - ClassDeclaration : `class` BindingIdentifier ClassTail + AsyncGeneratorDeclaration : + `async` `function` `*` BindingIdentifier `(` FormalParameters `)` `{` AsyncGeneratorBody `}` + `async` `function` `*` `(` FormalParameters `)` `{` AsyncGeneratorBody `}` - ClassDeclaration : `class` ClassTail + AsyncFunctionDeclaration : + `async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}` + `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` 1. Return *false*. - AsyncFunctionDeclaration : `async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}` + ClassDeclaration : + `class` BindingIdentifier ClassTail - AsyncFunctionDeclaration : `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` + ClassDeclaration : + `class` ClassTail 1. Return *false*. @@ -6913,9 +6903,11 @@

Static Semantics: ContainsDuplicateLabels

ThrowStatement DebuggerStatement - Block : `{` `}` + Block : + `{` `}` - StatementListItem : Declaration + StatementListItem : + Declaration 1. Return *false*. @@ -7077,9 +7069,11 @@

Static Semantics: ContainsUndefinedBreakTarget

ThrowStatement DebuggerStatement - Block : `{` `}` + Block : + `{` `}` - StatementListItem : Declaration + StatementListItem : + Declaration 1. Return *false*. @@ -7249,9 +7243,11 @@

Static Semantics: ContainsUndefinedContinueTarget

ThrowStatement DebuggerStatement - Block : `{` `}` + Block : + `{` `}` - StatementListItem : Declaration + StatementListItem : + Declaration 1. Return *false*. @@ -18530,9 +18526,9 @@

Syntax

Static Semantics: Early Errors

- ContinueStatement : `continue` `;` - - ContinueStatement : `continue` LabelIdentifier `;` + ContinueStatement : + `continue` `;` + `continue` LabelIdentifier `;`
  • @@ -19374,11 +19370,12 @@

    Syntax

    Static Semantics: Early Errors

    - FunctionDeclaration : `function` BindingIdentifier `(` FormalParameters `)` `{` FunctionBody `}` - - FunctionDeclaration : `function` `(` FormalParameters `)` `{` FunctionBody `}` + FunctionDeclaration : + `function` BindingIdentifier `(` FormalParameters `)` `{` FunctionBody `}` + `function` `(` FormalParameters `)` `{` FunctionBody `}` - FunctionExpression : `function` BindingIdentifier? `(` FormalParameters `)` `{` FunctionBody `}` + FunctionExpression : + `function` BindingIdentifier? `(` FormalParameters `)` `{` FunctionBody `}`
    • @@ -19446,35 +19443,48 @@

      Static Semantics: HasName

      1. Return HasName of _expr_. - FunctionExpression : `function` `(` FormalParameters `)` `{` FunctionBody `}` + FunctionExpression : + `function` `(` FormalParameters `)` `{` FunctionBody `}` - GeneratorExpression : `function` `*` `(` FormalParameters `)` `{` GeneratorBody `}` + GeneratorExpression : + `function` `*` `(` FormalParameters `)` `{` GeneratorBody `}` - AsyncGeneratorExpression : `async` `function` `*` `(` FormalParameters `)` `{` AsyncGeneratorBody `}` + AsyncGeneratorExpression : + `async` `function` `*` `(` FormalParameters `)` `{` AsyncGeneratorBody `}` - AsyncFunctionExpression : `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` + AsyncFunctionExpression : + `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` - ArrowFunction : ArrowParameters `=>` ConciseBody + ArrowFunction : + ArrowParameters `=>` ConciseBody - AsyncArrowFunction : `async` AsyncArrowBindingIdentifier `=>` AsyncConciseBody + AsyncArrowFunction : + `async` AsyncArrowBindingIdentifier `=>` AsyncConciseBody - AsyncArrowFunction : CoverCallExpressionAndAsyncArrowHead `=>` AsyncConciseBody + AsyncArrowFunction : + CoverCallExpressionAndAsyncArrowHead `=>` AsyncConciseBody - ClassExpression : `class` ClassTail + ClassExpression : + `class` ClassTail 1. Return *false*. - FunctionExpression : `function` BindingIdentifier `(` FormalParameters `)` `{` FunctionBody `}` + FunctionExpression : + `function` BindingIdentifier `(` FormalParameters `)` `{` FunctionBody `}` - GeneratorExpression : `function` `*` BindingIdentifier `(` FormalParameters `)` `{` GeneratorBody `}` + GeneratorExpression : + `function` `*` BindingIdentifier `(` FormalParameters `)` `{` GeneratorBody `}` - AsyncGeneratorExpression : `async` `function` `*` BindingIdentifier `(` FormalParameters `)` `{` AsyncGeneratorBody `}` + AsyncGeneratorExpression : + `async` `function` `*` BindingIdentifier `(` FormalParameters `)` `{` AsyncGeneratorBody `}` - AsyncFunctionExpression : `async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}` + AsyncFunctionExpression : + `async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}` - ClassExpression : `class` BindingIdentifier ClassTail + ClassExpression : + `class` BindingIdentifier ClassTail 1. Return *true*. @@ -20102,11 +20112,12 @@

      Static Semantics: Early Errors

    - GeneratorDeclaration : `function` `*` BindingIdentifier `(` FormalParameters `)` `{` GeneratorBody `}` - - GeneratorDeclaration : `function` `*` `(` FormalParameters `)` `{` GeneratorBody `}` + GeneratorDeclaration : + `function` `*` BindingIdentifier `(` FormalParameters `)` `{` GeneratorBody `}` + `function` `*` `(` FormalParameters `)` `{` GeneratorBody `}` - GeneratorExpression : `function` `*` BindingIdentifier? `(` FormalParameters `)` `{` GeneratorBody `}` + GeneratorExpression : + `function` `*` BindingIdentifier? `(` FormalParameters `)` `{` GeneratorBody `}`
    • @@ -20318,11 +20329,12 @@

      Static Semantics: Early Errors

    • It is a Syntax Error if any element of the BoundNames of |UniqueFormalParameters| also occurs in the LexicallyDeclaredNames of |AsyncGeneratorBody|.
    - AsyncGeneratorDeclaration : `async` `function` `*` BindingIdentifier `(` FormalParameters `)` `{` AsyncGeneratorBody `}` - - AsyncGeneratorDeclaration : `async` `function` `*` `(` FormalParameters `)` `{` AsyncGeneratorBody `}` + AsyncGeneratorDeclaration : + `async` `function` `*` BindingIdentifier `(` FormalParameters `)` `{` AsyncGeneratorBody `}` + `async` `function` `*` `(` FormalParameters `)` `{` AsyncGeneratorBody `}` - AsyncGeneratorExpression : `async` `function` `*` BindingIdentifier? `(` FormalParameters `)` `{` AsyncGeneratorBody `}` + AsyncGeneratorExpression : + `async` `function` `*` BindingIdentifier? `(` FormalParameters `)` `{` AsyncGeneratorBody `}`
    • If the source code matching |FormalParameters| is strict mode code, the Early Error rules for UniqueFormalParameters : FormalParameters are applied.
    • @@ -20765,13 +20777,13 @@

      Static Semantics: Early Errors

    • It is a Syntax Error if any element of the BoundNames of |UniqueFormalParameters| also occurs in the LexicallyDeclaredNames of |AsyncFunctionBody|.
    - AsyncFunctionDeclaration : `async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}` - - AsyncFunctionDeclaration : `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` - - AsyncFunctionExpression : `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` + AsyncFunctionDeclaration : + `async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}` + `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` - AsyncFunctionExpression : `async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}` + AsyncFunctionExpression : + `async` `function` `(` FormalParameters `)` `{` AsyncFunctionBody `}` + `async` `function` BindingIdentifier `(` FormalParameters `)` `{` AsyncFunctionBody `}`
    • It is a Syntax Error if FunctionBodyContainsUseStrict of |AsyncFunctionBody| is *true* and IsSimpleParameterList of |FormalParameters| is *false*.
    • @@ -23192,11 +23204,10 @@

      Static Semantics: ExportedBindings

      1. Return the BoundNames of |Declaration|. - ExportDeclaration : `export` `default` HoistableDeclaration - - ExportDeclaration : `export` `default` ClassDeclaration - - ExportDeclaration : `export` `default` AssignmentExpression `;` + ExportDeclaration : + `export` `default` HoistableDeclaration + `export` `default` ClassDeclaration + `export` `default` AssignmentExpression `;` 1. Return the BoundNames of this |ExportDeclaration|. @@ -23269,11 +23280,10 @@

      Static Semantics: ExportedNames

      1. Return the BoundNames of |Declaration|.
      - ExportDeclaration : `export` `default` HoistableDeclaration - - ExportDeclaration : `export` `default` ClassDeclaration - - ExportDeclaration : `export` `default` AssignmentExpression `;` + ExportDeclaration : + `export` `default` HoistableDeclaration + `export` `default` ClassDeclaration + `export` `default` AssignmentExpression `;` 1. Return « *"default"* ». @@ -41487,9 +41497,9 @@

      __proto__ Property Names in Object Initializers

    • when parsing text for JSON.parse.
    - ObjectLiteral : `{` PropertyDefinitionList `}` - - ObjectLiteral : `{` PropertyDefinitionList `,` `}` + ObjectLiteral : + `{` PropertyDefinitionList `}` + `{` PropertyDefinitionList `,` `}`