Skip to content

Commit 8bf33cb

Browse files
author
Andy Hanson
committed
Rename set
1 parent e2a0931 commit 8bf33cb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/compiler/program.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ namespace ts {
558558
dropDiagnosticsProducingTypeChecker,
559559
getSourceFileFromReference,
560560
sourceFileToPackageName,
561-
isSourceFileTargetOfRedirect,
561+
redirectTargetsSet,
562562
};
563563

564564
verifyCompilerOptions();
@@ -802,7 +802,7 @@ namespace ts {
802802
return oldProgram.structureIsReused = StructureIsReused.Not;
803803
}
804804
}
805-
else if (oldProgram.isSourceFileTargetOfRedirect.has(oldSourceFile.path)) {
805+
else if (oldProgram.redirectTargetsSet.has(oldSourceFile.path)) {
806806
// This is similar to the above case. If a redirected-to source file changes, the redirect may be broken.
807807
if (newSourceFile !== oldSourceFile) {
808808
return oldProgram.structureIsReused = StructureIsReused.Not;
@@ -941,7 +941,7 @@ namespace ts {
941941
resolvedTypeReferenceDirectives = oldProgram.getResolvedTypeReferenceDirectives();
942942

943943
sourceFileToPackageName = oldProgram.sourceFileToPackageName;
944-
isSourceFileTargetOfRedirect = oldProgram.isSourceFileTargetOfRedirect;
944+
isSourceFileTargetOfRedirect = oldProgram.redirectTargetsSet;
945945

946946
return oldProgram.structureIsReused = StructureIsReused.Completely;
947947
}

src/compiler/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2511,8 +2511,8 @@ namespace ts {
25112511

25122512
/** Given a source file, get the name of the package it was imported from. */
25132513
/* @internal */ sourceFileToPackageName: Map<string>;
2514-
/** True if some other source file redirects to this one. */
2515-
/* @internal */ isSourceFileTargetOfRedirect: Map<true>;
2514+
/** Set of all source files that some other source file redirects to. */
2515+
/* @internal */ redirectTargetsSet: Map<true>;
25162516
}
25172517

25182518
/* @internal */

0 commit comments

Comments
 (0)