mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Drop deferredNodes after checking them all. (#52606)
This commit is contained in:
parent
738b45e219
commit
6aba9b8a24
@ -44398,6 +44398,9 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
links.deferredNodes ||= new Set();
|
||||
links.deferredNodes.add(node);
|
||||
}
|
||||
else {
|
||||
Debug.assert(!links.deferredNodes, "A type-checked file should have no deferred nodes.");
|
||||
}
|
||||
}
|
||||
|
||||
function checkDeferredNodes(context: SourceFile) {
|
||||
@ -44405,6 +44408,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
if (links.deferredNodes) {
|
||||
links.deferredNodes.forEach(checkDeferredNode);
|
||||
}
|
||||
links.deferredNodes = undefined;
|
||||
}
|
||||
|
||||
function checkDeferredNode(node: Node) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user