13 references to Replace
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
634.Replace(originalClassDoc.Content[0], originalClassDoc.Content[0])
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
634.Replace(originalClassDoc.Content[0], originalClassDoc.Content[0])
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxListTests.cs (1)
224Assert.Throws<ArgumentException>(() => list.Replace(nodeD, nodeE));
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1870return clauses.Replace(clause, clause.WithConstraints(constraints));
Microsoft.CodeAnalysis.VisualBasic.Features (2)
InvertIf\VisualBasicInvertIfCodeRefactoringProvider.SingleLine.vb (2)
64trueStatements = trueStatements.Replace(lastTrue, newLastTrue) 65falseStatements = falseStatements.Replace(lastFalse, newLastFalse)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
Syntax\SyntaxListTests.vb (5)
95newList = list.Replace(elementA, nodeD) 99newList = list.Replace(elementB, nodeD) 103newList = list.Replace(elementC, nodeD) 138Assert.Throws(Of ArgumentException)(Function() list.Replace(nodeD, nodeE)) 184Assert.Throws(Of ArgumentException)(Function() list.Replace(nodeD, nodeE))
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
CodeModel\VisualBasicCodeModelService.vb (2)
4302inheritsStatements = inheritsStatements.Replace(inheritsStatement, newInheritsStatement) 4374implementsStatements = implementsStatements.Replace(implementsStatement, newImplementsStatement)