[7.0] Remove ForAwaitStatement, add await flag to ForOfStatement (#349)
* Remove ForAwaitStatement, add await flag to ForOfStatement * Set await flag for all ForOfStatements
This commit is contained in:
12
ast/spec.md
12
ast/spec.md
@@ -35,7 +35,6 @@ These are the core Babylon AST node types.
|
||||
- [ForStatement](#forstatement)
|
||||
- [ForInStatement](#forinstatement)
|
||||
- [ForOfStatement](#forofstatement)
|
||||
- [ForAwaitStatement](#forawaitstatement)
|
||||
- [Declarations](#declarations)
|
||||
- [FunctionDeclaration](#functiondeclaration)
|
||||
- [VariableDeclaration](#variabledeclaration)
|
||||
@@ -478,16 +477,7 @@ A `for`/`in` statement.
|
||||
```js
|
||||
interface ForOfStatement <: ForInStatement {
|
||||
type: "ForOfStatement";
|
||||
}
|
||||
```
|
||||
|
||||
A `for`/`await` statement.
|
||||
|
||||
## ForAwaitStatement
|
||||
|
||||
```js
|
||||
interface ForAwaitStatement <: ForInStatement {
|
||||
type: "ForAwaitStatement";
|
||||
await: boolean;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user