7 references to Replace
Microsoft.CodeAnalysis (2)
Syntax\SeparatedSyntaxList.cs (2)
494return new SeparatedSyntaxList<TNode>(this.GetWithSeparators().Replace(nodeInList, newNode)); 555return 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)
119newList = list.Replace(elementA, tokenD); 123newList = list.Replace(elementB, tokenD); 127newList = list.Replace(elementC, tokenD); 162Assert.Throws<ArgumentOutOfRangeException>(() => list.Replace(tokenD, nameE));