(cache, resolution)
| 20438 | hasProcessedResolutions: function () { return hasProcessedResolutions; }, |
| 20439 | }; |
| 20440 | function processResolution(cache, resolution) { |
| 20441 | if (!resolution || !resolution.originalPath || !resolution.resolvedFileName) |
| 20442 | return; |
| 20443 | var resolvedFileName = resolution.resolvedFileName, originalPath = resolution.originalPath; |
| 20444 | cache.setSymlinkedFile(ts.toPath(originalPath, cwd, getCanonicalFileName), resolvedFileName); |
| 20445 | var _a = guessDirectorySymlink(resolvedFileName, originalPath, cwd, getCanonicalFileName) || ts.emptyArray, commonResolved = _a[0], commonOriginal = _a[1]; |
| 20446 | if (commonResolved && commonOriginal) { |
| 20447 | cache.setSymlinkedDirectory(commonOriginal, { real: commonResolved, realPath: ts.toPath(commonResolved, cwd, getCanonicalFileName) }); |
| 20448 | } |
| 20449 | } |
| 20450 | } |
| 20451 | ts.createSymlinkCache = createSymlinkCache; |
| 20452 | function guessDirectorySymlink(a, b, cwd, getCanonicalFileName) { |
no test coverage detected