30 references to SyntaxAnnotation
Microsoft.AspNetCore.App.CodeFixes (1)
RouteParameterUnusedParameterFixer.cs (1)
88var type = resolvedType.WithAdditionalAnnotations(new SyntaxAnnotation("CodeAction_Navigation"));
Microsoft.CodeAnalysis (2)
Syntax\SyntaxAnnotation.cs (1)
44: this(kind)
Syntax\SyntaxNodeExtensions_Tracking.cs (1)
50s_nodeToIdMap.GetValue(node, n => new SyntaxAnnotation(IdAnnotationKind));
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\DoNotAddImportsAnnotation.cs (1)
23public static readonly SyntaxAnnotation Annotation = new(Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\DoNotAllowVarAnnotation.cs (1)
12public static readonly SyntaxAnnotation Annotation = new(Kind);
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerator.cs (1)
21public static readonly SyntaxAnnotation Annotation = new(nameof(CodeGenerator));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\NullableSyntaxAnnotation.cs (2)
19public static readonly SyntaxAnnotation Oblivious = new($"{nameof(NullableSyntaxAnnotation)}.{Oblivious}"); 23public static readonly SyntaxAnnotation AnnotatedOrNotAnnotated = new($"{nameof(NullableSyntaxAnnotation)}.{AnnotatedOrNotAnnotated}");
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
39private static readonly SyntaxAnnotation s_usingPlacementCodeFixAnnotation = new(nameof(s_usingPlacementCodeFixAnnotation));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\FormattingEngineTests.cs (1)
2541var annotation = new SyntaxAnnotation("marker");
Microsoft.CodeAnalysis.CSharp.Features (3)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (2)
27private static readonly SyntaxAnnotation s_closingBraceFormatAnnotation = new(nameof(s_closingBraceFormatAnnotation)); 28private static readonly SyntaxAnnotation s_closingBraceNewlineAnnotation = new(nameof(s_closingBraceNewlineAnnotation));
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (1)
39private static readonly SyntaxAnnotation s_usingPlacementCodeFixAnnotation = new(nameof(s_usingPlacementCodeFixAnnotation));
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\Simplifiers\ExpressionSimplifier.cs (1)
186.WithAdditionalAnnotations<TypeSyntax>(new SyntaxAnnotation(
Simplification\Simplifiers\NameSimplifier.cs (1)
478replacementNode = replacementNode.WithAdditionalAnnotations(new SyntaxAnnotation(codeStyleOptionName));
Simplification\Simplifiers\QualifiedCrefSimplifier.cs (1)
54.WithAdditionalAnnotations(new SyntaxAnnotation(nameof(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess)));
Microsoft.CodeAnalysis.Features (4)
ChangeSignature\AbstractChangeSignatureService.cs (1)
36protected SyntaxAnnotation changeSignatureFormattingAnnotation = new("ChangeSignatureFormatting");
CodeRefactorings\MoveType\AbstractMoveTypeService.cs (1)
30public static SyntaxAnnotation NamespaceScopeMovedAnnotation = new(nameof(MoveTypeOperationKind.MoveTypeNamespaceScope));
PullMemberUp\MembersPuller.cs (2)
34private static readonly SyntaxAnnotation s_removableImportAnnotation = new("PullMemberRemovableImport"); 35private static readonly SyntaxAnnotation s_destinationNodeAnnotation = new("DestinationNode");
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Simplification\Simplifiers\NameSimplifier.vb (1)
186replacementNode = replacementNode.WithAdditionalAnnotations(New SyntaxAnnotation(codeStyleOptionName))
Microsoft.CodeAnalysis.Workspaces (8)
CodeActions\Annotations\NavigationAnnotation.cs (1)
25=> new(Kind);
CodeActions\Annotations\RenameAnnotation.cs (1)
15=> new(Kind);
CodeActions\Annotations\SuppressDiagnosticsAnnotation.cs (1)
12=> new(Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\DoNotAddImportsAnnotation.cs (1)
23public static readonly SyntaxAnnotation Annotation = new(Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\DoNotAllowVarAnnotation.cs (1)
12public static readonly SyntaxAnnotation Annotation = new(Kind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerator.cs (1)
21public static readonly SyntaxAnnotation Annotation = new(nameof(CodeGenerator));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\NullableSyntaxAnnotation.cs (2)
19public static readonly SyntaxAnnotation Oblivious = new($"{nameof(NullableSyntaxAnnotation)}.{Oblivious}"); 23public static readonly SyntaxAnnotation AnnotatedOrNotAnnotated = new($"{nameof(NullableSyntaxAnnotation)}.{AnnotatedOrNotAnnotated}");
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
3433tree = tree.WithAdditionalAnnotations(new SyntaxAnnotation("test"));