Skip to content

Commit dc12041

Browse files
committed
Rename method to reflect expected input
1 parent 9027f93 commit dc12041

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

StyleCop.Analyzers/StyleCop.Analyzers/MaintainabilityRules/SA1405DebugAssertMustProvideMessageText.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public override void Initialize(AnalysisContext context)
5454

5555
private static void HandleInvocationExpression(SyntaxNodeAnalysisContext context)
5656
{
57-
HandleMethodCall(context, nameof(Debug.Assert), 1, Descriptor);
57+
HandleInvocationExpression(context, nameof(Debug.Assert), 1, Descriptor);
5858
}
5959
}
6060
}

StyleCop.Analyzers/StyleCop.Analyzers/MaintainabilityRules/SA1406DebugFailMustProvideMessageText.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public override void Initialize(AnalysisContext context)
5555
private static void HandleInvocationExpression(SyntaxNodeAnalysisContext context)
5656
{
5757
// Debug.Fail is not available in a portable library. So no nameof(Debug.Fail) here
58-
HandleMethodCall(context, "Fail", 0, Descriptor);
58+
HandleInvocationExpression(context, "Fail", 0, Descriptor);
5959
}
6060
}
6161
}

StyleCop.Analyzers/StyleCop.Analyzers/MaintainabilityRules/SystemDiagnosticsDebugDiagnosticBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal abstract class SystemDiagnosticsDebugDiagnosticBase : DiagnosticAnalyze
2222
/// <param name="methodName">The method name that should be detected</param>
2323
/// <param name="parameterIndex">The index, the string parameter that should be checked, is at</param>
2424
/// <param name="descriptor">The descriptor of the diagnostic that should be added</param>
25-
protected internal static void HandleMethodCall(SyntaxNodeAnalysisContext context, string methodName, int parameterIndex, DiagnosticDescriptor descriptor)
25+
protected internal static void HandleInvocationExpression(SyntaxNodeAnalysisContext context, string methodName, int parameterIndex, DiagnosticDescriptor descriptor)
2626
{
2727
var invocationExpressionSyntax = (InvocationExpressionSyntax)context.Node;
2828
var memberAccessExpressionSyntax = invocationExpressionSyntax.Expression as MemberAccessExpressionSyntax;

0 commit comments

Comments
 (0)