3 writes to Span
Microsoft.CodeAnalysis.Features (3)
Completion\CompletionContext.cs (1)
230item.Span = CompletionListSpan;
Completion\CompletionItem.cs (1)
195Span = span;
Completion\CompletionList.cs (1)
91item.Span = defaultSpan;
47 references to Span
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (4)
259return new TextChange(selectedItem.Span, displayText.Remove(displayText.Length - SpaceEqualsString.Length)); 266return new TextChange(selectedItem.Span, displayText.Remove(displayText.Length - EqualsString.Length)); 273return new TextChange(selectedItem.Span, displayText.Remove(displayText.Length - ColonString.Length)); 277return new TextChange(selectedItem.Span, displayText);
Completion\CompletionProviders\CrefCompletionProvider.cs (1)
382return Task.FromResult<TextChange?>(new TextChange(selectedItem.Span, insertionText));
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionProvider.cs (1)
60var position = item.Span.Start;
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (1)
283selectedItem.Span,
Completion\CompletionProviders\PartialTypeCompletionProvider.cs (1)
88return new TextChange(selectedItem.Span, insertionText);
Completion\CompletionProviders\TupleNameCompletionProvider.cs (1)
119selectedItem.Span,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Completion\AbstractCompletionProviderTests.cs (1)
763var textChange = new TextChange(new TextSpan(firstItem.Span.End, 0), commitChar.ToString());
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Completion\CompletionServiceTests.cs (1)
126return Task.FromResult(CompletionChange.Create(new TextChange(item.Span, nameof(DebugAssertTestCompletionProvider))));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
IntelliSense\CSharpCompletionCommandHandlerTests.vb (1)
8281Return Task.FromResult(CompletionChange.Create(New TextChange(item.Span, commitText)))
Microsoft.CodeAnalysis.Features (28)
Completion\CommonCompletionProvider.cs (2)
83new TextChange(item.Span, item.DisplayText); 113?? new TextChange(item.Span, item.DisplayText);
Completion\CompletionContext.cs (2)
49/// This is the most common value used for <see cref="CompletionItem.Span"/> and will 50/// be automatically assigned to any <see cref="CompletionItem"/> that has no <see cref="CompletionItem.Span"/> specified.
Completion\CompletionItem.cs (4)
155/// specified by <see cref="Span"/>. 358var newSpan = span.HasValue ? span.Value : Span; 371if (newSpan == Span && 408/// Creates a copy of this <see cref="CompletionItem"/> with the <see cref="Span"/> property changed.
Completion\CompletionProvider.cs (1)
79=> Task.FromResult(CompletionChange.Create(new TextChange(item.Span, item.DisplayText)));
Completion\CompletionService.cs (3)
170/// This is the most common value used for <see cref="CompletionItem.Span"/>. 262Debug.Assert(item.Span == change.TextChange.Span || item.IsComplexTextEdit); 267return CompletionChange.Create(new TextChange(item.Span, item.DisplayText));
Completion\Providers\AbstractAwaitCompletionProvider.cs (3)
210builder.Add(new TextChange(item.Span, _awaitKeyword)); 214var position = item.Span.Start; 229builder.Add(new TextChange(TextSpan.FromBounds(dotToken.Value.SpanStart, item.Span.End), replacementText));
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
280var itemSpan = item.Span;
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
280var textChange = new TextChange(item.Span, assemblyName);
Completion\Providers\AbstractKeywordCompletionProvider.cs (1)
74=> Task.FromResult((TextChange?)new TextChange(item.Span, item.DisplayText));
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
116return Task.FromResult<TextChange?>(new TextChange(selectedItem.Span, insertionText));
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
417=> Task.FromResult<TextChange?>(new TextChange(selectedItem.Span, GetInsertionText(selectedItem, ch)));
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (4)
135return CompletionChange.Create(new TextChange(completionItem.Span, completionText)); 138var completionItemPosition = completionItem.Span.Start; 160builder.Add(new TextChange(completionItem.Span, insertText)); 199return await IsInImportsDirectiveAsync(document, completionItem.Span.Start, cancellationToken).ConfigureAwait(false);
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (3)
49var lspSnippet = await RoslynLSPSnippetConverter.GenerateLSPSnippetAsync(allChangesDocument, snippetChange.FinalCaretPosition, snippetChange.Placeholders, change, item.Span.Start, cancellationToken).ConfigureAwait(false); 53if (change.Span.Start > item.Span.Start) 55var textSpan = TextSpan.FromBounds(item.Span.Start, change.Span.End);
Completion\Providers\SymbolCompletionItem.cs (1)
199position = item.Span.Start;
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Completion\CompletionResultFactory.cs (1)
555return CompletionChange.Create(new TextChange(completionItem.Span, completionItem.DisplayText));
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Completion\CompletionProviders\NamedParameterCompletionProvider.vb (3)
235change = New TextChange(symbolItem.Span, insertionText.Substring(0, insertionText.Length - s_colonEquals.Length)) 237change = New TextChange(selectedItem.Span, insertionText.Substring(0, insertionText.Length - (s_colonEquals.Length - 1))) 239change = New TextChange(symbolItem.Span, insertionText)
Completion\CompletionProviders\PartialTypeCompletionProvider.vb (1)
77Return New TextChange(selectedItem.Span, insertionText)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Completion\MockCompletionProvider.vb (1)
27Return Task.FromResult(Of TextChange?)(New TextChange(selectedItem.Span, "InsertionText"))
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Snippets\SnippetCompletionProvider.vb (1)
105Dim trackingSpan = triggerSnapshot.CreateTrackingSpan(completionItem.Span.ToSpan(), SpanTrackingMode.EdgeInclusive)