Skip to content

Commit

Permalink
Editorial: Move export syntax with IfClause to ExportDeclaration #81
Browse files Browse the repository at this point in the history
Pull in the ExportDeclaration syntax, and move the new export syntax with added IfClause into it.
  • Loading branch information
dandclark authored Jul 16, 2020
2 parents 12c0d02 + b087414 commit 728b8fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ <h1>Syntax</h1>
`import` ModuleSpecifier `;`
<ins>`import` ImportClause FromClause IfClause `;`</ins>
<ins>`import` ModuleSpecifier IfClause `;`</ins>

ExportDeclaration :
`export` ExportFromClause FromClause `;`
<ins>`export` ExportFromClause FromClause IfClause `;`</ins>
`export` NamedExports `;`
`export` VariableStatement[~Yield, ~Await]
`export` Declaration[~Yield, ~Await]
`export` `default` HoistableDeclaration[~Yield, ~Await, +Default]
`export` `default` ClassDeclaration[~Yield, ~Await, +Default]
`export` `default` [lookahead &lt;! {`function`, `async` [no |LineTerminator| here] `function`, `class`}] AssignmentExpression[+In, ~Yield, ~Await] `;`

IfClause :
<ins>`if` `{` ConditionEntries `,`? `}`</ins>
Expand Down

0 comments on commit 728b8fe

Please sign in to comment.