8 references to HasAttribute
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (4)
175if (symbol.HasAttribute(threadStaticAttribute)) 182if (!symbol.IsStatic && symbol.ContainingType.HasAttribute(inlineArrayAttribute)) 193return symbol.HasAttribute(dataMemberAttribute) 194&& symbol.ContainingType.HasAttribute(dataContractAttribute);
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (2)
478if (namedType.HasAttribute(_structLayoutAttributeType)) 489var isInlineArray = namedType.HasAttribute(_inlineArrayAttributeType);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
307if (!containingType.HasAttribute(interpolatedStringHandlerAttributeType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
123method.ReturnType.HasAttribute(compilation.AsyncMethodBuilderAttribute());