Skip to content

Commit

Permalink
Cherry-pick fix around visitEachChild to release-4.9. (#51544)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser authored Nov 29, 2022
1 parent 93bd577 commit 1727912
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 @@ -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
Expand Down

0 comments on commit 1727912

Please sign in to comment.