7 references to ThrowIfPrefix
Microsoft.CodeAnalysis.Features (7)
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (7)
55
private const string ThrowIfNullName =
ThrowIfPrefix
+ NullSuffix;
56
private const string ThrowIfNullOrEmptyName =
ThrowIfPrefix
+ NullOrEmptySuffix;
57
private const string ThrowIfNullOrWhiteSpaceName =
ThrowIfPrefix
+ NullOrWhiteSpaceSuffix;
59
private const string ThrowIfNegativeName =
ThrowIfPrefix
+ NegativeSuffix;
60
private const string ThrowIfNegativeOrZeroName =
ThrowIfPrefix
+ NegativeOrZeroSuffix;
521
return IsAnyThrowInvocation(statement, parameter, [nameof(ArgumentOutOfRangeException)], m => m.StartsWith(
ThrowIfPrefix
));
761
var throwMethodName =
ThrowIfPrefix
+ methodNameSuffix;