6 references to HasAnyAttribute
Roslyn.Diagnostics.Analyzers (6)
DefaultableTypeShouldHaveDefaultableFieldsAnalyzer.cs (2)
129
isNonDefaultable = namedType.
HasAnyAttribute
(nonDefaultableAttribute);
136
isNonDefaultable = type.
HasAnyAttribute
(nonDefaultableAttribute);
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (1)
65
if (RequiresAttributeOnMethod && !method.
HasAnyAttribute
(requiredAttributeType))
src\RoslynAnalyzers\Utilities\Compiler\Extensions\IEnumerableOfIMethodSymbolExtensions.cs (1)
28
return methods.Where(m => !m.
HasAnyAttribute
(attributeType));
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
744
if (symbol.
HasAnyAttribute
(attribute))
783
if (symbol.
HasAnyAttribute
(attribute))