Home
last modified time | relevance | path

Searched refs:getRootLength (Results 1 – 17 of 17) sorted by relevance

/third_party/typescript/src/testRunner/unittests/
Dpaths.ts9 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 …]
DmoduleResolution.ts106 …failedLookupLocations.push(normalizePath(getRootLength(moduleName) === 0 ? combinePaths(dir, modul…
/third_party/typescript/src/compiler/
Dpath.ts206 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…
DresolutionCache.ts101 const rootLength = getRootLength(dirPath);
Dsys.ts1372 … const fileUrlRoot = `file://${getRootLength(normalizedDir) === 1 ? "" : "/"}${normalizedDir}`;
DmoduleNameResolver.ts627 const rootLength = getRootLength(directory);
Demitter.ts621 if (getRootLength(sourceMapDir) === 0) {
646 if (getRootLength(sourceMapDir) === 0) {
Dprogram.ts3262 … if (options.outDir && dir === "" && files.some(file => getRootLength(file.fileName) > 1)) {
Dutilities.ts4434 … if (directoryPath.length > getRootLength(directoryPath) && !directoryExists(directoryPath)) {
/third_party/typescript/src/testRunner/unittests/tsserver/
DwatchEnvironment.ts219 const windowsStyleRoot = path.substr(0, getRootLength(path));
/third_party/typescript/src/tsserver/
DnodeServer.ts437 const rootLength = getRootLength(path);
/third_party/typescript/lib/
Dtsc.js3358 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 …]
DtypingsInstaller.js5729 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 …]
Dtsserver.js5740 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 …]
DtypescriptServices.js5934 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 …]
Dtsserverlibrary.js5934 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 …]
Dtypescript.js5934 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 …]