1 write to TextChange
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionChange.cs (1)
54TextChange = textChange;
43 references to TextChange
Microsoft.AspNetCore.App.Analyzers (2)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
256var textChange = change.TextChange;
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
135var textChange = change.TextChange;
Microsoft.AspNetCore.App.Analyzers.Test (27)
RouteEmbeddedLanguage\FrameworkParametersCompletionProviderTests.cs (20)
38Assert.Equal("id", change.TextChange.NewText); 39Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 66Assert.Equal("id", change.TextChange.NewText); 67Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 94Assert.Equal("id", change.TextChange.NewText); 95Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 122Assert.Equal("id", change.TextChange.NewText); 123Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 152Assert.Equal("id", change.TextChange.NewText); 153Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 180Assert.Equal("id", change.TextChange.NewText); 181Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 208Assert.Equal("id", change.TextChange.NewText); 209Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 236Assert.Equal("id", change.TextChange.NewText); 237Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 264Assert.Equal("ids", change.TextChange.NewText); 265Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 998Assert.Equal("id", change.TextChange.NewText); 999Assert.Equal(result.CompletionListSpan, change.TextChange.Span);
RouteEmbeddedLanguage\RoutePatternCompletionProviderTests.cs (7)
70Assert.Equal("alpha", change.TextChange.NewText); 123Assert.Equal("alpha", change.TextChange.NewText); 124Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 152Assert.Equal("alpha", change.TextChange.NewText); 153Assert.Equal(result.CompletionListSpan, change.TextChange.Span); 181Assert.Equal("alpha", change.TextChange.NewText); 182Assert.Equal(result.CompletionListSpan, change.TextChange.Span);
Microsoft.CodeAnalysis.EditorFeatures (2)
IntelliSense\AsyncCompletion\CommitManager.cs (2)
250var textChange = change.TextChange; 274edit.Replace(mappedSpan.Span, change.TextChange.NewText);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Completion\AbstractCompletionProviderTests.cs (2)
512var newText = text.WithChanges(commit.TextChange); 605var textChange = (await service.GetChangeAsync(document, firstItem, commitChar, CancellationToken.None)).TextChange;
Microsoft.CodeAnalysis.Features (7)
Completion\CompletionChange.cs (6)
24/// Individual smaller text changes that are more fine grained than the total <see cref="TextChange"/> value. 26/// provided, <see cref="TextChange"/> must still be provided as well. 120/// Creates a copy of this <see cref="CompletionChange"/> with the <see cref="TextChange"/> property changed. 129=> new(TextChange, textChanges, NewPosition, IncludesCommitCharacter); 135=> new(TextChange, TextChanges, newPostion, IncludesCommitCharacter); 141=> new(TextChange, TextChanges, NewPosition, includesCommitCharacter);
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
204var text = change.TextChange.NewText;
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\Completion\CompletionResultFactory.cs (3)
512var change = completionChange.TextChange; 676var completionChangeSpan = completionChange.TextChange.Span; 677var newText = completionChange.TextChange.NewText;