/third_party/typescript/src/testRunner/unittests/ |
D | paths.ts | 9 assert.strictEqual(ts.getRootLength("a"), 0); 10 assert.strictEqual(ts.getRootLength("/"), 1); 11 assert.strictEqual(ts.getRootLength("/path"), 1); 12 assert.strictEqual(ts.getRootLength("c:"), 2); 13 assert.strictEqual(ts.getRootLength("c:d"), 0); 14 assert.strictEqual(ts.getRootLength("c:/"), 3); 15 assert.strictEqual(ts.getRootLength("c:\\"), 3); 16 assert.strictEqual(ts.getRootLength("//server"), 8); 17 assert.strictEqual(ts.getRootLength("//server/share"), 9); 18 assert.strictEqual(ts.getRootLength("\\\\server"), 8); [all …]
|
D | moduleResolution.ts | 106 …failedLookupLocations.push(normalizePath(getRootLength(moduleName) === 0 ? combinePaths(dir, modul…
|
/third_party/typescript/src/compiler/ |
D | path.ts | 206 export function getRootLength(path: string) { function 267 const rootLength = getRootLength(path); 323 const rootLength = getRootLength(path); 329 … const name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(directorySeparator) + 1)); 429 return pathComponents(path, getRootLength(path)); 506 if (!path || getRootLength(relativePath) !== 0) { 670 const aRoot = a.substring(0, getRootLength(a)); 671 const bRoot = b.substring(0, getRootLength(b)); 808 …Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either bo…
|
D | resolutionCache.ts | 101 const rootLength = getRootLength(dirPath);
|
D | sys.ts | 1372 … const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
|
D | moduleNameResolver.ts | 627 const rootLength = getRootLength(directory);
|
D | emitter.ts | 621 if (getRootLength(sourceMapDir) === 0) { 646 if (getRootLength(sourceMapDir) === 0) {
|
D | program.ts | 3262 … if (options.outDir && dir === "" && files.some(file => getRootLength(file.fileName) > 1)) {
|
D | utilities.ts | 4434 … if (directoryPath.length > getRootLength(directoryPath) && !directoryExists(directoryPath)) {
|
/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | watchEnvironment.ts | 219 const windowsStyleRoot = path.substr(0, getRootLength(path));
|
/third_party/typescript/src/tsserver/ |
D | nodeServer.ts | 437 const rootLength = getRootLength(path);
|
/third_party/typescript/lib/ |
D | tsc.js | 3358 function getRootLength(path) { function 3362 ts.getRootLength = getRootLength; 3365 var rootLength = getRootLength(path); 3374 var rootLength = getRootLength(path); 3378 … var name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(ts.directorySeparator) + 1)); 3427 return pathComponents(path, getRootLength(path)); 3478 if (!path || getRootLength(relativePath) !== 0) { 3569 var aRoot = a.substring(0, getRootLength(a)); 3570 var bRoot = b.substring(0, getRootLength(b)); 3666 …ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either… [all …]
|
D | typingsInstaller.js | 5729 function getRootLength(path) { function 5733 ts.getRootLength = getRootLength; 5737 var rootLength = getRootLength(path); 5749 var rootLength = getRootLength(path); 5755 … var name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(ts.directorySeparator) + 1)); 5836 return pathComponents(path, getRootLength(path)); 5922 if (!path || getRootLength(relativePath) !== 0) { 6048 var aRoot = a.substring(0, getRootLength(a)); 6049 var bRoot = b.substring(0, getRootLength(b)); 6162 …ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either… [all …]
|
D | tsserver.js | 5740 function getRootLength(path) { function 5744 ts.getRootLength = getRootLength; 5748 var rootLength = getRootLength(path); 5760 var rootLength = getRootLength(path); 5766 … var name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(ts.directorySeparator) + 1)); 5847 return pathComponents(path, getRootLength(path)); 5933 if (!path || getRootLength(relativePath) !== 0) { 6059 var aRoot = a.substring(0, getRootLength(a)); 6060 var bRoot = b.substring(0, getRootLength(b)); 6173 …ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either… [all …]
|
D | typescriptServices.js | 5934 function getRootLength(path) { function 5938 ts.getRootLength = getRootLength; 5942 var rootLength = getRootLength(path); 5954 var rootLength = getRootLength(path); 5960 … var name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(ts.directorySeparator) + 1)); 6041 return pathComponents(path, getRootLength(path)); 6127 if (!path || getRootLength(relativePath) !== 0) { 6253 var aRoot = a.substring(0, getRootLength(a)); 6254 var bRoot = b.substring(0, getRootLength(b)); 6367 …ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either… [all …]
|
D | tsserverlibrary.js | 5934 function getRootLength(path) { function 5938 ts.getRootLength = getRootLength; 5942 var rootLength = getRootLength(path); 5954 var rootLength = getRootLength(path); 5960 … var name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(ts.directorySeparator) + 1)); 6041 return pathComponents(path, getRootLength(path)); 6127 if (!path || getRootLength(relativePath) !== 0) { 6253 var aRoot = a.substring(0, getRootLength(a)); 6254 var bRoot = b.substring(0, getRootLength(b)); 6367 …ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either… [all …]
|
D | typescript.js | 5934 function getRootLength(path) { function 5938 ts.getRootLength = getRootLength; 5942 var rootLength = getRootLength(path); 5954 var rootLength = getRootLength(path); 5960 … var name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(ts.directorySeparator) + 1)); 6041 return pathComponents(path, getRootLength(path)); 6127 if (!path || getRootLength(relativePath) !== 0) { 6253 var aRoot = a.substring(0, getRootLength(a)); 6254 var bRoot = b.substring(0, getRootLength(b)); 6367 …ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), "Paths must either… [all …]
|