Removed comments and fixed indentation

This commit is contained in:
Arthur Ozga
2016-10-03 11:25:23 -07:00
parent 728252fd4d
commit 179ceda746
3 changed files with 6 additions and 7 deletions

View File

@@ -1158,7 +1158,7 @@ namespace ts {
export function normalizePath(path: string): string {
path = normalizeSlashes(path);
const rootLength = getRootLength(path); // TODO: this expects un-slash-normalized strings. eg: 'x:\\...'
const rootLength = getRootLength(path); // TODO: (arozga) this expects un-slash-normalized strings. eg: 'x:\\...'
const root = path.substr(0, rootLength);
const normalized = getNormalizedParts(path, rootLength);
if (normalized.length) {

View File

@@ -326,7 +326,7 @@ namespace ts.Completions {
* Given a path ending at a directory, gets the completions for the path, and filters for those entries containing the basename.
*/
function getCompletionEntriesForDirectoryFragment(fragment: string, scriptPath: string, extensions: string[], includeExtensions: boolean, span: TextSpan, exclude?: string, result: CompletionEntry[] = []): CompletionEntry[] {
if (fragment === undefined) { fragment = "./"; } // TODO: (arozga) remove the second check along with adding --strictNullChecks
if (fragment === undefined) { fragment = "./"; }
fragment = normalizeSlashes(fragment);
@@ -556,7 +556,7 @@ namespace ts.Completions {
const kind = match[2];
const toComplete = match[3];
const scriptPath = getDirectoryPath(sourceFile.path); // TODO: normalize for win10?
const scriptPath = getDirectoryPath(sourceFile.path);
let entries: CompletionEntry[];
if (kind === "path") {
// Give completions for a relative path
@@ -596,7 +596,7 @@ namespace ts.Completions {
// Wrap in try catch because getEffectiveTypeRoots touches the filesystem
typeRoots = getEffectiveTypeRoots(options, host);
}
catch (e) { }
catch (e) {}
if (typeRoots) {
for (const root of typeRoots) {
@@ -1713,7 +1713,7 @@ namespace ts.Completions {
try {
return directoryProbablyExists(path, host);
}
catch (e) { }
catch (e) {}
return undefined;
}
@@ -1721,7 +1721,7 @@ namespace ts.Completions {
try {
return toApply && toApply.apply(host, args);
}
catch (e) { }
catch (e) {}
return undefined;
}
}

View File

@@ -503,7 +503,6 @@ namespace ts {
}
export interface CompletionInfo {
// TODO: (arozga) What does this do?
isMemberCompletion: boolean;
/**