7 references to IsAttribute
Microsoft.CodeAnalysis.Features (5)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
110if (syntaxFactsService.IsAttribute(attributeSyntaxNodeCandidate))
ConvertToInterpolatedString\ConvertRegularStringToInterpolatedStringRefactoringProvider.cs (1)
69var attribute = literalExpression.FirstAncestorOrSelf<SyntaxNode>(syntaxFacts.IsAttribute);
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
130var attributeNode = expression.GetAncestors().FirstOrDefault(syntaxFacts.IsAttribute);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
37if (root.FindNode(diagnostic.Location.SourceSpan) is { } node && syntaxFacts.IsAttribute(node) || 75syntaxFacts.IsAttribute(attribute))
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
109containsAttribute = containsAttribute || syntaxFacts.IsAttribute(node);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFactsExtensions.cs (1)
647if (!syntaxFacts.IsAttribute(node?.Parent))