MCPcopy Index your code
hub / github.com/nodejs/node / getIncludeBasePath

Function getIncludeBasePath

test/fixtures/snapshot/typescript.js:20743–20752  ·  view source on GitHub ↗
(absolute)

Source from the content-addressed store, hash-verified

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`

Callers 1

getBasePathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected