We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80625ef commit e4ed10bCopy full SHA for e4ed10b
CommunityToolkit.Mvvm.SourceGenerators/Diagnostics/Analyzers/UnsupportedCSharpLanguageVersionAnalyzer.cs
@@ -47,7 +47,7 @@ public override void Initialize(AnalysisContext context)
47
context.RegisterSymbolAction(static context =>
48
{
49
// The possible attribute targets are only fields, classes and methods
50
- if (context.Symbol is not IFieldSymbol or INamedTypeSymbol { TypeKind: TypeKind.Class, IsImplicitlyDeclared: false } or IMethodSymbol)
+ if (context.Symbol is not (IFieldSymbol or INamedTypeSymbol { TypeKind: TypeKind.Class, IsImplicitlyDeclared: false } or IMethodSymbol))
51
52
return;
53
}
0 commit comments