mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 15:44:16 -06:00
Cherry-pick fix around visitEachChild to release-4.9. (#51544)
This commit is contained in:
parent
93bd577458
commit
1727912f04
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user