* Parse a path into an array containing a root component (at index 0) and zero or more path * components (at indices > 0). The result is normalized. * If the path is relative, the root component is `""`. * If the path is absolute, the root component includes the first path separator (
(path, currentDirectory)
| 7970 | * ``` |
| 7971 | */ |
| 7972 | function getNormalizedPathComponents(path, currentDirectory) { |
| 7973 | return reducePathComponents(getPathComponents(path, currentDirectory)); |
| 7974 | } |
| 7975 | ts.getNormalizedPathComponents = getNormalizedPathComponents; |
| 7976 | function getNormalizedAbsolutePath(fileName, currentDirectory) { |
| 7977 | return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory)); |
no test coverage detected
searching dependent graphs…