Home
last modified time | relevance | path

Searched refs:getPathComponents (Results 1 – 13 of 13) sorted by relevance

/third_party/typescript/src/testRunner/unittests/
Dpaths.ts190 assert.deepEqual(ts.getPathComponents(""), [""]);
191 assert.deepEqual(ts.getPathComponents("a"), ["", "a"]);
192 assert.deepEqual(ts.getPathComponents("./a"), ["", ".", "a"]);
193 assert.deepEqual(ts.getPathComponents("/"), ["/"]);
194 assert.deepEqual(ts.getPathComponents("/a"), ["/", "a"]);
195 assert.deepEqual(ts.getPathComponents("/a/"), ["/", "a"]);
196 assert.deepEqual(ts.getPathComponents("c:"), ["c:"]);
197 assert.deepEqual(ts.getPathComponents("c:d"), ["", "c:d"]);
198 assert.deepEqual(ts.getPathComponents("c:/"), ["c:/"]);
199 assert.deepEqual(ts.getPathComponents("c:/path"), ["c:/", "path"]);
[all …]
/third_party/typescript/src/compiler/
Dpath.ts427 export function getPathComponents(path: string, currentDirectory = "") { function
541 return reducePathComponents(getPathComponents(path, currentDirectory));
550 const normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
572 const [root, ...parts] = reducePathComponents(getPathComponents(path));
687 const aComponents = reducePathComponents(getPathComponents(a));
688 const bComponents = reducePathComponents(getPathComponents(b));
744 const parentComponents = reducePathComponents(getPathComponents(parent));
745 const childComponents = reducePathComponents(getPathComponents(child));
776 const fromComponents = reducePathComponents(getPathComponents(from));
777 const toComponents = reducePathComponents(getPathComponents(to));
Dutilities.ts6371 const aParts = getPathComponents(getNormalizedAbsolutePath(a, cwd));
6372 const bParts = getPathComponents(getNormalizedAbsolutePath(b, cwd));
/third_party/typescript/src/harness/
DvpathUtil.ts11 export import parse = ts.getPathComponents;
/third_party/typescript/src/linter/
DUtils.ts1256 for (const subdir of getPathComponents(targetPath)) {
/third_party/typescript/src/services/codefixes/
DimportFixes.ts1116 … const components = getPathComponents(getPackageNameFromTypesPackageName(fullSpecifier)).slice(1);
/third_party/typescript/src/services/
Dutilities.ts2824 return contains(getPathComponents(fileOrDirectory), "node_modules");
/third_party/typescript/lib/
Dtsc.js3424 function getPathComponents(path, currentDirectory) { function
3429 ts.getPathComponents = getPathComponents;
3497 return reducePathComponents(getPathComponents(path, currentDirectory));
3506 var normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
3528 var _a = reducePathComponents(getPathComponents(path)), root = _a[0], parts = _a.slice(1);
3580 var aComponents = reducePathComponents(getPathComponents(a));
3581 var bComponents = reducePathComponents(getPathComponents(b));
3622 var parentComponents = reducePathComponents(getPathComponents(parent));
3623 var childComponents = reducePathComponents(getPathComponents(child));
3644 var fromComponents = reducePathComponents(getPathComponents(from));
[all …]
DtypingsInstaller.js5833 function getPathComponents(path, currentDirectory) { function
5838 ts.getPathComponents = getPathComponents;
5961 return reducePathComponents(getPathComponents(path, currentDirectory));
5970 var normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
5992 var _a = reducePathComponents(getPathComponents(path)), root = _a[0], parts = _a.slice(1);
6063 var aComponents = reducePathComponents(getPathComponents(a));
6064 var bComponents = reducePathComponents(getPathComponents(b));
6111 var parentComponents = reducePathComponents(getPathComponents(parent));
6112 var childComponents = reducePathComponents(getPathComponents(child));
6140 var fromComponents = reducePathComponents(getPathComponents(from));
[all …]
DtypescriptServices.js6038 function getPathComponents(path, currentDirectory) { function
6043 ts.getPathComponents = getPathComponents;
6166 return reducePathComponents(getPathComponents(path, currentDirectory));
6175 var normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
6197 var _a = reducePathComponents(getPathComponents(path)), root = _a[0], parts = _a.slice(1);
6268 var aComponents = reducePathComponents(getPathComponents(a));
6269 var bComponents = reducePathComponents(getPathComponents(b));
6316 var parentComponents = reducePathComponents(getPathComponents(parent));
6317 var childComponents = reducePathComponents(getPathComponents(child));
6345 var fromComponents = reducePathComponents(getPathComponents(from));
[all …]
Dtsserverlibrary.js6038 function getPathComponents(path, currentDirectory) { function
6043 ts.getPathComponents = getPathComponents;
6166 return reducePathComponents(getPathComponents(path, currentDirectory));
6175 var normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
6197 var _a = reducePathComponents(getPathComponents(path)), root = _a[0], parts = _a.slice(1);
6268 var aComponents = reducePathComponents(getPathComponents(a));
6269 var bComponents = reducePathComponents(getPathComponents(b));
6316 var parentComponents = reducePathComponents(getPathComponents(parent));
6317 var childComponents = reducePathComponents(getPathComponents(child));
6345 var fromComponents = reducePathComponents(getPathComponents(from));
[all …]
Dtsserver.js5844 function getPathComponents(path, currentDirectory) { function
5849 ts.getPathComponents = getPathComponents;
5972 return reducePathComponents(getPathComponents(path, currentDirectory));
5981 var normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
6003 var _a = reducePathComponents(getPathComponents(path)), root = _a[0], parts = _a.slice(1);
6074 var aComponents = reducePathComponents(getPathComponents(a));
6075 var bComponents = reducePathComponents(getPathComponents(b));
6122 var parentComponents = reducePathComponents(getPathComponents(parent));
6123 var childComponents = reducePathComponents(getPathComponents(child));
6151 var fromComponents = reducePathComponents(getPathComponents(from));
[all …]
Dtypescript.js6038 function getPathComponents(path, currentDirectory) { function
6043 ts.getPathComponents = getPathComponents;
6166 return reducePathComponents(getPathComponents(path, currentDirectory));
6175 var normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));
6197 var _a = reducePathComponents(getPathComponents(path)), root = _a[0], parts = _a.slice(1);
6268 var aComponents = reducePathComponents(getPathComponents(a));
6269 var bComponents = reducePathComponents(getPathComponents(b));
6316 var parentComponents = reducePathComponents(getPathComponents(parent));
6317 var childComponents = reducePathComponents(getPathComponents(child));
6345 var fromComponents = reducePathComponents(getPathComponents(from));
[all …]