* Formats a parsed path consisting of a root component (at index 0) and zero or more path * segments (at indices > 0). * * ```ts * getPathFromPathComponents(["/", "path", "to", "file.ext"]) === "/path/to/file.ext" * ```
(pathComponents)
| 7853 | * ``` |
| 7854 | */ |
| 7855 | function getPathFromPathComponents(pathComponents) { |
| 7856 | if (pathComponents.length === 0) |
| 7857 | return ""; |
| 7858 | var root = pathComponents[0] && ensureTrailingDirectorySeparator(pathComponents[0]); |
| 7859 | return root + pathComponents.slice(1).join(ts.directorySeparator); |
| 7860 | } |
| 7861 | ts.getPathFromPathComponents = getPathFromPathComponents; |
| 7862 | //// Path Normalization |
| 7863 | /** |
no test coverage detected
searching dependent graphs…