6 references to shouldRemoveAttribute
Microsoft.CodeAnalysis.Workspaces (6)
Shared\Extensions\IMethodSymbolExtensions.cs (6)
187var methodHasAttribute = method.GetAttributes().Any(shouldRemoveAttribute, arg);
190.Any(static (m, arg) => m.GetAttributes().Any(shouldRemoveAttribute, arg), arg);
192var returnTypeHasAttribute = method.GetReturnTypeAttributes().Any(shouldRemoveAttribute, arg);
203attributes: method.GetAttributes().WhereAsArray(static (a, arg) => !shouldRemoveAttribute(a, arg), arg),
206p.GetAttributes().WhereAsArray(static (a, arg) => !shouldRemoveAttribute(a, arg), arg),
209returnTypeAttributes: method.GetReturnTypeAttributes().WhereAsArray(static (a, arg) => !shouldRemoveAttribute(a, arg), arg));