Skip to content

Commit

Permalink
Check for parameters in both methods
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanCrd committed Dec 4, 2024
1 parent 6168a70 commit 50cf3ee
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,11 @@ public override void AnalyzeCore(ISymbolAnalysisContext context)
context.ReportDiagnostic(Diagnostic.Create(Descriptors.AZC0004, member.Locations.First()), member);
}

if (!methodSymbol.Parameters.SequenceEqual(syncMember.Parameters, ParameterEquivalenceComparer.Default))
{
context.ReportDiagnostic(Diagnostic.Create(Descriptors.AZC0005, member.Locations.First()), member);
}

CheckClientMethod(context, syncMember);
}
}
Expand Down

0 comments on commit 50cf3ee

Please sign in to comment.