8 references to IsAttribute
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\CSharpSimplificationService.Expander.cs (1)
586
if (symbol.IsConstructor() && symbol.ContainingType?.
IsAttribute
() == true)
Microsoft.CodeAnalysis.Features (5)
AddImport\AbstractAddImportCodeRefactoringProvider.cs (1)
145
constructor.ContainingType.
IsAttribute
())
AddImport\SymbolReferenceFinder.cs (1)
238
if (inAttributeContext && !symbol.
IsAttribute
())
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
200
skipSuppressMessage = suppressMessageAttribute == null || !suppressMessageAttribute.
IsAttribute
();
Completion\Providers\ImportCompletionProvider\TypeImportCompletionCacheEntry.cs (1)
192
var isAttribute = symbol.Name.HasAttributeSuffix(isCaseSensitive: false) && symbol.
IsAttribute
();
FullyQualify\AbstractFullyQualifyService.cs (1)
249
if (inAttributeContext && !searchResult.
IsAttribute
())
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (2)
476
=> (symbol as ITypeSymbol)?.
IsAttribute
() == true;
553
if (type.
IsAttribute
() && type.IsAccessibleWithin(withinType ?? withinAssembly))