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)
67return highlightSpans.SelectAsArray(x => new HighlightSpan(x.TextSpan, FSharpHighlightSpanKindHelpers.ConvertTo(x.Kind)));
Microsoft.CodeAnalysis.Features (2)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
295tagList.Add(span.Value.Document, new HighlightSpan(span.Value.SourceSpan, kind));
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (1)
115=> new(textSpan, HighlightSpanKind.None);
14 references to HighlightSpan
Microsoft.CodeAnalysis.EditorFeatures (2)
ReferenceHighlighting\ReferenceHighlightingViewTaggerProvider.cs (2)
190foreach (var span in documentHighlights.HighlightSpans) 205private static NavigableHighlightTag GetTag(HighlightSpan span)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\DocumentHighlighting\FSharpDocumentHighlightsService.cs (1)
65private static ImmutableArray<HighlightSpan> MapHighlightSpans(ImmutableArray<FSharpHighlightSpan> highlightSpans)
Microsoft.CodeAnalysis.Features (11)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (2)
210var tagMap = new MultiDictionary<Document, HighlightSpan>(); 289private static async Task AddLocationSpanAsync(Location location, Solution solution, HashSet<DocumentSpan> spanSet, MultiDictionary<Document, HighlightSpan> tagList, HighlightSpanKind kind, CancellationToken cancellationToken)
DocumentHighlighting\IDocumentHighlightsService.cs (2)
38internal readonly struct DocumentHighlights(Document document, ImmutableArray<HighlightSpan> highlightSpans) 41public ImmutableArray<HighlightSpan> HighlightSpans { get; } = highlightSpans;
DocumentHighlighting\IRemoteDocumentHighlightsService.cs (2)
20internal readonly struct SerializableDocumentHighlights(DocumentId documentId, ImmutableArray<HighlightSpan> highlightSpans) 26public readonly ImmutableArray<HighlightSpan> HighlightSpans = highlightSpans;
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (5)
50private static ImmutableArray<HighlightSpan> GetHighlights(RegexTree tree, int positionInDocument) 69private static ImmutableArray<HighlightSpan> GetReferences(RegexTree tree, int position) 79private static ImmutableArray<HighlightSpan> FindReferenceHighlights(RegexTree tree, VirtualChar ch) 108private static ImmutableArray<HighlightSpan> CreateHighlights( 114private static HighlightSpan CreateHighlightSpan(TextSpan textSpan)