7 references to Replace
Microsoft.CodeAnalysis (2)
Syntax\SeparatedSyntaxList.cs (2)
494
return new SeparatedSyntaxList<TNode>(this.GetWithSeparators().
Replace
(nodeInList, newNode));
555
return new SeparatedSyntaxList<TNode>(nodesWithSeps.
Replace
(separatorToken, newSeparator));
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertAnonymousType\CSharpConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
58
.
Replace
(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxNodeOrTokenListTests.cs (4)
119
newList = list.
Replace
(elementA, tokenD);
123
newList = list.
Replace
(elementB, tokenD);
127
newList = list.
Replace
(elementC, tokenD);
162
Assert.Throws<ArgumentOutOfRangeException>(() => list.
Replace
(tokenD, nameE));