Skip to content

Commit c70fa1e

Browse files
committed
Remove incorrect code in getNameOfDeclaration
1 parent 6c4e747 commit c70fa1e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/compiler/utilities.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4712,12 +4712,6 @@ namespace ts {
47124712
case SpecialPropertyAssignmentKind.ModuleExports:
47134713
return undefined;
47144714
case SpecialPropertyAssignmentKind.ExportsProperty:
4715-
if (lhs.kind === SyntaxKind.Identifier) {
4716-
return (lhs as PropertyAccessExpression).name;
4717-
}
4718-
else {
4719-
return ((lhs as PropertyAccessExpression).expression as PropertyAccessExpression).name;
4720-
}
47214715
case SpecialPropertyAssignmentKind.ThisProperty:
47224716
case SpecialPropertyAssignmentKind.Property:
47234717
return (lhs as PropertyAccessExpression).name;

0 commit comments

Comments
 (0)