From 024a09b94716e985a48abee6ec4718acaf777121 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Wed, 5 Aug 2020 05:30:59 +0000 Subject: [PATCH] Update LKG --- lib/tsc.js | 6 +++--- lib/tsserver.js | 6 +++--- lib/tsserverlibrary.js | 6 +++--- lib/typescript.js | 6 +++--- lib/typescriptServices.js | 6 +++--- lib/typingsInstaller.js | 6 +++--- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/tsc.js b/lib/tsc.js index ed478d835c9..8ed94814ec5 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -87712,7 +87712,7 @@ var ts; perDirectoryResolution.set(name, resolution); } resolutionsInFile.set(name, resolution); - watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, noResolveResolution); + watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName); if (existingResolution) { stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); } @@ -87835,14 +87835,14 @@ var ts; function isPathWithDefaultFailedLookupExtension(path) { return ts.fileExtensionIsOneOf(path, failedLookupDefaultExtensions); } - function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, noResolveResolution) { + function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) { if (resolution.refCount) { resolution.refCount++; ts.Debug.assertDefined(resolution.files); } else { resolution.refCount = 1; - ts.Debug.assert(resolution.files === undefined || (resolution === noResolveResolution && ts.length(noResolveResolution.files) === 0)); + ts.Debug.assert(ts.length(resolution.files) === 0); if (ts.isExternalModuleNameRelative(name)) { watchFailedLookupLocationOfResolution(resolution); } diff --git a/lib/tsserver.js b/lib/tsserver.js index 0df27d7480d..005d6509a36 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -106972,7 +106972,7 @@ var ts; perDirectoryResolution.set(name, resolution); } resolutionsInFile.set(name, resolution); - watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, noResolveResolution); + watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName); if (existingResolution) { stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); } @@ -107103,14 +107103,14 @@ var ts; function isPathWithDefaultFailedLookupExtension(path) { return ts.fileExtensionIsOneOf(path, failedLookupDefaultExtensions); } - function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, noResolveResolution) { + function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) { if (resolution.refCount) { resolution.refCount++; ts.Debug.assertDefined(resolution.files); } else { resolution.refCount = 1; - ts.Debug.assert(resolution.files === undefined || (resolution === noResolveResolution && ts.length(noResolveResolution.files) === 0)); + ts.Debug.assert(ts.length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet if (ts.isExternalModuleNameRelative(name)) { watchFailedLookupLocationOfResolution(resolution); } diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index 22aafc034a6..9dca5f754d3 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -107166,7 +107166,7 @@ var ts; perDirectoryResolution.set(name, resolution); } resolutionsInFile.set(name, resolution); - watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, noResolveResolution); + watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName); if (existingResolution) { stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); } @@ -107297,14 +107297,14 @@ var ts; function isPathWithDefaultFailedLookupExtension(path) { return ts.fileExtensionIsOneOf(path, failedLookupDefaultExtensions); } - function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, noResolveResolution) { + function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) { if (resolution.refCount) { resolution.refCount++; ts.Debug.assertDefined(resolution.files); } else { resolution.refCount = 1; - ts.Debug.assert(resolution.files === undefined || (resolution === noResolveResolution && ts.length(noResolveResolution.files) === 0)); + ts.Debug.assert(ts.length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet if (ts.isExternalModuleNameRelative(name)) { watchFailedLookupLocationOfResolution(resolution); } diff --git a/lib/typescript.js b/lib/typescript.js index 17d0cccb744..987b6c39c75 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -107166,7 +107166,7 @@ var ts; perDirectoryResolution.set(name, resolution); } resolutionsInFile.set(name, resolution); - watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, noResolveResolution); + watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName); if (existingResolution) { stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); } @@ -107297,14 +107297,14 @@ var ts; function isPathWithDefaultFailedLookupExtension(path) { return ts.fileExtensionIsOneOf(path, failedLookupDefaultExtensions); } - function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, noResolveResolution) { + function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) { if (resolution.refCount) { resolution.refCount++; ts.Debug.assertDefined(resolution.files); } else { resolution.refCount = 1; - ts.Debug.assert(resolution.files === undefined || (resolution === noResolveResolution && ts.length(noResolveResolution.files) === 0)); + ts.Debug.assert(ts.length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet if (ts.isExternalModuleNameRelative(name)) { watchFailedLookupLocationOfResolution(resolution); } diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index c47133f64d4..3a18ca894f7 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -107166,7 +107166,7 @@ var ts; perDirectoryResolution.set(name, resolution); } resolutionsInFile.set(name, resolution); - watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, noResolveResolution); + watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName); if (existingResolution) { stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); } @@ -107297,14 +107297,14 @@ var ts; function isPathWithDefaultFailedLookupExtension(path) { return ts.fileExtensionIsOneOf(path, failedLookupDefaultExtensions); } - function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, noResolveResolution) { + function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) { if (resolution.refCount) { resolution.refCount++; ts.Debug.assertDefined(resolution.files); } else { resolution.refCount = 1; - ts.Debug.assert(resolution.files === undefined || (resolution === noResolveResolution && ts.length(noResolveResolution.files) === 0)); + ts.Debug.assert(ts.length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet if (ts.isExternalModuleNameRelative(name)) { watchFailedLookupLocationOfResolution(resolution); } diff --git a/lib/typingsInstaller.js b/lib/typingsInstaller.js index 7b09eb89478..e3bd36acb13 100644 --- a/lib/typingsInstaller.js +++ b/lib/typingsInstaller.js @@ -106961,7 +106961,7 @@ var ts; perDirectoryResolution.set(name, resolution); } resolutionsInFile.set(name, resolution); - watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, noResolveResolution); + watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName); if (existingResolution) { stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName); } @@ -107092,14 +107092,14 @@ var ts; function isPathWithDefaultFailedLookupExtension(path) { return ts.fileExtensionIsOneOf(path, failedLookupDefaultExtensions); } - function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName, noResolveResolution) { + function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) { if (resolution.refCount) { resolution.refCount++; ts.Debug.assertDefined(resolution.files); } else { resolution.refCount = 1; - ts.Debug.assert(resolution.files === undefined || (resolution === noResolveResolution && ts.length(noResolveResolution.files) === 0)); + ts.Debug.assert(ts.length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet if (ts.isExternalModuleNameRelative(name)) { watchFailedLookupLocationOfResolution(resolution); }