From d277380c4cf7a2ff3ba3499b6d82b126c9888d4a Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Fri, 8 Nov 2019 20:57:51 +1100 Subject: [PATCH] Add VariableDeclaration to `left` property (Fix #2005) --- docs/syntax-tree-format.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/syntax-tree-format.md b/docs/syntax-tree-format.md index be8fb3a18..68d95196c 100644 --- a/docs/syntax-tree-format.md +++ b/docs/syntax-tree-format.md @@ -534,7 +534,7 @@ interface ForStatement { ```js interface ForInStatement { type: 'ForInStatement'; - left: Expression; + left: Expression | VariableDeclaration; right: Expression; body: Statement; each: false; @@ -546,7 +546,7 @@ interface ForInStatement { ```js interface ForOfStatement { type: 'ForOfStatement'; - left: Expression; + left: Expression | VariableDeclaration; right: Expression; body: Statement; }