Skip to content

Commit 0772963

Browse files
authored
visitEachChild not traversing all nodes
fixes microsoft#51542
1 parent 89ce16c commit 0772963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/visitorPublic.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,9 +1324,9 @@ const visitEachChildTable: VisitEachChildTable = {
13241324
},
13251325

13261326
// Top-level nodes
1327-
[SyntaxKind.SourceFile]: function visitEachChildOfSourceFile(node, visitor, context, nodesVisitor, _nodeVisitor, _tokenVisitor) {
1327+
[SyntaxKind.SourceFile]: function visitEachChildOfSourceFile(node, visitor, context, _nodesVisitor, _nodeVisitor, _tokenVisitor) {
13281328
return context.factory.updateSourceFile(node,
1329-
visitLexicalEnvironment(node.statements, visitor, context, /*start*/ undefined, /*ensureUseStrict*/ undefined, nodesVisitor));
1329+
visitLexicalEnvironment(node.statements, visitor, context));
13301330
},
13311331

13321332
// Transformation nodes

0 commit comments

Comments
 (0)