Remove incorrect code in getNameOfDeclaration

This commit is contained in:
Nathan Shively-Sanders 2017-05-19 15:08:24 -07:00
parent 6c4e747295
commit c70fa1e573

View File

@ -4712,12 +4712,6 @@ namespace ts {
case SpecialPropertyAssignmentKind.ModuleExports:
return undefined;
case SpecialPropertyAssignmentKind.ExportsProperty:
if (lhs.kind === SyntaxKind.Identifier) {
return (lhs as PropertyAccessExpression).name;
}
else {
return ((lhs as PropertyAccessExpression).expression as PropertyAccessExpression).name;
}
case SpecialPropertyAssignmentKind.ThisProperty:
case SpecialPropertyAssignmentKind.Property:
return (lhs as PropertyAccessExpression).name;