2 references to IsAnyThrowInvocation
Microsoft.CodeAnalysis.Features (2)
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
516
return
IsAnyThrowInvocation
(statement, parameter, [nameof(ArgumentNullException), nameof(ArgumentException)], m => m is ThrowIfNullName or ThrowIfNullOrEmptyName or ThrowIfNullOrWhiteSpaceName);
521
return
IsAnyThrowInvocation
(statement, parameter, [nameof(ArgumentOutOfRangeException)], m => m.StartsWith(ThrowIfPrefix));