@@ -3485,7 +3485,7 @@ namespace ts {
34853485 // It is used to resolve module names in the checker.
34863486 // Content of this field should never be used directly - use getResolvedModuleFileName/setResolvedModuleFileName functions instead
34873487 /* @internal */ resolvedModules ?: ESMap < string , ResolvedModuleWithFailedLookupLocations > ;
3488- /* @internal */ resolvedTypeReferenceDirectiveNames : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3488+ /* @internal */ resolvedTypeReferenceDirectiveNames ? : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
34893489 /* @internal */ imports : readonly StringLiteralLike [ ] ;
34903490 // Identifier only if `declare global`
34913491 /* @internal */ moduleAugmentations : readonly ( StringLiteral | Identifier ) [ ] ;
@@ -3769,7 +3769,7 @@ namespace ts {
37693769 }
37703770
37713771 /*@internal */
3772- export type FilePreprocessingDiagnostics = FilePreprocessingReferencedDiagnostic | FilePreprocessingFileExplainingDiagnostic ;
3772+ export type FilePreprocessingDiagnostic = FilePreprocessingReferencedDiagnostic | FilePreprocessingFileExplainingDiagnostic ;
37733773
37743774 /*@internal */
37753775 export const missingSourceOfProjectReferenceRedirect = false ;
@@ -3847,7 +3847,7 @@ namespace ts {
38473847 getInstantiationCount ( ) : number ;
38483848 getRelationCacheSizes ( ) : { assignable : number , identity : number , subtype : number , strictSubtype : number } ;
38493849
3850- /* @internal */ getFileProcessingDiagnostics ( ) : FilePreprocessingDiagnostics [ ] | undefined ;
3850+ /* @internal */ getFileProcessingDiagnostics ( ) : FilePreprocessingDiagnostic [ ] | undefined ;
38513851 /* @internal */ getResolvedTypeReferenceDirectives ( ) : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
38523852 isSourceFileFromExternalLibrary ( file : SourceFile ) : boolean ;
38533853 /* @internal */ isSourceFileFromExternalLibraryPath ( path : Path ) : boolean ;
@@ -3903,14 +3903,13 @@ namespace ts {
39033903 /*@internal */
39043904 export interface IdentifierOfProgramFromBuildInfo {
39053905 kind : SyntaxKind . Identifier ;
3906- escapedText : string ;
3906+ escapedText : __String ;
39073907 }
39083908
39093909 /*@internal */
39103910 export interface StringLiteralLikeOfProgramFromBuildInfo {
39113911 kind : SyntaxKind . StringLiteral | SyntaxKind . NoSubstitutionTemplateLiteral ;
39123912 text : string ;
3913- escapedText : string ;
39143913 }
39153914
39163915 /*@internal */
@@ -3922,19 +3921,21 @@ namespace ts {
39223921 originalFileName : string ;
39233922 path : Path ;
39243923 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
39253926 flags : NodeFlags ;
39263927 version : string ;
39273928
39283929 typeReferenceDirectives : readonly string [ ] ;
39293930 libReferenceDirectives : readonly string [ ] ;
39303931 referencedFiles : readonly string [ ] ;
39313932 imports : readonly StringLiteralLikeOfProgramFromBuildInfo [ ] ;
3932- moduleAugmentations : ModuleNameOfProgramFromBuildInfo [ ] ;
3933+ moduleAugmentations : readonly ModuleNameOfProgramFromBuildInfo [ ] ;
39333934 ambientModuleNames : readonly string [ ] ;
39343935 hasNoDefaultLib : boolean ;
39353936
39363937 resolvedModules ?: ESMap < string , ResolvedModuleWithFailedLookupLocations > ;
3937- resolvedTypeReferenceDirectiveNames : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3938+ resolvedTypeReferenceDirectiveNames ? : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
39383939 redirectInfo ?: RedirectInfoOfProgramFromBuildInfo ;
39393940 }
39403941
@@ -3944,20 +3945,19 @@ namespace ts {
39443945
39453946 getCompilerOptions ( ) : CompilerOptions ;
39463947 getRootFileNames ( ) : readonly string [ ] ;
3947- getSourceFiles ( ) : SourceFileOfProgramFromBuildInfo [ ] ;
3948+ getSourceFiles ( ) : readonly SourceFileOfProgramFromBuildInfo [ ] ;
39483949 getSourceFileByPath ( path : Path ) : SourceFileOfProgramFromBuildInfo | undefined ;
39493950 getProjectReferences ( ) : readonly ProjectReference [ ] | undefined ;
3950- getResolvedProjectReferences ( ) : readonly ResolvedProjectReferenceOfProgramFromBuildInfo [ ] | undefined ;
3951+ getResolvedProjectReferences ( ) : readonly ( ResolvedProjectReferenceOfProgramFromBuildInfo | undefined ) [ ] | undefined ;
39513952 getMissingFilePaths ( ) : readonly Path [ ] ;
39523953 getFileIncludeReasons ( ) : MultiMap < Path , FileIncludeReason > ;
39533954 getResolvedTypeReferenceDirectives ( ) : ESMap < string , ResolvedTypeReferenceDirectiveWithFailedLookupLocations > ;
3954- getFilesByNameMap ( ) : ESMap < Path , Path | false | 0 > ;
3955+ getFilesByNameMap ( ) : ESMap < Path , SourceFileOfProgramFromBuildInfo | Path | typeof missingSourceOfProjectReferenceRedirect | typeof missingFile > ;
39553956 isSourceFileFromExternalLibraryPath ( path : Path ) : boolean ;
3956- getFileProcessingDiagnostics ( ) : readonly ReusableFilePreprocessingDiagnostics [ ] | undefined ;
3957+ getFileProcessingDiagnostics ( ) : FilePreprocessingDiagnostic [ ] | undefined ;
39573958
39583959 redirectTargetsMap : MultiMap < Path , string > ;
39593960 sourceFileToPackageName : ESMap < Path , string > ;
3960- structureIsReused ?: StructureIsReused ;
39613961 }
39623962
39633963 /*@internal */
@@ -3978,7 +3978,7 @@ namespace ts {
39783978 }
39793979
39803980 /*@internal */
3981- export type ReusableFilePreprocessingDiagnostics = ReusableFilePreprocessingReferencedDiagnostic | ReusableFilePreprocessingFileExplainingDiagnostic ;
3981+ export type ReusableFilePreprocessingDiagnostic = ReusableFilePreprocessingReferencedDiagnostic | ReusableFilePreprocessingFileExplainingDiagnostic ;
39823982
39833983 /* @internal */
39843984 export type RedirectTargetsMap = ReadonlyESMap < Path , readonly string [ ] > ;
0 commit comments