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