5 references to new
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageDocumentHighlighter.cs (1)
43return highlights.SelectAsArray(h => new DocumentHighlights(document,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\DocumentHighlighting\FSharpDocumentHighlightsService.cs (1)
75return highlights.SelectAsArray(x => new DocumentHighlights(x.Document, MapHighlightSpans(x.HighlightSpans)));
Microsoft.CodeAnalysis.Features (3)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
273list.Add(new DocumentHighlights(kvp.Key, spans.ToImmutableAndClear()));
DocumentHighlighting\IRemoteDocumentHighlightsService.cs (1)
35=> new(await solution.GetRequiredDocumentAsync(DocumentId, includeSourceGenerated: true).ConfigureAwait(false), HighlightSpans);
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexDocumentHighlighter.cs (1)
47: ImmutableArray.Create(new DocumentHighlights(document, GetHighlights(tree, position)));