@@ -7,12 +7,12 @@ import {
7
7
createBuildInfo , createGetCanonicalFileName , createProgram , CustomTransformers , Debug , Diagnostic ,
8
8
DiagnosticCategory , DiagnosticMessageChain , DiagnosticRelatedInformation , DiagnosticWithLocation ,
9
9
EmitAndSemanticDiagnosticsBuilderProgram , EmitOnly , EmitResult , emitSkippedWithNoDiagnostics , emptyArray ,
10
- ensurePathIsNonModuleName , ESMap , filterSemanticDiagnostics , forEach , forEachEntry , forEachKey , generateDjb2Hash ,
10
+ ensurePathIsNonModuleName , filterSemanticDiagnostics , forEach , forEachEntry , forEachKey , generateDjb2Hash ,
11
11
GetCanonicalFileName , getDirectoryPath , getEmitDeclarations , getNormalizedAbsolutePath , getOptionsNameMap ,
12
12
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 ,
16
16
sourceFileMayBeEmitted , SourceMapEmitResult , toPath , tryAddToSet , WriteFileCallback , WriteFileCallbackData ,
17
17
} from "./_namespaces/ts" ;
18
18
@@ -51,7 +51,7 @@ export interface ReusableBuilderProgramState extends BuilderState {
51
51
/**
52
52
* Cache of bind and check diagnostics for files with their Path being the key
53
53
*/
54
- semanticDiagnosticsPerFile ?: ESMap < Path , readonly ReusableDiagnostic [ ] | readonly Diagnostic [ ] > | undefined ;
54
+ semanticDiagnosticsPerFile ?: Map < Path , readonly ReusableDiagnostic [ ] | readonly Diagnostic [ ] > | undefined ;
55
55
/**
56
56
* The map has key by source file's path that has been changed
57
57
*/
@@ -67,7 +67,7 @@ export interface ReusableBuilderProgramState extends BuilderState {
67
67
/**
68
68
* Files pending to be emitted
69
69
*/
70
- affectedFilesPendingEmit ?: ReadonlyESMap < Path , BuilderFileEmit > ;
70
+ affectedFilesPendingEmit ?: ReadonlyMap < Path , BuilderFileEmit > ;
71
71
/**
72
72
* emitKind pending for a program with --out
73
73
*/
@@ -79,7 +79,7 @@ export interface ReusableBuilderProgramState extends BuilderState {
79
79
/**
80
80
* Hash of d.ts emitted for the file, use to track when emit of d.ts changes
81
81
*/
82
- emitSignatures ?: ESMap < Path , EmitSignature > ;
82
+ emitSignatures ?: Map < Path , EmitSignature > ;
83
83
/**
84
84
* Hash of d.ts emit with --out
85
85
*/
@@ -118,7 +118,7 @@ export interface BuilderProgramState extends BuilderState, ReusableBuilderProgra
118
118
/**
119
119
* Cache of bind and check diagnostics for files with their Path being the key
120
120
*/
121
- semanticDiagnosticsPerFile : ESMap < Path , readonly Diagnostic [ ] > | undefined ;
121
+ semanticDiagnosticsPerFile : Map < Path , readonly Diagnostic [ ] > | undefined ;
122
122
/**
123
123
* The map has key by source file's path that has been changed
124
124
*/
@@ -154,15 +154,15 @@ export interface BuilderProgramState extends BuilderState, ReusableBuilderProgra
154
154
/**
155
155
* Files pending to be emitted
156
156
*/
157
- affectedFilesPendingEmit ?: ESMap < Path , BuilderFileEmit > ;
157
+ affectedFilesPendingEmit ?: Map < Path , BuilderFileEmit > ;
158
158
/**
159
159
* true if build info is emitted
160
160
*/
161
161
buildInfoEmitPending : boolean ;
162
162
/**
163
163
* Already seen emitted files
164
164
*/
165
- seenEmittedFiles : ESMap < Path , BuilderFileEmit > | undefined ;
165
+ seenEmittedFiles : Map < Path , BuilderFileEmit > | undefined ;
166
166
/** Stores list of files that change signature during emit - test only */
167
167
filesChangingSignature ?: Set < Path > ;
168
168
}
@@ -954,7 +954,7 @@ function getBuildInfo(state: BuilderProgramState, getCanonicalFileName: GetCanon
954
954
}
955
955
956
956
let fileIdsList : ( readonly ProgramBuildInfoFileId [ ] ) [ ] | undefined ;
957
- let fileNamesToFileIdListId : ESMap < string , ProgramBuildInfoFileIdListId > | undefined ;
957
+ let fileNamesToFileIdListId : Map < string , ProgramBuildInfoFileIdListId > | undefined ;
958
958
let emitSignatures : ProgramBuildInfoEmitSignature [ ] | undefined ;
959
959
const fileInfos = arrayFrom ( state . fileInfos . entries ( ) , ( [ key , value ] ) : ProgramMultiFileEmitBuildInfoFileInfo => {
960
960
// Ensure fileId
@@ -1733,7 +1733,7 @@ export function getBuildInfoFileVersionMap(
1733
1733
program : ProgramBuildInfo ,
1734
1734
buildInfoPath : string ,
1735
1735
host : Pick < ReadBuildProgramHost , "useCaseSensitiveFileNames" | "getCurrentDirectory" >
1736
- ) : ESMap < Path , string > {
1736
+ ) : Map < Path , string > {
1737
1737
const buildInfoDirectory = getDirectoryPath ( getNormalizedAbsolutePath ( buildInfoPath , host . getCurrentDirectory ( ) ) ) ;
1738
1738
const getCanonicalFileName = createGetCanonicalFileName ( host . useCaseSensitiveFileNames ( ) ) ;
1739
1739
const fileInfos = new Map < Path , string > ( ) ;
0 commit comments