Skip to content

Commit e4ed10b

Browse files
committed
Fix condition in UnsupportedCSharpLanguageVersionAnalyzer
1 parent 80625ef commit e4ed10b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommunityToolkit.Mvvm.SourceGenerators/Diagnostics/Analyzers/UnsupportedCSharpLanguageVersionAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public override void Initialize(AnalysisContext context)
4747
context.RegisterSymbolAction(static context =>
4848
{
4949
// 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)
50+
if (context.Symbol is not (IFieldSymbol or INamedTypeSymbol { TypeKind: TypeKind.Class, IsImplicitlyDeclared: false } or IMethodSymbol))
5151
{
5252
return;
5353
}

0 commit comments

Comments
 (0)