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