9 references to Replace
Microsoft.CodeAnalysis (1)
Syntax\SeparatedSyntaxList.cs (1)
551
var listWithFirstReplaced = this.
Replace
(nodeInList, newNodeList[0]);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
321
typeList = typeList.
Replace
(baseRecord,
Microsoft.CodeAnalysis.CSharp.Features (2)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
432
return node.WithTypes(node.Types.
Replace
(node.Types[0], primaryConstructorBase));
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
321
typeList = typeList.
Replace
(baseRecord,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SeparatedSyntaxListTests.cs (4)
182
newList = list.
Replace
(elementA, nodeD);
186
newList = list.
Replace
(elementB, nodeD);
190
newList = list.
Replace
(elementC, nodeD);
225
Assert.Throws<ArgumentOutOfRangeException>(() => list.
Replace
(nodeD, nodeE));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\CSharpSimplificationService.Expander.cs (1)
191
newParameters = newParameters.
Replace
(currentParameter, newParameter);