@@ -180,10 +180,14 @@ DescriptiveDeclKind Decl::getDescriptiveKind() const {
180
180
? DescriptiveDeclKind::GenericStruct
181
181
: DescriptiveDeclKind::Struct;
182
182
183
- case DeclKind::Class:
183
+ case DeclKind::Class: {
184
+ bool isActor = cast<ClassDecl>(this )->isActor ();
184
185
return cast<ClassDecl>(this )->getGenericParams ()
185
- ? DescriptiveDeclKind::GenericClass
186
- : DescriptiveDeclKind::Class;
186
+ ? (isActor ? DescriptiveDeclKind::GenericActor
187
+ : DescriptiveDeclKind::GenericClass)
188
+ : (isActor ? DescriptiveDeclKind::Actor
189
+ : DescriptiveDeclKind::Class);
190
+ }
187
191
188
192
case DeclKind::Var: {
189
193
auto var = cast<VarDecl>(this );
@@ -317,10 +321,12 @@ StringRef Decl::getDescriptiveKindName(DescriptiveDeclKind K) {
317
321
ENTRY (Enum, " enum" );
318
322
ENTRY (Struct, " struct" );
319
323
ENTRY (Class, " class" );
324
+ ENTRY (Actor, " actor" );
320
325
ENTRY (Protocol, " protocol" );
321
326
ENTRY (GenericEnum, " generic enum" );
322
327
ENTRY (GenericStruct, " generic struct" );
323
328
ENTRY (GenericClass, " generic class" );
329
+ ENTRY (GenericActor, " generic actor" );
324
330
ENTRY (GenericType, " generic type" );
325
331
ENTRY (Subscript, " subscript" );
326
332
ENTRY (StaticSubscript, " static subscript" );
0 commit comments