Skip to content

Commit 1727912

Browse files
authoredNov 29, 2022
Cherry-pick fix around visitEachChild to release-4.9. (#51544)
1 parent 93bd577 commit 1727912

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/compiler/visitorPublic.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1304,9 +1304,9 @@ namespace ts {
13041304
},
13051305

13061306
// Top-level nodes
1307-
[SyntaxKind.SourceFile]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
1307+
[SyntaxKind.SourceFile]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
13081308
return context.factory.updateSourceFile(node,
1309-
visitLexicalEnvironment(node.statements, visitor, context, /*start*/ undefined, /*ensureUseStrict*/ undefined, nodesVisitor));
1309+
visitLexicalEnvironment(node.statements, visitor, context));
13101310
},
13111311

13121312
// Transformation nodes

0 commit comments

Comments
 (0)
Please sign in to comment.