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/FieldReferenceForObservablePropertyFieldAnalyzer.cs
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,25 @@ public override void Initialize(AnalysisContext context)
28
28
context.RegisterOperationAction(static context =>
29
29
{
30
30
// We're only looking for references to fields that could potentially be observable properties
31
-
if(context.Operationis not IFieldReferenceOperation{Field:IFieldSymbol{IsStatic:false,IsConst:false,IsImplicitlyDeclared:false,ContainingType:INamedTypeSymbol}fieldSymbol})
31
+
if(context.Operationis not IFieldReferenceOperation
/// Verifies the diagnostic errors for a given analyzer, and that all available source generators can run successfully with the input source (including subsequent compilation).
0 commit comments