2 overrides of WithChanges
Microsoft.CodeAnalysis (1)
Text\ChangedText.cs (1)
152public override SourceText WithChanges(IEnumerable<TextChange> changes)
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
185public override SourceText WithChanges(IEnumerable<TextChange> changes)
32 references to WithChanges
Microsoft.CodeAnalysis (4)
Text\ChangedText.cs (1)
157var changed = _newText.WithChanges(changes) as ChangedText;
Text\SourceText.cs (3)
783return WithChanges(changes); 846/// Changes do not have to be in sorted order. However, <see cref="WithChanges(IEnumerable{TextChange})"/> will 853return this.WithChanges((IEnumerable<TextChange>)changes);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
173var updatedSourceText = Text.WithChanges(changes);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
67=> WithChangedText(Text.WithChanges(changes), cancellationToken);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
StringCopyPaste\StringCopyPasteCommandHandler.cs (1)
144var newTextAfterChanges = snapshotBeforePaste.AsText().WithChanges(textChanges);
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
202return base.WithChanges(changes);
Microsoft.CodeAnalysis.UnitTests (13)
Text\TextChangeTests.cs (13)
1012Assert.Equal(originalText.WithChanges(textChanges).ToString(), change2.ToString()); 1053Assert.Equal("bb34", originalText.WithChanges(changes).ToString()); 1067Assert.Equal(change2.ToString(), original.WithChanges(changes).ToString()); 1081Assert.Equal("bb1234", originalText.WithChanges(changes).ToString()); 1094Assert.Equal("bbbaa12aa4", originalText.WithChanges(changes).ToString()); 1108Assert.Equal("4bbaa5", originalText.WithChanges(changes).ToString()); 1122Assert.Equal("baababbbbbaabbbbba7", originalText.WithChanges(changes).ToString()); 1136Assert.Equal("b1b4", originalText.WithChanges(changes).ToString()); 1150Assert.Equal("bab234", originalText.WithChanges(changes).ToString()); 1164Assert.Equal("bbb5", originalText.WithChanges(changes).ToString()); 1178Assert.Equal("6", originalText.WithChanges(changes).ToString()); 1192Assert.Equal("5", originalText.WithChanges(changes).ToString()); 1206Assert.Equal("14", originalText.WithChanges(changes).ToString());
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Formatting\FormattingTests.vb (1)
3024Dim document2 = document.WithText((Await document.GetTextAsync()).WithChanges(result))
Microsoft.CodeAnalysis.Workspaces (8)
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (2)
28? document.WithText(oldText.WithChanges(result.GetTextChanges(cancellationToken))) 39? root.SyntaxTree.WithChangedText(oldText.WithChanges(result.GetTextChanges(cancellationToken))).GetRootAsync(cancellationToken)
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (1)
75var newText = oldText.WithChanges(changesToApply);
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
81var newText = oldText.WithChanges(adjustedChanges);
Remote\RemoteUtilities.cs (1)
59var newText = oldText.WithChanges(tuple.textChanges);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
173var updatedSourceText = Text.WithChanges(changes);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
67=> WithChangedText(Text.WithChanges(changes), cancellationToken);
Workspace\Workspace.cs (1)
1975this.ApplyDocumentTextChanged(documentId, oldText.WithChanges(textChanges));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Formatting\FormattingTestBase.cs (2)
90var resultText = sourceText.WithChanges(result); 129var actual = sourceText.WithChanges(result).ToString();