Skip to content

Commit e694def

Browse files
committed
Minor code tweaks
1 parent b632429 commit e694def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
3838
// Filter the fields using [ObservableProperty]
3939
IncrementalValuesProvider<IFieldSymbol> fieldSymbolsWithAttribute =
4040
fieldSymbols
41-
.Where(static item => item.GetAttributes().Any(a => a.AttributeClass?.HasFullyQualifiedName("global::CommunityToolkit.Mvvm.ComponentModel.ObservablePropertyAttribute") == true));
41+
.Where(static item => item.HasAttributeWithFullyQualifiedName("global::CommunityToolkit.Mvvm.ComponentModel.ObservablePropertyAttribute"));
4242

4343
// Filter by language version
4444
context.FilterWithLanguageVersion(ref fieldSymbolsWithAttribute, LanguageVersion.CSharp8, UnsupportedCSharpLanguageVersionError);

0 commit comments

Comments
 (0)