| 20741 | return basePaths; |
| 20742 | } |
| 20743 | function getIncludeBasePath(absolute) { |
| 20744 | var wildcardOffset = ts.indexOfAnyCharCode(absolute, wildcardCharCodes); |
| 20745 | if (wildcardOffset < 0) { |
| 20746 | // No "*" or "?" in the path |
| 20747 | return !ts.hasExtension(absolute) |
| 20748 | ? absolute |
| 20749 | : ts.removeTrailingDirectorySeparator(ts.getDirectoryPath(absolute)); |
| 20750 | } |
| 20751 | return absolute.substring(0, absolute.lastIndexOf(ts.directorySeparator, wildcardOffset)); |
| 20752 | } |
| 20753 | function ensureScriptKind(fileName, scriptKind) { |
| 20754 | // Using scriptKind as a condition handles both: |
| 20755 | // - 'scriptKind' is unspecified and thus it is `undefined` |