Simplify isDeclarationNameOrImportPropertyName (#16421)

This commit is contained in:
Andy
2017-06-12 15:23:45 -07:00
committed by GitHub
parent 3b97c683e3
commit 8b55675cb4

View File

@@ -24805,10 +24805,7 @@ namespace ts {
switch (name.parent.kind) {
case SyntaxKind.ImportSpecifier:
case SyntaxKind.ExportSpecifier:
if ((name.parent as ImportOrExportSpecifier).propertyName) {
return true;
}
// falls through
return true;
default:
return isDeclarationName(name);
}