3 references to ReplaceTrivia
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxNodeTests.cs (2)
2386
var expr2 = expr.
ReplaceTrivia
(deepTrivia, (tr, tr2) => twoSpace);
2407
var replaced = expr.
ReplaceTrivia
(trivia, (tr, tr2) => twoSpaces);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Formatting\FormattingTriviaTests.cs (1)
1745
tree = tree.
ReplaceTrivia
(tree.DescendantTrivia().Where(tr => tr.IsKind(SyntaxKind.EndOfLineTrivia)), (o, r) => SyntaxFactory.ElasticMarker);