(directoryPathOrUrl, relativeOrAbsolutePath, currentDirectory, getCanonicalFileName, isAbsolutePathAnUrl)
| 8190 | } |
| 8191 | ts.getRelativePathFromFile = getRelativePathFromFile; |
| 8192 | function getRelativePathToDirectoryOrUrl(directoryPathOrUrl, relativeOrAbsolutePath, currentDirectory, getCanonicalFileName, isAbsolutePathAnUrl) { |
| 8193 | var pathComponents = getPathComponentsRelativeTo(resolvePath(currentDirectory, directoryPathOrUrl), resolvePath(currentDirectory, relativeOrAbsolutePath), ts.equateStringsCaseSensitive, getCanonicalFileName); |
| 8194 | var firstComponent = pathComponents[0]; |
| 8195 | if (isAbsolutePathAnUrl && isRootedDiskPath(firstComponent)) { |
| 8196 | var prefix = firstComponent.charAt(0) === ts.directorySeparator ? "file://" : "file:///"; |
| 8197 | pathComponents[0] = prefix + firstComponent; |
| 8198 | } |
| 8199 | return getPathFromPathComponents(pathComponents); |
| 8200 | } |
| 8201 | ts.getRelativePathToDirectoryOrUrl = getRelativePathToDirectoryOrUrl; |
| 8202 | function forEachAncestorDirectory(directory, callback) { |
| 8203 | while (true) { |
no test coverage detected
searching dependent graphs…