6 references to shouldRemoveAttribute
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\IMethodSymbolExtensions.cs (6)
148
var methodHasAttribute = method.GetAttributes().Any(
shouldRemoveAttribute
, arg);
151
.Any(static (m, arg) => m.GetAttributes().Any(
shouldRemoveAttribute
, arg), arg);
153
var returnTypeHasAttribute = method.GetReturnTypeAttributes().Any(
shouldRemoveAttribute
, arg);
164
attributes: method.GetAttributes().WhereAsArray(static (a, arg) => !
shouldRemoveAttribute
(a, arg), arg: arg),
167
p.GetAttributes().WhereAsArray(static (a, arg) => !
shouldRemoveAttribute
(a, arg), arg: arg),
170
returnTypeAttributes: method.GetReturnTypeAttributes().WhereAsArray(static (a, arg) => !
shouldRemoveAttribute
(a, arg), arg: arg));