Cherry-pick fix around visitEachChild to release-4.9. (#51544)

This commit is contained in:
Daniel Rosenwasser
2022-11-29 10:13:26 -08:00
committed by GitHub
parent 93bd577458
commit 1727912f04
+2 -2
View File
@@ -1304,9 +1304,9 @@ namespace ts {
},
// Top-level nodes
[SyntaxKind.SourceFile]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
[SyntaxKind.SourceFile]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
return context.factory.updateSourceFile(node,
visitLexicalEnvironment(node.statements, visitor, context, /*start*/ undefined, /*ensureUseStrict*/ undefined, nodesVisitor));
visitLexicalEnvironment(node.statements, visitor, context));
},
// Transformation nodes