3 instantiations of SpellCheckRange
Microsoft.CodeAnalysis.Razor.Workspaces (2)
SpellCheck\SpellCheckService.cs (2)
56ranges.Add(new((int)VSInternalSpellCheckableRangeKind.Comment, commentBlockSyntax.Comment.SpanStart, commentBlockSyntax.Comment.Span.Length)); 79ranges.Add(new((int)VSInternalSpellCheckableRangeKind.String, textLiteralSyntax.SpanStart, textLiteralSyntax.Span.Length));
Microsoft.CodeAnalysis.Remote.Razor (1)
SpellCheck\RemoteCSharpSpellCheckRangeProvider.cs (1)
28return csharpRanges.SelectAsArray(static r => new SpellCheckRange((int)r.Kind, r.StartIndex, r.Length));
9 references to SpellCheckRange
Microsoft.CodeAnalysis.Razor.Workspaces (8)
SpellCheck\ICSharpSpellCheckRangeProvider.cs (1)
13Task<ImmutableArray<SpellCheckRange>> GetCSharpSpellCheckRangesAsync(DocumentContext documentContext, CancellationToken cancellationToken);
SpellCheck\SpellCheckService.cs (7)
24using var builder = new PooledArrayBuilder<SpellCheckRange>(); 44private static void AddRazorSpellCheckRanges(ref PooledArrayBuilder<SpellCheckRange> ranges, RazorSyntaxTree syntaxTree) 84private void AddCSharpSpellCheckRanges(ref PooledArrayBuilder<SpellCheckRange> ranges, ImmutableArray<SpellCheckRange> csharpRanges, RazorCodeDocument codeDocument) 88foreach (var range in csharpRanges) 103private static int[] ConvertSpellCheckRangesToIntTriples(ImmutableArray<SpellCheckRange> ranges) 108foreach (var range in ranges)
Microsoft.CodeAnalysis.Remote.Razor (1)
SpellCheck\RemoteCSharpSpellCheckRangeProvider.cs (1)
19public async Task<ImmutableArray<SpellCheckRange>> GetCSharpSpellCheckRangesAsync(DocumentContext documentContext, CancellationToken cancellationToken)