Skip to content

Commit

Permalink
visitEachChild not traversing all nodes (#51543)
Browse files Browse the repository at this point in the history
fixes #51542
  • Loading branch information
simllll authored Nov 15, 2022
1 parent dfc1242 commit f4ddc1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler/visitorPublic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1324,9 +1324,9 @@ const visitEachChildTable: VisitEachChildTable = {
},

// 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
Expand Down

0 comments on commit f4ddc1a

Please sign in to comment.