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