@@ -3485,7 +3485,7 @@ namespace ts {
3485
3485
// It is used to resolve module names in the checker.
3486
3486
// Content of this field should never be used directly - use getResolvedModuleFileName/setResolvedModuleFileName functions instead
3487
3487
/* @internal */ resolvedModules ?: ESMap < string , ResolvedModuleWithFailedLookupLocations > ;
3488
- /* @internal */ resolvedTypeReferenceDirectiveNames : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3488
+ /* @internal */ resolvedTypeReferenceDirectiveNames ? : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3489
3489
/* @internal */ imports : readonly StringLiteralLike [ ] ;
3490
3490
// Identifier only if `declare global`
3491
3491
/* @internal */ moduleAugmentations : readonly ( StringLiteral | Identifier ) [ ] ;
@@ -3769,7 +3769,7 @@ namespace ts {
3769
3769
}
3770
3770
3771
3771
/*@internal */
3772
- export type FilePreprocessingDiagnostics = FilePreprocessingReferencedDiagnostic | FilePreprocessingFileExplainingDiagnostic ;
3772
+ export type FilePreprocessingDiagnostic = FilePreprocessingReferencedDiagnostic | FilePreprocessingFileExplainingDiagnostic ;
3773
3773
3774
3774
/*@internal */
3775
3775
export const missingSourceOfProjectReferenceRedirect = false ;
@@ -3847,7 +3847,7 @@ namespace ts {
3847
3847
getInstantiationCount ( ) : number ;
3848
3848
getRelationCacheSizes ( ) : { assignable : number , identity : number , subtype : number , strictSubtype : number } ;
3849
3849
3850
- /* @internal */ getFileProcessingDiagnostics ( ) : FilePreprocessingDiagnostics [ ] | undefined ;
3850
+ /* @internal */ getFileProcessingDiagnostics ( ) : FilePreprocessingDiagnostic [ ] | undefined ;
3851
3851
/* @internal */ getResolvedTypeReferenceDirectives ( ) : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3852
3852
isSourceFileFromExternalLibrary ( file : SourceFile ) : boolean ;
3853
3853
/* @internal */ isSourceFileFromExternalLibraryPath ( path : Path ) : boolean ;
@@ -3903,14 +3903,13 @@ namespace ts {
3903
3903
/*@internal */
3904
3904
export interface IdentifierOfProgramFromBuildInfo {
3905
3905
kind : SyntaxKind . Identifier ;
3906
- escapedText : string ;
3906
+ escapedText : __String ;
3907
3907
}
3908
3908
3909
3909
/*@internal */
3910
3910
export interface StringLiteralLikeOfProgramFromBuildInfo {
3911
3911
kind : SyntaxKind . StringLiteral | SyntaxKind . NoSubstitutionTemplateLiteral ;
3912
3912
text : string ;
3913
- escapedText : string ;
3914
3913
}
3915
3914
3916
3915
/*@internal */
@@ -3922,19 +3921,21 @@ namespace ts {
3922
3921
originalFileName : string ;
3923
3922
path : Path ;
3924
3923
resolvedPath : Path ;
3924
+ // This currently is set to sourceFile.flags & NodeFlags.PermanentlySetIncrementalFlags but cant be set in type
3925
+ // Change this if it changes in reusing program
3925
3926
flags : NodeFlags ;
3926
3927
version : string ;
3927
3928
3928
3929
typeReferenceDirectives : readonly string [ ] ;
3929
3930
libReferenceDirectives : readonly string [ ] ;
3930
3931
referencedFiles : readonly string [ ] ;
3931
3932
imports : readonly StringLiteralLikeOfProgramFromBuildInfo [ ] ;
3932
- moduleAugmentations : ModuleNameOfProgramFromBuildInfo [ ] ;
3933
+ moduleAugmentations : readonly ModuleNameOfProgramFromBuildInfo [ ] ;
3933
3934
ambientModuleNames : readonly string [ ] ;
3934
3935
hasNoDefaultLib : boolean ;
3935
3936
3936
3937
resolvedModules ?: ESMap < string , ResolvedModuleWithFailedLookupLocations > ;
3937
- resolvedTypeReferenceDirectiveNames : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3938
+ resolvedTypeReferenceDirectiveNames ? : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3938
3939
redirectInfo ?: RedirectInfoOfProgramFromBuildInfo ;
3939
3940
}
3940
3941
@@ -3944,20 +3945,19 @@ namespace ts {
3944
3945
3945
3946
getCompilerOptions ( ) : CompilerOptions ;
3946
3947
getRootFileNames ( ) : readonly string [ ] ;
3947
- getSourceFiles ( ) : SourceFileOfProgramFromBuildInfo [ ] ;
3948
+ getSourceFiles ( ) : readonly SourceFileOfProgramFromBuildInfo [ ] ;
3948
3949
getSourceFileByPath ( path : Path ) : SourceFileOfProgramFromBuildInfo | undefined ;
3949
3950
getProjectReferences ( ) : readonly ProjectReference [ ] | undefined ;
3950
- getResolvedProjectReferences ( ) : readonly ResolvedProjectReferenceOfProgramFromBuildInfo [ ] | undefined ;
3951
+ getResolvedProjectReferences ( ) : readonly ( ResolvedProjectReferenceOfProgramFromBuildInfo | undefined ) [ ] | undefined ;
3951
3952
getMissingFilePaths ( ) : readonly Path [ ] ;
3952
3953
getFileIncludeReasons ( ) : MultiMap < Path , FileIncludeReason > ;
3953
3954
getResolvedTypeReferenceDirectives ( ) : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3954
- getFilesByNameMap ( ) : ESMap < Path , Path | false | 0 > ;
3955
+ getFilesByNameMap ( ) : ESMap < Path , SourceFileOfProgramFromBuildInfo | Path | typeof missingSourceOfProjectReferenceRedirect | typeof missingFile > ;
3955
3956
isSourceFileFromExternalLibraryPath ( path : Path ) : boolean ;
3956
- getFileProcessingDiagnostics ( ) : readonly ReusableFilePreprocessingDiagnostics [ ] | undefined ;
3957
+ getFileProcessingDiagnostics ( ) : FilePreprocessingDiagnostic [ ] | undefined ;
3957
3958
3958
3959
redirectTargetsMap : MultiMap < Path , string > ;
3959
3960
sourceFileToPackageName : ESMap < Path , string > ;
3960
- structureIsReused ?: StructureIsReused ;
3961
3961
}
3962
3962
3963
3963
/*@internal */
@@ -3978,7 +3978,7 @@ namespace ts {
3978
3978
}
3979
3979
3980
3980
/*@internal */
3981
- export type ReusableFilePreprocessingDiagnostics = ReusableFilePreprocessingReferencedDiagnostic | ReusableFilePreprocessingFileExplainingDiagnostic ;
3981
+ export type ReusableFilePreprocessingDiagnostic = ReusableFilePreprocessingReferencedDiagnostic | ReusableFilePreprocessingFileExplainingDiagnostic ;
3982
3982
3983
3983
/* @internal */
3984
3984
export type RedirectTargetsMap = ReadonlyESMap < Path , readonly string [ ] > ;
0 commit comments