208 references to WithChanges
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60
=> WithChangedText(Text.
WithChanges
(change), cancellationToken);
IdeCoreBenchmarks (5)
IncrementalSourceGeneratorBenchmarks.cs (1)
161
var changedText = sourceText.
WithChanges
(new TextChange(sourceText.Lines[0].Span, $"// added text{i}"));
SyntacticChangeRangeBenchmark.cs (4)
54
var newText = _text.
WithChanges
(new TextChange(new TextSpan(_index + 8, 1), "m"));
63
var newText = _text.
WithChanges
(new TextChange(new TextSpan(_index, 0), "var v = x "));
72
var newText = _text.
WithChanges
(new TextChange(new TextSpan(0, addedText.Length), addedText));
81
var newText = _text.
WithChanges
(new TextChange(new TextSpan(_text.Length - addedText.Length, addedText.Length), addedText));
Microsoft.CodeAnalysis (1)
Text\SourceText.cs (1)
861
return this.
WithChanges
(new TextChange(span, newText));
Microsoft.CodeAnalysis.Analyzers (2)
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (1)
175
var newText = text.
WithChanges
(textChange);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60
=> WithChangedText(Text.
WithChanges
(change), cancellationToken);
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60
=> WithChangedText(Text.
WithChanges
(change), cancellationToken);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60
=> WithChangedText(Text.
WithChanges
(change), cancellationToken);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
264
newText = newText.
WithChanges
(textChange);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
22617
var newText = text.
WithChanges
(new TextChange(new TextSpan(pos, 0), " ")); // add space before closing-paren
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\BindingAwaitTests.cs (1)
30
SourceText newText = text.
WithChanges
(change);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\Metadata\MetadataTypeTests.cs (2)
367
var newIText = oldIText.
WithChanges
(change);
382
newIText = oldIText.
WithChanges
(change);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (44)
IncrementalParsing\IncrementalParsingTests.cs (42)
497
text = text.
WithChanges
(change);
529
text = text.
WithChanges
(change);
574
text = text.
WithChanges
(new TextChange(prefixSpan, ""), new TextChange(suffixSpan, ""));
626
var withOpenBraceDeletedText = initialText.
WithChanges
(new TextChange(openBraceLine.SpanIncludingLineBreak, ""));
837
var withCloseBraceDeletedText = withOpenBraceDeletedText.
WithChanges
(new TextChange(closeBraceLine.SpanIncludingLineBreak, ""));
1395
var newText = text.
WithChanges
(new TextChange(new TextSpan(0, 8), ""));
1409
var newText = text.
WithChanges
(new TextChange(new TextSpan(0, 8), ""));
3177
var text2 = text.
WithChanges
(
3200
var newText = oldText.
WithChanges
(new TextChange(new TextSpan(0, 0), "{"));
3216
var newText = oldText.
WithChanges
(new TextChange(new TextSpan(0, 0), @"System.Console.WriteLine(false)
3275
var newText = oldText.
WithChanges
(new TextChange(new TextSpan(0, 0), @"if (false)
3333
var newIText = oldIText.
WithChanges
(change);
3347
newIText = oldIText.
WithChanges
(change);
3417
currIText = currIText.
WithChanges
(change);
3453
currIText = currIText.
WithChanges
(change);
3531
var newText = oldText.
WithChanges
(change); // f is a method decl parameter
3630
text = text.
WithChanges
(change);
3651
text = text.
WithChanges
(change);
3672
text = text.
WithChanges
(change);
3693
text = text.
WithChanges
(change);
3714
text = text.
WithChanges
(change);
3736
text = text.
WithChanges
(change);
3760
text = text.
WithChanges
(change);
3784
text = text.
WithChanges
(change);
3808
text = text.
WithChanges
(change);
3832
text = text.
WithChanges
(change);
3856
text = text.
WithChanges
(change);
3882
text = text.
WithChanges
(change);
3907
text = text.
WithChanges
(change);
3933
text = text.
WithChanges
(change);
3959
text = text.
WithChanges
(change);
3977
text = text.
WithChanges
(change);
3995
text = text.
WithChanges
(change);
4013
text = text.
WithChanges
(change);
4027
text = text.
WithChanges
(change);
4041
text = text.
WithChanges
(change);
4056
text = text.
WithChanges
(change);
4093
text = text.
WithChanges
(change);
4117
text = text.
WithChanges
(
4156
var newText = oldText.
WithChanges
(
4168
var newText = oldText.
WithChanges
(new TextChange(new TextSpan(locationOfChange, widthOfChange), ""));
4194
var newText = oldText.
WithChanges
(new TextChange(new TextSpan(oldText.Length, 0), newChar.ToString()));
Syntax\SyntaxNodeTests.cs (2)
909
var tree2 = tree1.WithChangedText(tree1.GetText().
WithChanges
(new TextChange(default, " ")));
920
var tree2 = tree1.WithChangedText(tree1.GetText().
WithChanges
(new TextChange(new TextSpan(22, 0), " return; ")));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
SyntaxTreeExtensions.cs (1)
20
var newFullText = oldFullText.
WithChanges
(new TextChange(new TextSpan(offset, length), newText));
Microsoft.CodeAnalysis.EditorFeatures (7)
EditorConfigSettings\Updater\NamingStyles\NamingStyleSettingsUpdater.cs (1)
101
return sourceText.
WithChanges
(textChange);
EditorConfigSettings\Updater\NamingStyles\SourceTextExtensions.cs (1)
59
return sourceText.
WithChanges
(textChange);
EditorConfigSettings\Updater\SettingsUpdateHelper.cs (4)
220
return (editorConfigText.
WithChanges
(textChange), lastValidHeaderSpanEnd, lastValidSpecificHeaderSpanEnd);
306
return (editorConfigText.
WithChanges
(new TextChange(new TextSpan(lastValidSpecificHeaderSpanEnd.Value.Span.End, 0), newEntry)), lastValidHeaderSpanEnd, lastValidSpecificHeaderSpanEnd);
315
return (editorConfigText.
WithChanges
(new TextChange(new TextSpan(lastValidHeaderSpanEnd.Value.Span.End, 0), newEntry)), lastValidHeaderSpanEnd, lastValidSpecificHeaderSpanEnd);
349
var result = editorConfigText.
WithChanges
(new TextChange(new TextSpan(editorConfigText.Length, 0), prefix + newEntry));
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCommitter.cs (1)
189
var newFullText = fullText.
WithChanges
(textChange);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Completion\AbstractCompletionProviderTests.cs (3)
658
var newText = text.
WithChanges
(commit.TextChange);
764
text = text.
WithChanges
(textChange);
770
text = text.
WithChanges
(textChange);
Microsoft.CodeAnalysis.Features (5)
CodeFixes\Configuration\ConfigurationUpdater.cs (4)
667
return (result.
WithChanges
(textChange), lastValidHeaderSpanEnd, lastValidSpecificHeaderSpanEnd);
721
return result.
WithChanges
(textChange);
731
return result.
WithChanges
(textChange);
769
return result.
WithChanges
(textChange);
Wrapping\AbstractCodeActionComputer.cs (1)
90
var newSourceText = OriginalSourceText.
WithChanges
(
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
ExternalAccess\Razor\SimplifyMethodHandler.cs (1)
56
var newSourceText = originalSourceText.
WithChanges
(pendingChange);
Handler\DocumentChanges\DidChangeHandler.cs (1)
77
text = text.
WithChanges
(ProtocolConversions.ContentChangeEventToTextChange(change, text));
Handler\InlineCompletions\InlineCompletionsHandler.cs (2)
189
var documentWithSnippetText = originalSourceText.
WithChanges
(textChange);
261
originalSourceText.
WithChanges
(new TextChange(snippetSpan, parsedSnippet.DefaultText)));
Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
220
var indentedText = textToIndent.
WithChanges
(new TextChange(new TextSpan(lineToIndent.End, 0), indentText));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60
=> WithChangedText(Text.
WithChanges
(change), cancellationToken);
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
NullableEnablePublicApiFix.cs (1)
67
SourceText newSourceText = sourceText.
WithChanges
(new TextChange(new TextSpan(0, 0), extraLine));
Microsoft.CodeAnalysis.UnitTests (82)
Text\SourceTextTests.cs (1)
193
var changed = text.
WithChanges
(change);
Text\TextChangeTests.cs (81)
110
var newText = text.
WithChanges
(
127
Assert.Throws<ArgumentException>(() => text.
WithChanges
(changes));
140
var newText = text.
WithChanges
(changes);
155
var newText = text.
WithChanges
(changes);
164
var newText = text.
WithChanges
(
176
var newText = text.
WithChanges
(
193
var newText = text.
WithChanges
(changes);
202
var newText = text.
WithChanges
(
213
var newText = text.
WithChanges
(
228
var newText = text.
WithChanges
(
238
var newText = text.
WithChanges
(
262
var newText = text.
WithChanges
(changes);
293
var changedText = SourceText.From(originalText).
WithChanges
(changes);
659
var change1 = original.
WithChanges
(new TextChange(new TextSpan(5, 6), string.Empty)); // prepare a ChangedText instance
660
var change2 = change1.
WithChanges
(); // this should not cause exception
670
var change1 = original.
WithChanges
(new TextChange(new TextSpan(5, 6), string.Empty)); // prepare a ChangedText instance
671
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(2, 0), string.Empty)); // this should not cause exception
680
var change1 = original.
WithChanges
(new TextChange(new TextSpan(6, 0), "Cruel "));
681
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(7, 3), "oo"));
695
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 3), "aa"));
696
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(2, 0), "bb"));
709
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 1), "aaa"));
710
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(3, 0), "bb"));
723
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 3), "aa"));
724
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(2, 1), "bb"));
736
var change1 = original.
WithChanges
(new TextChange(new TextSpan(6, 0), "Cruel "));
737
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(2, 14), "ar"));
750
var change1 = original.
WithChanges
(new TextChange(new TextSpan(6, 0), "Cruel "));
751
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(4, 6), " Bel"));
764
var change1 = original.
WithChanges
(new TextChange(new TextSpan(6, 0), "Cruel "));
765
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(7, 6), "wazy V"));
778
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 0), "aa"));
779
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(1, 0), "bb"));
791
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 3), "aa"));
792
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(1, 0), "bb"));
804
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 0), "aa"));
805
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(1, 1), "bb"));
817
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 0), "aa"));
818
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(1, 2), "bb"));
830
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 0), "aa"));
831
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(1, 3), "bb"));
844
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 3), "aa"));
845
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(1, 1), "bb"));
858
var change1 = original.
WithChanges
(new TextChange(new TextSpan(1, 3), "aa"));
859
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(1, 3), "bb"));
870
var change1 = original.
WithChanges
(new TextChange(new TextSpan(4, 0), "o "));
871
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(6, 0), "World"));
884
var change1 = original.
WithChanges
(new TextChange(new TextSpan(4, 0), "o"));
885
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(6, 0), "World"));
900
var change1 = original.
WithChanges
(new TextChange(new TextSpan(8, 0), "l"));
901
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(4, 0), "o"));
916
var change1 = original.
WithChanges
(new TextChange(new TextSpan(4, 0), " World"));
918
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(4, 0), "o"));
934
c => c.
WithChanges
(new TextChange(new TextSpan(4, 0), "o ")),
935
c => c.
WithChanges
(new TextChange(new TextSpan(6, 0), "World")));
1070
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 2), "a"));
1071
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 2), "bb"));
1084
var change1 = original.
WithChanges
(new TextChange(new TextSpan(0, 0), "aa"), new TextChange(new TextSpan(1, 1), "aa"));
1085
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 1), "b"), new TextChange(new TextSpan(2, 2), ""));
1098
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 0), "a"));
1099
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 2), ""), new TextChange(new TextSpan(2, 0), "bb"));
1112
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 1), "aa"), new TextChange(new TextSpan(3, 1), "aa"));
1113
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 0), "bbb"));
1125
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 3), "a"), new TextChange(new TextSpan(5, 0), "aaa"));
1126
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 2), ""), new TextChange(new TextSpan(3, 1), "bb"));
1139
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 1), "aaaaa"), new TextChange(new TextSpan(3, 1), "aaaa"), new TextChange(new TextSpan(6, 1), "aaaaa"));
1140
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 0), "b"), new TextChange(new TextSpan(2, 0), "b"), new TextChange(new TextSpan(3, 4), "bbbbb"), new TextChange(new TextSpan(9, 5), "bbbbb"), new TextChange(new TextSpan(15, 3), ""));
1153
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 1), "a"));
1154
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 1), "b"), new TextChange(new TextSpan(2, 2), "b"));
1167
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 1), "aa"));
1168
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 0), "b"), new TextChange(new TextSpan(1, 2), "b"));
1181
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 2), "a"), new TextChange(new TextSpan(3, 2), "a"));
1182
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 3), "bbb"));
1195
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 4), ""), new TextChange(new TextSpan(5, 1), ""));
1196
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 1), ""), new TextChange(new TextSpan(1, 0), ""));
1209
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 2), ""), new TextChange(new TextSpan(3, 1), ""), new TextChange(new TextSpan(4, 0), ""), new TextChange(new TextSpan(4, 0), ""), new TextChange(new TextSpan(4, 0), ""));
1210
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 1), ""), new TextChange(new TextSpan(1, 1), ""), new TextChange(new TextSpan(2, 0), ""));
1223
var change1 = originalText.
WithChanges
(new TextChange(new TextSpan(0, 1), ""), new TextChange(new TextSpan(2, 1), ""));
1224
var change2 = change1.
WithChanges
(new TextChange(new TextSpan(0, 0), ""), new TextChange(new TextSpan(1, 1), ""));
1256
var changedText = text.
WithChanges
(edits1);
1267
var changedText2 = changedText.
WithChanges
(edits2);
Microsoft.CodeAnalysis.VisualBasic.Features (3)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (1)
252
Dim updatedText = text.
WithChanges
(New TextChange(TextSpan.FromBounds(insertionPoint, insertionPoint), stringToAppend))
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.MoveToLineCodeAction.vb (1)
38
Dim textWithoutLine = text.
WithChanges
(New TextChange(textLineToMove.SpanIncludingLineBreak, ""))
Snippets\VisualBasicSnippetFunctionService.vb (1)
50
Dim documentWithCaseAdded = document.WithText(text.
WithChanges
(textChange))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (16)
IncrementalParser\IncrementalParser.vb (16)
88
text = text.
WithChanges
(New TextChange(span, text.ToString(span)))
109
Dim newText = text.
WithChanges
(New TextChange(New TextSpan(text.Length, 0), _s.Substring(i, 1)))
126
Dim newText = oldText.
WithChanges
(New TextChange(New TextSpan(pos, 0), "'"))
135
Dim anotherText = newText.
WithChanges
(New TextChange(New TextSpan(pos, 1), ""))
702
Dim newText = oldText.
WithChanges
(New TextChange(New TextSpan(22, 0), " Sub "))
741
Dim newText = oldText.
WithChanges
(New TextChange(New TextSpan(103, 0), " "))
767
Dim newText = oldText.
WithChanges
(New TextChange(New TextSpan(insertionPoint, 0), " "))
792
Dim newText = oldText.
WithChanges
(New TextChange(New TextSpan(insertionPoint, replace.Length), "{"))
827
Dim newText = oldText.
WithChanges
(New TextChange(New TextSpan(pos, 0), "'"))
1122
Dim newIText = oldIText.
WithChanges
(change)
1159
Dim newIText = oldIText.
WithChanges
(change)
1165
newIText = newIText.
WithChanges
(change)
1205
Dim newText = oldText.
WithChanges
(change)
1223
Dim newText = oldText.
WithChanges
(change)
1241
Dim newText = oldText.
WithChanges
(change)
1675
Dim newText = oldText.
WithChanges
(change)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (5)
ParserTestUtilities.vb (4)
256
newText = oldText.
WithChanges
(New TextChange(node.changeSpan, node.changeText))
258
newText = oldText.
WithChanges
(New TextChange(New TextSpan(0, 0), node.changeText))
260
newText = oldText.
WithChanges
(New TextChange(node.changeSpan, ""))
262
newText = oldText.
WithChanges
(New TextChange(node.changeSpan, node.changeText))
SyntaxTreeExtensions.vb (1)
12
Dim newFullText = oldFullText.
WithChanges
(New TextChange(New TextSpan(offset, length), newText))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60
=> WithChangedText(Text.
WithChanges
(change), cancellationToken);
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
567
var newText = existingText.
WithChanges
(new TextChange(new TextSpan(existingText.Length, length: 0), " With Change"));
SymbolKeyTests.cs (3)
874
var updated = sourceText.
WithChanges
(new TextChange(new TextSpan(position, 0), "insertion"));
921
var updated = sourceText.
WithChanges
(new TextChange(new TextSpan(position, 0), "insertion"));
1419
var newTree = syntaxTree.WithChangedText(text.
WithChanges
(new TextChange(new TextSpan(0, text.Length), text.ToString().Replace(" ", " "))));
SyntaxPathTests.cs (3)
95
var newText = text.
WithChanges
(new TextChange(new TextSpan(0, 0), "class C {}"));
109
var newText = text.
WithChanges
(new TextChange(new TextSpan(0, text.Length), ""));
430
var newFullText = oldFullText.
WithChanges
(new TextChange(new TextSpan(offset, length), newText));
Microsoft.VisualStudio.LanguageServices (1)
Implementation\AbstractEditorFactory.cs (1)
364
formattedText = formattedText.
WithChanges
(new TextChange(currentSpan, targetLineEnding));
Microsoft.VisualStudio.LanguageServices.UnitTests (6)
Preview\PreviewChangesTests.vb (6)
42
Dim forkedDocument = document.WithText(text.
WithChanges
(textChange))
95
Dim forkedDocument = document.WithText(text.
WithChanges
(textChange))
137
Dim forkedDocument = document.WithText(text.
WithChanges
(textChange))
190
Dim forkedDocument = document.WithText(text.
WithChanges
(textChange))
281
.WithDocumentText(documentId1, text1.
WithChanges
(textChange1)) _
282
.WithDocumentText(documentId2, text2.
WithChanges
(textChange2))
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60
=> WithChangedText(Text.
WithChanges
(change), cancellationToken);
Roslyn.VisualStudio.Next.UnitTests (2)
Remote\RemoteHostClientServiceFactoryTests.cs (1)
51
var newText = oldText.
WithChanges
([new TextChange(new TextSpan(0, 1), "abc")]);
Services\ServiceHubServicesTests.cs (1)
105
var newText = oldText.
WithChanges
(new TextChange(TextSpan.FromBounds(0, 0), "/* test */"));
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
60
=> WithChangedText(Text.
WithChanges
(change), cancellationToken);