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