mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Simplify isDeclarationNameOrImportPropertyName (#16421)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user