Disabled findAllRefs for 'this'/'super'.

This commit is contained in:
Daniel Rosenwasser 2014-09-08 17:44:15 -07:00
parent 1cd0b306ed
commit 131ac2f188
2 changed files with 7 additions and 3 deletions

View file

@ -2378,8 +2378,9 @@ module ts {
}
if (node.kind !== SyntaxKind.Identifier &&
node.kind !== SyntaxKind.ThisKeyword &&
node.kind !== SyntaxKind.SuperKeyword &&
// TODO (drosen): This should be enabled in a later release - currently breaks rename.
//node.kind !== SyntaxKind.ThisKeyword &&
//node.kind !== SyntaxKind.SuperKeyword &&
!isLiteralNameOfPropertyDeclarationOrIndexAccess(node) &&
!isNameOfExternalModuleImportOrDeclaration(node)) {
return undefined;

View file

@ -12,4 +12,7 @@
goTo.file("file1.ts");
goTo.marker();
verify.referencesCountIs(8);
// TODO (drosen): The CURRENT behavior is that findAllRefs doesn't work on 'this' or 'super' keywords.
// This should change down the line.
verify.referencesCountIs(0);