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;