4 instantiations of ExcerptResult
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorDocumentExcerptServiceWrapper.cs (1)
36return new ExcerptResult(razorExcerpt.Content, razorExcerpt.MappedSpan, razorExcerpt.ClassifiedSpans, razorExcerpt.Document, razorExcerpt.Span);
Microsoft.VisualStudio.LanguageServices (2)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (1)
407var excerptResult = new ExcerptResult(
Venus\ContainedDocument.DocumentServiceProvider.cs (1)
171return new ExcerptResult(content, spanOnContent, classifiedSpansOnContent, document, span);
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
326Return New ExcerptResult(mappedSource.GetSubText(line.Span), New TextSpan(mappedSpan.Start - line.Start, mappedSpan.Length), ImmutableArray.Create(New ClassifiedSpan(New TextSpan(0, line.Span.Length), ClassificationTypeNames.Text)), document, span)
13 references to ExcerptResult
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorDocumentExcerptServiceWrapper.cs (1)
21public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Host\DocumentService\IDocumentExcerptService.cs (2)
21/// return <see cref="ExcerptResult"/> of given <see cref="Document"/> and <see cref="TextSpan"/> 25Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken);
Microsoft.VisualStudio.LanguageServices (9)
CodeLens\RemoteCodeLensReferencesService.cs (3)
213private static (string text, int start, int length) GetReferenceInfo(ExcerptResult? reference, ReferenceLocationDescriptor descriptor) 225private static (string before1, string before2, string after1, string after2) GetReferenceTexts(ExcerptResult? reference, ExcerptResult? tooltip, ReferenceLocationDescriptor descriptor)
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (2)
391private static async Task<(ExcerptResult, SourceText)> ExcerptAsync( 407var excerptResult = new ExcerptResult(
FindReferences\Entries\DocumentSpanEntry.cs (3)
44private readonly ExcerptResult _excerptResult; 61ExcerptResult excerptResult, 117ExcerptResult excerptResult,
Venus\ContainedDocument.DocumentServiceProvider.cs (1)
136public async Task<ExcerptResult?> TryExcerptAsync(Document document, TextSpan span, ExcerptMode mode, ClassificationOptions classificationOptions, CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Venus\DocumentService_IntegrationTests.vb (1)
308Public Async Function TryExcerptAsync(document As Document, span As TextSpan, mode As ExcerptMode, classificationOptions As ClassificationOptions, cancellationToken As CancellationToken) As Task(Of ExcerptResult?) Implements IDocumentExcerptService.TryExcerptAsync