8 references to HasAnnotations
Microsoft.CodeAnalysis (2)
Syntax\AnnotationExtensions.cs (1)
64
if (node.
HasAnnotations
(annotationKind))
Syntax\SyntaxNodeOrToken.cs (1)
535
return _nodeOrParent.
HasAnnotations
(annotationKind);
Microsoft.CodeAnalysis.CSharp.Features (2)
Diagnostics\Analyzers\CSharpSimplifyTypeNamesDiagnosticAnalyzer.cs (2)
119
if (replacementSyntax.
HasAnnotations
(nameof(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration)))
124
else if (replacementSyntax.
HasAnnotations
(nameof(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess)))
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
101
if (memberAccess.
HasAnnotations
(SpecialTypeAnnotation.Kind))
Simplification\Simplifiers\NameSimplifier.cs (1)
102
if (name.
HasAnnotations
(SpecialTypeAnnotation.Kind))
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
185
var annotatedNodes = syntaxNodes.Where(x => x.
HasAnnotations
(SymbolAnnotation.Kind));
191
if (annotatedNode.
HasAnnotations
(DoNotAddImportsAnnotation.Kind))