(fileName, newDirPath, currentDirectory, commonSourceDirectory, getCanonicalFileName)
| 18498 | } |
| 18499 | ts.getSourceFilePathInNewDir = getSourceFilePathInNewDir; |
| 18500 | function getSourceFilePathInNewDirWorker(fileName, newDirPath, currentDirectory, commonSourceDirectory, getCanonicalFileName) { |
| 18501 | var sourceFilePath = ts.getNormalizedAbsolutePath(fileName, currentDirectory); |
| 18502 | var isSourceFileInCommonSourceDirectory = getCanonicalFileName(sourceFilePath).indexOf(getCanonicalFileName(commonSourceDirectory)) === 0; |
| 18503 | sourceFilePath = isSourceFileInCommonSourceDirectory ? sourceFilePath.substring(commonSourceDirectory.length) : sourceFilePath; |
| 18504 | return ts.combinePaths(newDirPath, sourceFilePath); |
| 18505 | } |
| 18506 | ts.getSourceFilePathInNewDirWorker = getSourceFilePathInNewDirWorker; |
| 18507 | function writeFile(host, diagnostics, fileName, text, writeByteOrderMark, sourceFiles, data) { |
| 18508 | host.writeFile(fileName, text, writeByteOrderMark, function (hostErrorMessage) { |
no test coverage detected