8 references to Replace
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
127return leadingTrivia.Replace(existingDocComment, newDocComment);
Microsoft.CodeAnalysis.CSharp.Features (2)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider_DocumentationComments.cs (1)
74return typeDeclaration.WithLeadingTrivia(triviaList.Replace(trivia, updatedTrivia));
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider_DocComments.cs (1)
127return leadingTrivia.Replace(existingDocComment, newDocComment);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxTriviaListTests.cs (4)
132newList = list.Replace(elementA, triviaD); 136newList = list.Replace(elementB, triviaD); 140newList = list.Replace(elementC, triviaD); 221Assert.Throws<ArgumentOutOfRangeException>(() => list.Replace(triviaD, triviaE));
Microsoft.CodeAnalysis.Features (1)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Pragma.cs (1)
191triviaList = triviaList.Replace(triviaToToggle, toggledTrivia);