7 references to IsAttribute
Microsoft.CodeAnalysis.Features (5)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
110
if (syntaxFactsService.
IsAttribute
(attributeSyntaxNodeCandidate))
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
69
var attribute = literalExpression.FirstAncestorOrSelf<SyntaxNode>(syntaxFacts.
IsAttribute
);
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))
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
109
containsAttribute = containsAttribute || syntaxFacts.
IsAttribute
(node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
647
if (!syntaxFacts.
IsAttribute
(node?.Parent))