10 references to Replace
Microsoft.CodeAnalysis (1)
Syntax\SeparatedSyntaxList.cs (1)
550var listWithFirstReplaced = this.Replace(nodeInList, newNodeList[0]);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
317typeList = typeList.Replace(baseRecord,
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
317typeList = typeList.Replace(baseRecord,
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\CSharpSimplificationService.Expander.cs (1)
191newParameters = newParameters.Replace(currentParameter, newParameter);
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
Syntax\SeparatedSyntaxListTests.vb (5)
101newList = list.Replace(elementA, nodeD) 105newList = list.Replace(elementB, nodeD) 109newList = list.Replace(elementC, nodeD) 144Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Replace(nodeD, nodeE)) 190Assert.Throws(Of ArgumentOutOfRangeException)(Function() list.Replace(nodeD, nodeE))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
2693Return typeParameterList.WithParameters(typeParameterList.Parameters.Replace(typeParameter, typeParameter.WithTypeParameterConstraintClause(clause)))