/third_party/typescript/src/testRunner/unittests/ |
D | paths.ts | 271 assert.strictEqual(ts.getRelativePathFromDirectory("/", "/", /*ignoreCase*/ false), ""); 272 assert.strictEqual(ts.getRelativePathFromDirectory("/a", "/a", /*ignoreCase*/ false), ""); 273 assert.strictEqual(ts.getRelativePathFromDirectory("/a/", "/a", /*ignoreCase*/ false), ""); 274 assert.strictEqual(ts.getRelativePathFromDirectory("/a", "/", /*ignoreCase*/ false), ".."); 275 … assert.strictEqual(ts.getRelativePathFromDirectory("/a", "/b", /*ignoreCase*/ false), "../b"); 276 …assert.strictEqual(ts.getRelativePathFromDirectory("/a/b", "/b", /*ignoreCase*/ false), "../../b"); 277 …assert.strictEqual(ts.getRelativePathFromDirectory("/a/b/c", "/b", /*ignoreCase*/ false), "../../.… 278 …assert.strictEqual(ts.getRelativePathFromDirectory("/a/b/c", "/b/c", /*ignoreCase*/ false), "../..… 279 … assert.strictEqual(ts.getRelativePathFromDirectory("/a/b/c", "/a/b", /*ignoreCase*/ false), ".."); 280 … assert.strictEqual(ts.getRelativePathFromDirectory("c:", "d:", /*ignoreCase*/ false), "d:/"); [all …]
|
/third_party/typescript/src/compiler/ |
D | path.ts | 802 …export function getRelativePathFromDirectory(from: string, to: string, ignoreCase: boolean): strin… function 806 …export function getRelativePathFromDirectory(fromDirectory: string, to: string, getCanonicalFileNa… 807 …export function getRelativePathFromDirectory(fromDirectory: string, to: string, getCanonicalFileNa… 822 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanon…
|
D | moduleSpecifiers.ts | 183 …removeExtensionAndIndexPostFix(ensurePathIsNonModuleName(getRelativePathFromDirectory(sourceDirect… 314 … const relative = getRelativePathFromDirectory(realPathDirectory, target, getCanonicalFileName); 465 …ormalizedSourcePath !== undefined ? ensurePathIsNonModuleName(getRelativePathFromDirectory(normali…
|
D | emitter.ts | 68 …resolvePath(options.outDir, getRelativePathFromDirectory(options.rootDir, configFileExtensionLess,… 137 …getRelativePathFromDirectory(getCommonSourceDirectory ? getCommonSourceDirectory() : getCommonSour… 376 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory!, path, host.getC… 746 sourceFile.fileName = getRelativePathFromDirectory(
|
D | builder.ts | 777 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(buildInfoDirectory, path, getCanonic…
|
D | moduleNameResolver.ts | 1251 …const moduleName = getRelativePathFromDirectory(candidate, packageFile || indexPath, /*ignoreCase*…
|
/third_party/typescript/src/services/ |
D | getEditsForFileRename.ts | 115 … return getRelativePathFromDirectory(configDir, path, /*ignoreCase*/ !useCaseSensitiveFileNames); 144 …bsolute === undefined ? undefined : ensurePathIsNonModuleName(getRelativePathFromDirectory(newImpo…
|
/third_party/typescript/src/harness/ |
D | vpathUtil.ts | 21 export import relative = ts.getRelativePathFromDirectory;
|
/third_party/typescript/lib/ |
D | tsc.js | 3665 function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { function 3672 ts.getRelativePathFromDirectory = getRelativePathFromDirectory; 3680 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanon… 32748 … var moduleName = ts.getRelativePathFromDirectory(candidate, packageFile || indexPath, false); 82238 …ts.resolvePath(options.outDir, ts.getRelativePathFromDirectory(options.rootDir, configFileExtensio… 82295 …ts.resolvePath(outputDir, ts.getRelativePathFromDirectory(getCommonSourceDirectory ? getCommonSour… 82493 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, host… 82764 …sourceFile.fileName = ts.getRelativePathFromDirectory(host.getCurrentDirectory(), ts.getNormalized… 90901 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, getC… 91995 …emoveExtensionAndIndexPostFix(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceD… [all …]
|
D | typingsInstaller.js | 6161 function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { function 6168 ts.getRelativePathFromDirectory = getRelativePathFromDirectory; 6176 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanon… 40146 …var moduleName = ts.getRelativePathFromDirectory(candidate, packageFile || indexPath, /*ignoreCase… 100749 …ts.resolvePath(options.outDir, ts.getRelativePathFromDirectory(options.rootDir, configFileExtensio… 100814 …ts.resolvePath(outputDir, ts.getRelativePathFromDirectory(getCommonSourceDirectory ? getCommonSour… 101025 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, host… 101328 …sourceFile.fileName = ts.getRelativePathFromDirectory(host.getCurrentDirectory(), ts.getNormalized… 110524 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, getC… 111806 …emoveExtensionAndIndexPostFix(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceD… [all …]
|
D | typescriptServices.js | 6366 function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { function 6373 ts.getRelativePathFromDirectory = getRelativePathFromDirectory; 6381 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanon… 40351 …var moduleName = ts.getRelativePathFromDirectory(candidate, packageFile || indexPath, /*ignoreCase… 100954 …ts.resolvePath(options.outDir, ts.getRelativePathFromDirectory(options.rootDir, configFileExtensio… 101019 …ts.resolvePath(outputDir, ts.getRelativePathFromDirectory(getCommonSourceDirectory ? getCommonSour… 101230 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, host… 101533 …sourceFile.fileName = ts.getRelativePathFromDirectory(host.getCurrentDirectory(), ts.getNormalized… 110729 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, getC… 112011 …emoveExtensionAndIndexPostFix(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceD… [all …]
|
D | tsserverlibrary.js | 6366 function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { function 6373 ts.getRelativePathFromDirectory = getRelativePathFromDirectory; 6381 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanon… 40351 …var moduleName = ts.getRelativePathFromDirectory(candidate, packageFile || indexPath, /*ignoreCase… 100954 …ts.resolvePath(options.outDir, ts.getRelativePathFromDirectory(options.rootDir, configFileExtensio… 101019 …ts.resolvePath(outputDir, ts.getRelativePathFromDirectory(getCommonSourceDirectory ? getCommonSour… 101230 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, host… 101533 …sourceFile.fileName = ts.getRelativePathFromDirectory(host.getCurrentDirectory(), ts.getNormalized… 110729 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, getC… 112011 …emoveExtensionAndIndexPostFix(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceD… [all …]
|
D | tsserver.js | 6172 function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { function 6179 ts.getRelativePathFromDirectory = getRelativePathFromDirectory; 6187 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanon… 40157 …var moduleName = ts.getRelativePathFromDirectory(candidate, packageFile || indexPath, /*ignoreCase… 100760 …ts.resolvePath(options.outDir, ts.getRelativePathFromDirectory(options.rootDir, configFileExtensio… 100825 …ts.resolvePath(outputDir, ts.getRelativePathFromDirectory(getCommonSourceDirectory ? getCommonSour… 101036 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, host… 101339 …sourceFile.fileName = ts.getRelativePathFromDirectory(host.getCurrentDirectory(), ts.getNormalized… 110535 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, getC… 111817 …emoveExtensionAndIndexPostFix(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceD… [all …]
|
D | typescript.js | 6366 function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) { function 6373 ts.getRelativePathFromDirectory = getRelativePathFromDirectory; 6381 …return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanon… 40351 …var moduleName = ts.getRelativePathFromDirectory(candidate, packageFile || indexPath, /*ignoreCase… 100954 …ts.resolvePath(options.outDir, ts.getRelativePathFromDirectory(options.rootDir, configFileExtensio… 101019 …ts.resolvePath(outputDir, ts.getRelativePathFromDirectory(getCommonSourceDirectory ? getCommonSour… 101230 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, host… 101533 …sourceFile.fileName = ts.getRelativePathFromDirectory(host.getCurrentDirectory(), ts.getNormalized… 110729 …return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, getC… 112011 …emoveExtensionAndIndexPostFix(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceD… [all …]
|