5 references to Replace
dotnet (1)
Commands\Run\FileBasedAppSourceEditor.cs (1)
239
SourceFile = SourceFile with { Text = SourceFile.Text.
Replace
(start: start, length: length, newText: string.Empty) };
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (2)
63
var textWithOpenParenthesis = text.
Replace
(openParenthesisPosition, 0, "(");
113
var textWithCloseParenthesis = sourceText.
Replace
(closeParenPosition, 0, ")");
Microsoft.CodeAnalysis.CSharp.Features (2)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (2)
63
var textWithOpenParenthesis = text.
Replace
(openParenthesisPosition, 0, "(");
113
var textWithCloseParenthesis = sourceText.
Replace
(closeParenPosition, 0, ")");