6 instantiations of SpellCheckSpan
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
SpellCheck\AbstractSpellCheckSpanTests.cs (1)
41=> annotations.SelectManyAsArray(kvp => kvp.Value.Select(span => new SpellCheckSpan(span, ConvertKind(kvp.Key))));
Microsoft.CodeAnalysis.Features (5)
SpellCheck\AbstractSpellCheckSpanService.cs (5)
138AddSpan(new SpellCheckSpan(token.Span, SpellCheckKind.String)); 189AddSpan(new SpellCheckSpan(TextSpan.FromBounds(spanStart, spanEnd), SpellCheckKind.String)); 236AddSpan(new SpellCheckSpan(token.Span, SpellCheckKind.Identifier)); 251AddSpan(new SpellCheckSpan(trivia.Span, SpellCheckKind.Comment)); 271AddSpan(new SpellCheckSpan(token.Span, SpellCheckKind.Comment));
16 references to SpellCheckSpan
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
SpellCheck\AbstractSpellCheckSpanTests.cs (2)
37Assert.Equal<SpellCheckSpan>(expected, actual); 40private static ImmutableArray<SpellCheckSpan> Flatten(IDictionary<string, ImmutableArray<TextSpan>> annotations)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Cohost\Handlers\DocumentSpellCheck.cs (1)
31foreach (var span in spans)
Microsoft.CodeAnalysis.Features (7)
SpellCheck\AbstractSpellCheckSpanService.cs (6)
23public async Task<ImmutableArray<SpellCheckSpan>> GetSpansAsync(Document document, CancellationToken cancellationToken) 29ImmutableArray<SpellCheckSpan> GetSpans() 35using var _ = ArrayBuilder<SpellCheckSpan>.GetInstance(out var spans); 49ArrayBuilder<SpellCheckSpan> spans) 56private readonly ArrayBuilder<SpellCheckSpan> _spans = spans; 58private void AddSpan(SpellCheckSpan span)
SpellCheck\ISpellCheckingSpanService.cs (1)
17Task<ImmutableArray<SpellCheckSpan>> GetSpansAsync(Document document, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (2)
156ImmutableArray<SpellCheckSpan> spans, 186var span = spans[i];
Handler\SpellCheck\SpellCheckPullCache.cs (4)
19internal sealed class SpellCheckPullCache(string uniqueKey) : VersionedPullCache<(Checksum parseOptionsChecksum, Checksum textChecksum), SpellCheckState, ImmutableArray<SpellCheckSpan>>(uniqueKey) 32public override Checksum ComputeChecksum(ImmutableArray<SpellCheckSpan> data, string language) 38public override async Task<ImmutableArray<SpellCheckSpan>> ComputeDataAsync(SpellCheckState state, CancellationToken cancellationToken) 44private void SerializeSpellCheckSpan(SpellCheckSpan span, ObjectWriter writer)