4 instantiations of HighlightSpan
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageDocumentHighlighter.cs (1)
44h.HighlightSpans.SelectAsArray(hs => new HighlightSpan(hs.TextSpan, ConvertKind(hs.Kind)))));
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\DocumentHighlighting\FSharpDocumentHighlightsService.cs (1)
69return highlightSpans.SelectAsArray(x => new HighlightSpan(x.TextSpan, FSharpHighlightSpanKindHelpers.ConvertTo(x.Kind)));
Microsoft.CodeAnalysis.Features (2)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
299tagList.Add(span.Value.Document, new HighlightSpan(span.Value.SourceSpan, kind));
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (1)
115=> new(textSpan, HighlightSpanKind.None);
19 references to HighlightSpan
Microsoft.CodeAnalysis.EditorFeatures (2)
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (2)
192foreach (var span in documentHighlights.HighlightSpans) 207private static NavigableHighlightTag GetTag(HighlightSpan span)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\DocumentHighlighting\FSharpDocumentHighlightsService.cs (1)
67private static ImmutableArray<HighlightSpan> MapHighlightSpans(ImmutableArray<FSharpHighlightSpan> highlightSpans)
Microsoft.CodeAnalysis.Features (16)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (4)
208var tagMap = new MultiDictionary<Document, HighlightSpan>(); 269using var _2 = ArrayBuilder<HighlightSpan>.GetInstance(kvp.Value.Count, out var spans); 270foreach (var span in kvp.Value) 293private static async Task AddLocationSpanAsync(Location location, Solution solution, HashSet<DocumentSpan> spanSet, MultiDictionary<Document, HighlightSpan> tagList, HighlightSpanKind kind, CancellationToken cancellationToken)
DocumentHighlighting\IDocumentHighlightsService.cs (2)
41public ImmutableArray<HighlightSpan> HighlightSpans { get; } 43public DocumentHighlights(Document document, ImmutableArray<HighlightSpan> highlightSpans)
DocumentHighlighting\IRemoteDocumentHighlightsService.cs (2)
26public readonly ImmutableArray<HighlightSpan> HighlightSpans; 28public SerializableDocumentHighlights(DocumentId documentId, ImmutableArray<HighlightSpan> highlightSpans)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (8)
50private ImmutableArray<HighlightSpan> GetHighlights(RegexTree tree, int positionInDocument) 69private ImmutableArray<HighlightSpan> GetReferences(RegexTree tree, int position) 73return ImmutableArray<HighlightSpan>.Empty; 79private ImmutableArray<HighlightSpan> FindReferenceHighlights(RegexTree tree, VirtualChar ch) 84return ImmutableArray<HighlightSpan>.Empty; 105return ImmutableArray<HighlightSpan>.Empty; 108private static ImmutableArray<HighlightSpan> CreateHighlights( 114private static HighlightSpan CreateHighlightSpan(TextSpan textSpan)