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

Function getOwnEmitOutputFilePath

test/fixtures/snapshot/typescript.js:18406–18416  ·  view source on GitHub ↗
(fileName, host, extension)

Source from the content-addressed store, hash-verified

18404 }
18405 ts.getExternalModuleNameFromPath = getExternalModuleNameFromPath;
18406 function getOwnEmitOutputFilePath(fileName, host, extension) {
18407 var compilerOptions = host.getCompilerOptions();
18408 var emitOutputFilePathWithoutExtension;
18409 if (compilerOptions.outDir) {
18410 emitOutputFilePathWithoutExtension = removeFileExtension(getSourceFilePathInNewDir(fileName, host, compilerOptions.outDir));
18411 }
18412 else {
18413 emitOutputFilePathWithoutExtension = removeFileExtension(fileName);
18414 }
18415 return emitOutputFilePathWithoutExtension + extension;
18416 }
18417 ts.getOwnEmitOutputFilePath = getOwnEmitOutputFilePath;
18418 function getDeclarationEmitOutputFilePath(fileName, host) {
18419 return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host.getCurrentDirectory(), host.getCommonSourceDirectory(), function (f) { return host.getCanonicalFileName(f); });

Callers

nothing calls this directly

Calls 2

removeFileExtensionFunction · 0.85

Tested by

no test coverage detected