22 references to WithAdditionalAnnotations
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTriviaExtensions.cs (1)
19=> trivia.WithAdditionalAnnotations(SyntaxAnnotation.ElasticAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (1)
82=> trivia.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray());
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
123newDocComment = newDocComment.WithAdditionalAnnotations(Formatter.Annotation);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\FormattingEngineTests.cs (1)
2543var annotatedMarkerTrivia = markerTrivia.WithAdditionalAnnotations(annotation);
Microsoft.CodeAnalysis.CSharp.Features (3)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
119var annotatedNewline = SyntaxFactory.EndOfLine(options.FormattingOptions.NewLine).WithAdditionalAnnotations(s_closingBraceNewlineAnnotation);
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
65var titleComment = Comment(string.Format(" // {0}", title)).WithAdditionalAnnotations(Formatter.Annotation);
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
123newDocComment = newDocComment.WithAdditionalAnnotations(Formatter.Annotation);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxAnnotationTests.cs (6)
45var newTrivia = oldTrivia.WithAdditionalAnnotations(annotation); 228var annotatedTrivia = trivia.WithAdditionalAnnotations(annotation1); 238var twiceAnnotatedTrivia = trivia2.WithAdditionalAnnotations(annotation2); 569var newTrivia = trivia.WithAdditionalAnnotations(annotation); 754return base.VisitTrivia(trivia).WithAdditionalAnnotations(_annotation); 806return base.VisitTrivia(trivia).WithAdditionalAnnotations(annotation);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
67Dim titleComment = SyntaxFactory.CommentTrivia(String.Format(" ' {0}", title)).WithAdditionalAnnotations(Formatter.Annotation)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (6)
Syntax\SyntaxAnnotationTests.vb (6)
40Dim newTrivia = oldTrivia.WithAdditionalAnnotations(annotation) 212Dim annotatedTrivia = trivia.WithAdditionalAnnotations(annotation1) 222Dim twiceAnnotatedTrivia = trivia2.WithAdditionalAnnotations(annotation2) 521Dim newTrivia = trivia.WithAdditionalAnnotations(annotation) 697Return MyBase.VisitTrivia(trivia).WithAdditionalAnnotations(_annotation) 741Return MyBase.VisitTrivia(trivia).WithAdditionalAnnotations(annotation)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTriviaExtensions.cs (1)
19=> trivia.WithAdditionalAnnotations(SyntaxAnnotation.ElasticAnnotation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (1)
82=> trivia.WithAdditionalAnnotations(this.GetOrCreateRealAnnotations(annotations).ToArray());