Skip to content

Commit e26c260

Browse files
PR feedback.
1 parent 63278ca commit e26c260

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/compiler/checker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10611,7 +10611,6 @@ module ts {
1061110611
if (symbol.flags & meaning) {
1061210612
let id = symbol.name;
1061310613
if (!isReservedMemberName(id) && !hasProperty(symbols, id)) {
10614-
// If no predicate was supplied, then just add the symbol as is.
1061510614
symbols[id] = symbol;
1061610615
}
1061710616
}

src/services/services.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,12 +2464,12 @@ module ts {
24642464

24652465
let start = new Date().getTime();
24662466
let currentToken = getTokenAtPosition(sourceFile, position);
2467-
log("getCompletionsAtPosition: Get current token: " + (new Date().getTime() - start));
2467+
log("getCompletionData: Get current token: " + (new Date().getTime() - start));
24682468

24692469
start = new Date().getTime();
24702470
// Completion not allowed inside comments, bail out if this is the case
24712471
let insideComment = isInsideComment(sourceFile, currentToken, position);
2472-
log("getCompletionsAtPosition: Is inside comment: " + (new Date().getTime() - start));
2472+
log("getCompletionData: Is inside comment: " + (new Date().getTime() - start));
24732473

24742474
if (insideComment) {
24752475
log("Returning an empty list because completion was inside a comment.");
@@ -2480,14 +2480,14 @@ module ts {
24802480
// Note: previousToken can be undefined if we are the beginning of the file
24812481
start = new Date().getTime();
24822482
let previousToken = findPrecedingToken(position, sourceFile);
2483-
log("getCompletionsAtPosition: Get previous token 1: " + (new Date().getTime() - start));
2483+
log("getCompletionData: Get previous token 1: " + (new Date().getTime() - start));
24842484

24852485
// The caret is at the end of an identifier; this is a partial identifier that we want to complete: e.g. a.toS|
24862486
// Skip this partial identifier to the previous token
24872487
if (previousToken && position <= previousToken.end && previousToken.kind === SyntaxKind.Identifier) {
24882488
let start = new Date().getTime();
24892489
previousToken = findPrecedingToken(previousToken.pos, sourceFile);
2490-
log("getCompletionsAtPosition: Get previous token 2: " + (new Date().getTime() - start));
2490+
log("getCompletionData: Get previous token 2: " + (new Date().getTime() - start));
24912491
}
24922492

24932493
// Check if this is a valid completion location
@@ -2594,7 +2594,7 @@ module ts {
25942594
}
25952595
}
25962596

2597-
log("getCompletionsAtPosition: Semantic work: " + (new Date().getTime() - semanticStart));
2597+
log("getCompletionData: Semantic work: " + (new Date().getTime() - semanticStart));
25982598

25992599
return { symbols, isMemberCompletion, isNewIdentifierLocation, location };
26002600

0 commit comments

Comments
 (0)