Skip to content

Commit

Permalink
Update Diagnostic to use factory method
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmurillo committed Aug 27, 2024
1 parent dcd245d commit 3701b6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private static void Analyze(SyntaxNodeAnalysisContext context)

if (mockedMethodArguments.Count != lambdaParameters.Count)
{
Diagnostic diagnostic = Diagnostic.Create(Rule, callbackLambda.ParameterList.GetLocation());
Diagnostic diagnostic = callbackLambda.ParameterList.GetLocation().CreateDiagnostic(Rule);
context.ReportDiagnostic(diagnostic);
}
else
Expand Down

0 comments on commit 3701b6f

Please sign in to comment.