File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ namespace ts {
558
558
dropDiagnosticsProducingTypeChecker,
559
559
getSourceFileFromReference,
560
560
sourceFileToPackageName,
561
- isSourceFileTargetOfRedirect ,
561
+ redirectTargetsSet ,
562
562
} ;
563
563
564
564
verifyCompilerOptions ( ) ;
@@ -802,7 +802,7 @@ namespace ts {
802
802
return oldProgram . structureIsReused = StructureIsReused . Not ;
803
803
}
804
804
}
805
- else if ( oldProgram . isSourceFileTargetOfRedirect . has ( oldSourceFile . path ) ) {
805
+ else if ( oldProgram . redirectTargetsSet . has ( oldSourceFile . path ) ) {
806
806
// This is similar to the above case. If a redirected-to source file changes, the redirect may be broken.
807
807
if ( newSourceFile !== oldSourceFile ) {
808
808
return oldProgram . structureIsReused = StructureIsReused . Not ;
@@ -941,7 +941,7 @@ namespace ts {
941
941
resolvedTypeReferenceDirectives = oldProgram . getResolvedTypeReferenceDirectives ( ) ;
942
942
943
943
sourceFileToPackageName = oldProgram . sourceFileToPackageName ;
944
- isSourceFileTargetOfRedirect = oldProgram . isSourceFileTargetOfRedirect ;
944
+ isSourceFileTargetOfRedirect = oldProgram . redirectTargetsSet ;
945
945
946
946
return oldProgram . structureIsReused = StructureIsReused . Completely ;
947
947
}
Original file line number Diff line number Diff line change @@ -2511,8 +2511,8 @@ namespace ts {
2511
2511
2512
2512
/** Given a source file, get the name of the package it was imported from. */
2513
2513
/* @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 > ;
2516
2516
}
2517
2517
2518
2518
/* @internal */
You can’t perform that action at this time.
0 commit comments