@@ -7,12 +7,12 @@ import {
77 createBuildInfo , createGetCanonicalFileName , createProgram , CustomTransformers , Debug , Diagnostic ,
88 DiagnosticCategory , DiagnosticMessageChain , DiagnosticRelatedInformation , DiagnosticWithLocation ,
99 EmitAndSemanticDiagnosticsBuilderProgram , EmitOnly , EmitResult , emitSkippedWithNoDiagnostics , emptyArray ,
10- ensurePathIsNonModuleName , ESMap , filterSemanticDiagnostics , forEach , forEachEntry , forEachKey , generateDjb2Hash ,
10+ ensurePathIsNonModuleName , filterSemanticDiagnostics , forEach , forEachEntry , forEachKey , generateDjb2Hash ,
1111 GetCanonicalFileName , getDirectoryPath , getEmitDeclarations , getNormalizedAbsolutePath , getOptionsNameMap ,
1212 getOwnKeys , getRelativePathFromDirectory , getTsBuildInfoEmitOutputFilePath , handleNoEmitOptions , isArray ,
13- isDeclarationFileName , isJsonSourceFile , isNumber , isString , map , Map , mapDefined , maybeBind , noop , notImplemented ,
14- outFile , Path , Program , ProjectReference , ReadBuildProgramHost , ReadonlyCollection , ReadonlyESMap , ReadonlySet ,
15- returnFalse , returnUndefined , SemanticDiagnosticsBuilderProgram , Set , skipTypeChecking , some , SourceFile ,
13+ isDeclarationFileName , isJsonSourceFile , isNumber , isString , map , mapDefined , maybeBind , noop , notImplemented ,
14+ outFile , Path , Program , ProjectReference , ReadBuildProgramHost , ReadonlyCollection ,
15+ returnFalse , returnUndefined , SemanticDiagnosticsBuilderProgram , skipTypeChecking , some , SourceFile ,
1616 sourceFileMayBeEmitted , SourceMapEmitResult , toPath , tryAddToSet , WriteFileCallback , WriteFileCallbackData ,
1717} from "./_namespaces/ts" ;
1818
@@ -51,7 +51,7 @@ export interface ReusableBuilderProgramState extends BuilderState {
5151 /**
5252 * Cache of bind and check diagnostics for files with their Path being the key
5353 */
54- semanticDiagnosticsPerFile ?: ESMap < Path , readonly ReusableDiagnostic [ ] | readonly Diagnostic [ ] > | undefined ;
54+ semanticDiagnosticsPerFile ?: Map < Path , readonly ReusableDiagnostic [ ] | readonly Diagnostic [ ] > | undefined ;
5555 /**
5656 * The map has key by source file's path that has been changed
5757 */
@@ -67,7 +67,7 @@ export interface ReusableBuilderProgramState extends BuilderState {
6767 /**
6868 * Files pending to be emitted
6969 */
70- affectedFilesPendingEmit ?: ReadonlyESMap < Path , BuilderFileEmit > ;
70+ affectedFilesPendingEmit ?: ReadonlyMap < Path , BuilderFileEmit > ;
7171 /**
7272 * emitKind pending for a program with --out
7373 */
@@ -79,7 +79,7 @@ export interface ReusableBuilderProgramState extends BuilderState {
7979 /**
8080 * Hash of d.ts emitted for the file, use to track when emit of d.ts changes
8181 */
82- emitSignatures ?: ESMap < Path , EmitSignature > ;
82+ emitSignatures ?: Map < Path , EmitSignature > ;
8383 /**
8484 * Hash of d.ts emit with --out
8585 */
@@ -118,7 +118,7 @@ export interface BuilderProgramState extends BuilderState, ReusableBuilderProgra
118118 /**
119119 * Cache of bind and check diagnostics for files with their Path being the key
120120 */
121- semanticDiagnosticsPerFile : ESMap < Path , readonly Diagnostic [ ] > | undefined ;
121+ semanticDiagnosticsPerFile : Map < Path , readonly Diagnostic [ ] > | undefined ;
122122 /**
123123 * The map has key by source file's path that has been changed
124124 */
@@ -154,15 +154,15 @@ export interface BuilderProgramState extends BuilderState, ReusableBuilderProgra
154154 /**
155155 * Files pending to be emitted
156156 */
157- affectedFilesPendingEmit ?: ESMap < Path , BuilderFileEmit > ;
157+ affectedFilesPendingEmit ?: Map < Path , BuilderFileEmit > ;
158158 /**
159159 * true if build info is emitted
160160 */
161161 buildInfoEmitPending : boolean ;
162162 /**
163163 * Already seen emitted files
164164 */
165- seenEmittedFiles : ESMap < Path , BuilderFileEmit > | undefined ;
165+ seenEmittedFiles : Map < Path , BuilderFileEmit > | undefined ;
166166 /** Stores list of files that change signature during emit - test only */
167167 filesChangingSignature ?: Set < Path > ;
168168}
@@ -954,7 +954,7 @@ function getBuildInfo(state: BuilderProgramState, getCanonicalFileName: GetCanon
954954 }
955955
956956 let fileIdsList : ( readonly ProgramBuildInfoFileId [ ] ) [ ] | undefined ;
957- let fileNamesToFileIdListId : ESMap < string , ProgramBuildInfoFileIdListId > | undefined ;
957+ let fileNamesToFileIdListId : Map < string , ProgramBuildInfoFileIdListId > | undefined ;
958958 let emitSignatures : ProgramBuildInfoEmitSignature [ ] | undefined ;
959959 const fileInfos = arrayFrom ( state . fileInfos . entries ( ) , ( [ key , value ] ) : ProgramMultiFileEmitBuildInfoFileInfo => {
960960 // Ensure fileId
@@ -1733,7 +1733,7 @@ export function getBuildInfoFileVersionMap(
17331733 program : ProgramBuildInfo ,
17341734 buildInfoPath : string ,
17351735 host : Pick < ReadBuildProgramHost , "useCaseSensitiveFileNames" | "getCurrentDirectory" >
1736- ) : ESMap < Path , string > {
1736+ ) : Map < Path , string > {
17371737 const buildInfoDirectory = getDirectoryPath ( getNormalizedAbsolutePath ( buildInfoPath , host . getCurrentDirectory ( ) ) ) ;
17381738 const getCanonicalFileName = createGetCanonicalFileName ( host . useCaseSensitiveFileNames ( ) ) ;
17391739 const fileInfos = new Map < Path , string > ( ) ;
0 commit comments