6 instantiations of SemanticRange
Microsoft.CodeAnalysis.Razor.Workspaces (6)
SemanticTokens\AbstractRazorSemanticTokensInfoService.cs (4)
171
ranges.Add(new
SemanticRange
(semanticRange.Kind, originalRange.Start.Line, originalRange.Start.Character, originalRange.End.Line, originalRange.End.Character, tokenModifiers, fromRazor: false));
194
razorRanges.Add(new
SemanticRange
(textClassification, startLine, previousRange.End.Character, startLine, startChar, _semanticTokensLegendService.TokenModifiers.RazorCodeModifier, fromRazor: false, isCSharpWhitespace: true));
202
razorRanges.Add(new
SemanticRange
(textClassification, startLine, 0, startLine, startChar, _semanticTokensLegendService.TokenModifiers.RazorCodeModifier, fromRazor: false, isCSharpWhitespace: true));
284
var semanticRange = new
SemanticRange
(tokenType, startLine, startCharacter, endLine, endCharacter, tokenModifiers, fromRazor: false);
SemanticTokens\SemanticTokensVisitor.cs (2)
625
AddRange(
new
(
652
AddRange(
new
(semanticKind, range, tokenModifer, fromRazor));
22 references to SemanticRange
Microsoft.CodeAnalysis.Razor.Workspaces (22)
SemanticTokens\AbstractRazorSemanticTokensInfoService.cs (16)
35
private static readonly ListPool<
SemanticRange
> s_pool = ListPool<
SemanticRange
>.Create(maximumObjectSize: 2048, poolSize: 8);
115
List<
SemanticRange
> ranges,
149
SemanticRange
previousSemanticRange = default;
160
var
semanticRange = CSharpDataToSemanticRange(lineDelta, charDelta, length, tokenType, tokenModifiers, previousSemanticRange);
183
private void AddAdditionalCSharpWhitespaceRanges(List<
SemanticRange
> razorRanges, int textClassification, SourceText razorSource, LinePositionSpan? previousRazorSemanticRange, LinePositionSpan originalRange)
269
private static
SemanticRange
CSharpDataToSemanticRange(
275
SemanticRange
previousSemanticRange)
284
var
semanticRange = new SemanticRange(tokenType, startLine, startCharacter, endLine, endCharacter, tokenModifiers, fromRazor: false);
290
List<
SemanticRange
> semanticRanges,
302
SemanticRange
previousRange = default;
304
foreach (
var
range in semanticRanges)
306
var
nextRange = semanticRanges.Count > i + 1
331
SemanticRange
currentRange,
332
SemanticRange
previousRange,
333
SemanticRange
nextRange,
SemanticTokens\SemanticRange.cs (2)
9
internal readonly struct SemanticRange : IComparable<
SemanticRange
>
59
public int CompareTo(
SemanticRange
other)
SemanticTokens\SemanticTokensVisitor.cs (4)
16
private readonly List<
SemanticRange
> _semanticRanges;
24
private SemanticTokensVisitor(List<
SemanticRange
> semanticRanges, RazorCodeDocument razorCodeDocument, TextSpan range, ISemanticTokensLegendService semanticTokensLegend, bool colorCodeBackground)
33
public static void AddSemanticRanges(List<
SemanticRange
> ranges, RazorCodeDocument razorCodeDocument, TextSpan textSpan, ISemanticTokensLegendService razorSemanticTokensLegendService, bool colorCodeBackground)
655
private void AddRange(
SemanticRange
semanticRange)