12 references to ReplaceTrivia
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\FormattingEngineTests.cs (1)
2543root = root.ReplaceTrivia(markerTrivia, annotatedMarkerTrivia);
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (1)
180return root.ReplaceTrivia(leadingDirective.ParentTrivia, SyntaxFactory.ElasticMarker);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxAnnotationTests.cs (3)
229var newRoot = tree.GetCompilationUnitRoot().ReplaceTrivia(trivia, annotatedTrivia); 239var twiceAnnotatedRoot = newRoot.ReplaceTrivia(trivia2, twiceAnnotatedTrivia); 570var newRoot = syntaxTree.GetCompilationUnitRoot().ReplaceTrivia(trivia, newTrivia);
Syntax\SyntaxNodeTests.cs (2)
2397var expr2 = expr.ReplaceTrivia(trivia, twoSpaces); 2423var ex1 = ex.ReplaceTrivia(comment1, newComment1);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
Syntax\SyntaxAnnotationTests.vb (3)
213Dim newRoot = tree.GetRoot().ReplaceTrivia(trivia, annotatedTrivia) 223Dim twiceAnnotatedRoot = newRoot.ReplaceTrivia(trivia2, twiceAnnotatedTrivia) 522Dim newRoot = tree.GetRoot().ReplaceTrivia(trivia, newTrivia)
Syntax\SyntaxTokenFactoryTests.vb (1)
174Dim bex2 = bex.ReplaceTrivia(trivia, SyntaxFactory.Whitespace(" "))
TestSyntaxNodes.vb (1)
1600Dim ex1 = ex.ReplaceTrivia(comment1, newComment1)