Skip to content

Commit f8ec54c

Browse files
committed
Rename setGetSourceFileAsHashVersioned
1 parent f82cb23 commit f8ec54c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/tsbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ namespace ts {
451451
let readFileWithCache = (f: string) => host.readFile(f);
452452
let projectCompilerOptions = baseCompilerOptions;
453453
const compilerHost = createCompilerHostFromProgramHost(host, () => projectCompilerOptions);
454-
setCreateSourceFileAsHashVersioned(compilerHost, host);
454+
setGetSourceFileAsHashVersioned(compilerHost, host);
455455

456456
const buildInfoChecked = createFileMap<true>(toPath);
457457

src/compiler/watch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ namespace ts {
275275
}
276276
}
277277

278-
export function setCreateSourceFileAsHashVersioned(compilerHost: CompilerHost, host: ProgramHost<any>) {
278+
export function setGetSourceFileAsHashVersioned(compilerHost: CompilerHost, host: ProgramHost<any>) {
279279
const originalGetSourceFile = compilerHost.getSourceFile;
280280
const computeHash = host.createHash || generateDjb2Hash;
281281
compilerHost.getSourceFile = (...args) => {
@@ -619,7 +619,7 @@ namespace ts {
619619
}
620620

621621
const compilerHost = createCompilerHostFromProgramHost(host, () => compilerOptions, directoryStructureHost) as CompilerHost & ResolutionCacheHost;
622-
setCreateSourceFileAsHashVersioned(compilerHost, host);
622+
setGetSourceFileAsHashVersioned(compilerHost, host);
623623
// Members for CompilerHost
624624
const getNewSourceFile = compilerHost.getSourceFile;
625625
compilerHost.getSourceFile = (fileName, ...args) => getVersionedSourceFileByPath(fileName, toPath(fileName), ...args);

0 commit comments

Comments
 (0)