mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Emit generated name for unnamed default exported class with decorated members
This commit is contained in:
@@ -521,9 +521,10 @@ namespace ts {
|
||||
// emit name if
|
||||
// - node has a name
|
||||
// - node has static initializers
|
||||
// - node has a member that is decorated
|
||||
//
|
||||
let name = node.name;
|
||||
if (!name && staticProperties.length > 0) {
|
||||
if (!name && (staticProperties.length > 0 || childIsDecorated(node))) {
|
||||
name = getGeneratedNameForNode(node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user