Skip to content

Commit f080c60

Browse files
committed
Stop after first invalid property diagnostic
1 parent 2f3c842 commit f080c60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/CommunityToolkit.Mvvm.SourceGenerators/Diagnostics/Analyzers/InvalidPropertyLevelObservablePropertyAttributeAnalyzer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public override void Initialize(AnalysisContext context)
6161
observablePropertyAttribute.GetLocation(),
6262
propertySymbol.ContainingType,
6363
propertySymbol.Name));
64+
65+
return;
6466
}
6567
}
6668
}, SymbolKind.Property);

0 commit comments

Comments
 (0)