@@ -69,11 +69,11 @@ namespace ts {
69
69
/**
70
70
* Cache of all files excluding default library file for the current program
71
71
*/
72
- allFilesExcludingDefaultLibraryFile ?: ReadonlyArray < SourceFile > ;
72
+ allFilesExcludingDefaultLibraryFile ?: readonly SourceFile [ ] ;
73
73
/**
74
74
* Cache of all the file names
75
75
*/
76
- allFileNames ?: ReadonlyArray < string > ;
76
+ allFileNames ?: readonly string [ ] ;
77
77
}
78
78
79
79
export function cloneMapOrUndefined < T > ( map : ReadonlyMap < T > | undefined ) {
@@ -286,7 +286,7 @@ namespace ts.BuilderState {
286
286
/**
287
287
* Gets the files affected by the path from the program
288
288
*/
289
- export function getFilesAffectedBy ( state : BuilderState , programOfThisState : Program , path : Path , cancellationToken : CancellationToken | undefined , computeHash : ComputeHash , cacheToUpdateSignature ?: Map < string > , exportedModulesMapCache ?: ComputingExportedModulesMap ) : ReadonlyArray < SourceFile > {
289
+ export function getFilesAffectedBy ( state : BuilderState , programOfThisState : Program , path : Path , cancellationToken : CancellationToken | undefined , computeHash : ComputeHash , cacheToUpdateSignature ?: Map < string > , exportedModulesMapCache ?: ComputingExportedModulesMap ) : readonly SourceFile [ ] {
290
290
// Since the operation could be cancelled, the signatures are always stored in the cache
291
291
// They will be committed once it is safe to use them
292
292
// eg when calling this api from tsserver, if there is no cancellation of the operation
@@ -407,7 +407,7 @@ namespace ts.BuilderState {
407
407
/**
408
408
* Get all the dependencies of the sourceFile
409
409
*/
410
- export function getAllDependencies ( state : BuilderState , programOfThisState : Program , sourceFile : SourceFile ) : ReadonlyArray < string > {
410
+ export function getAllDependencies ( state : BuilderState , programOfThisState : Program , sourceFile : SourceFile ) : readonly string [ ] {
411
411
const compilerOptions = programOfThisState . getCompilerOptions ( ) ;
412
412
// With --out or --outFile all outputs go into single file, all files depend on each other
413
413
if ( compilerOptions . outFile || compilerOptions . out ) {
@@ -445,7 +445,7 @@ namespace ts.BuilderState {
445
445
/**
446
446
* Gets the names of all files from the program
447
447
*/
448
- function getAllFileNames ( state : BuilderState , programOfThisState : Program ) : ReadonlyArray < string > {
448
+ function getAllFileNames ( state : BuilderState , programOfThisState : Program ) : readonly string [ ] {
449
449
if ( ! state . allFileNames ) {
450
450
const sourceFiles = programOfThisState . getSourceFiles ( ) ;
451
451
state . allFileNames = sourceFiles === emptyArray ? emptyArray : sourceFiles . map ( file => file . fileName ) ;
@@ -496,7 +496,7 @@ namespace ts.BuilderState {
496
496
/**
497
497
* Gets all files of the program excluding the default library file
498
498
*/
499
- function getAllFilesExcludingDefaultLibraryFile ( state : BuilderState , programOfThisState : Program , firstSourceFile : SourceFile ) : ReadonlyArray < SourceFile > {
499
+ function getAllFilesExcludingDefaultLibraryFile ( state : BuilderState , programOfThisState : Program , firstSourceFile : SourceFile ) : readonly SourceFile [ ] {
500
500
// Use cached result
501
501
if ( state . allFilesExcludingDefaultLibraryFile ) {
502
502
return state . allFilesExcludingDefaultLibraryFile ;
0 commit comments