4 references to IsAttribute
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
641
if (!syntaxFacts.
IsAttribute
(node?.Parent))
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
130
var attributeNode = expression.GetAncestors().FirstOrDefault(syntaxFacts.
IsAttribute
);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
37
if (root.FindNode(diagnostic.Location.SourceSpan) is { } node && syntaxFacts.
IsAttribute
(node) ||
75
syntaxFacts.
IsAttribute
(attribute))