You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/CommunityToolkit.Mvvm.SourceGenerators/Diagnostics/Analyzers/ClassUsingAttributeInsteadOfInheritanceAnalyzer.cs
+10-13Lines changed: 10 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ public override void Initialize(AnalysisContext context)
68
68
context.RegisterSymbolAction(context =>
69
69
{
70
70
// We're looking for class declarations that don't have any base type
71
-
if(context.Symbolis not INamedTypeSymbol{TypeKind:TypeKind.Class,IsRecord:false,IsStatic:false,IsImplicitlyDeclared:false}classSymbol)
71
+
if(context.Symbolis not INamedTypeSymbol{TypeKind:TypeKind.Class,IsRecord:false,IsStatic:false,IsImplicitlyDeclared:false,BaseType.SpecialType:SpecialType.System_Object}classSymbol)
72
72
{
73
73
return;
74
74
}
@@ -80,18 +80,15 @@ public override void Initialize(AnalysisContext context)
0 commit comments