mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
handle cases when body of for-of statement is expanded after loop conversion (#13677)
This commit is contained in:
1 parent
e679b2ee76
commit
abc30b26c7
5 files changed
+60
-1
No files matched your search
@@ -2316,7 +2316,7 @@ namespace ts {
|
||||
addRange(statements, convertedLoopBodyStatements);
|
||||
}
|
||||
else {
|
||||
const statement = visitNode(node.statement, visitor, isStatement);
|
||||
const statement = visitNode(node.statement, visitor, isStatement, /*optional*/ false, liftToBlock);
|
||||
if (isBlock(statement)) {
|
||||
addRange(statements, statement.statements);
|
||||
bodyLocation = statement;
|
||||
|
||||
Reference in new issue
Block a user