23 references to WithChanges
dotnet (1)
Commands\Run\FileBasedAppSourceEditor.cs (1)
83SourceFile = SourceFile with { Text = SourceFile.Text.WithChanges([change]) };
dotnet-format (2)
Formatters\FinalNewlineFormatter.cs (2)
45sourceText = sourceText.WithChanges(addNewlineChange); 55sourceText = sourceText.WithChanges(removeNewlineChange);
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60=> WithChangedText(Text.WithChanges(change), cancellationToken);
Microsoft.CodeAnalysis (1)
Text\SourceText.cs (1)
880return this.WithChanges(new TextChange(span, newText));
Microsoft.CodeAnalysis.Analyzers (2)
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (1)
177var newText = text.WithChanges(textChange);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60=> WithChangedText(Text.WithChanges(change), cancellationToken);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60=> WithChangedText(Text.WithChanges(change), cancellationToken);
Microsoft.CodeAnalysis.CSharp.Features (1)
Snippets\CSharpSnippetFunctionService.cs (1)
59var documentWithCaseAdded = document.WithText(text.WithChanges(textChange));
Microsoft.CodeAnalysis.Features (9)
CodeFixes\Configuration\ConfigurationUpdater.cs (4)
667return (result.WithChanges(textChange), lastValidHeaderSpanEnd, lastValidSpecificHeaderSpanEnd); 721return result.WithChanges(textChange); 731return result.WithChanges(textChange); 769return result.WithChanges(textChange);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (1)
252text = text.WithChanges(textChange);
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
129originalText = originalText.WithChanges(textChange);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
182var newText = text.WithChanges(
Snippets\SnippetFunctionService.cs (1)
46var documentWithFullyQualifiedTypeName = document.WithText(text.WithChanges(textChange));
Wrapping\AbstractCodeActionComputer.cs (1)
90var newSourceText = OriginalSourceText.WithChanges(
Microsoft.CodeAnalysis.VisualBasic.Features (3)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
252Dim updatedText = text.WithChanges(New TextChange(TextSpan.FromBounds(insertionPoint, insertionPoint), stringToAppend))
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.MoveToLineCodeAction.vb (1)
38Dim textWithoutLine = text.WithChanges(New TextChange(textLineToMove.SpanIncludingLineBreak, ""))
Snippets\VisualBasicSnippetFunctionService.vb (1)
50Dim documentWithCaseAdded = document.WithText(text.WithChanges(textChange))
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60=> WithChangedText(Text.WithChanges(change), cancellationToken);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60=> WithChangedText(Text.WithChanges(change), cancellationToken);