MCPcopy Index your code
hub / github.com/angular/angular / stripExtension

Function stripExtension

packages/compiler-cli/src/ngtsc/file_system/src/util.ts:24–26  ·  view source on GitHub ↗
(path: T)

Source from the content-addressed store, hash-verified

22 * Remove a .ts, .d.ts, .tsx, or .js extension from a file name.
23 */
24export function stripExtension<T extends PathString>(path: T): T {
25 return path.replace(TS_DTS_TSX_JS_EXTENSION, '') as T;
26}
27
28export function getSourceFileOrError(program: ts.Program, fileName: AbsoluteFsPath): ts.SourceFile {
29 const sf = program.getSourceFile(fileName);

Callers 3

emitMethod · 0.90
relativePathBetweenFunction · 0.90

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…