mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 00:55:01 -06:00
optimization, reduce memory usage (#61822)
This commit is contained in:
parent
355b9e0984
commit
97cfa26f2a
@ -4986,8 +4986,8 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host: HostForUseSource
|
||||
|
||||
function fileOrDirectoryExistsUsingSource(fileOrDirectory: string, isFile: boolean): boolean {
|
||||
const fileOrDirectoryExistsUsingSource = isFile ?
|
||||
(file: string) => fileExistsIfProjectReferenceDts(file) :
|
||||
(dir: string) => directoryExistsIfProjectReferenceDeclDir(dir);
|
||||
fileExistsIfProjectReferenceDts :
|
||||
directoryExistsIfProjectReferenceDeclDir;
|
||||
// Check current directory or file
|
||||
const result = fileOrDirectoryExistsUsingSource(fileOrDirectory);
|
||||
if (result !== undefined) return result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user