4 instantiations of MappedSpanResult
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
RazorMappingServiceWrapper.cs (1)
75roslynSpans[i] = new MappedSpanResult(razorSpan.FilePath, razorSpan.LinePositionSpan, razorSpan.Span);
RazorSourceGeneratedDocumentSpanMappingServiceWrapper.cs (1)
82: new MappedSpanResult(span.FilePath, span.LinePositionSpan, span.Span));
Microsoft.VisualStudio.LanguageServices (2)
FindReferences\Entries\AbstractDocumentSpanEntry.cs (1)
86return new MappedSpanResult(documentSpan.Document.FilePath!, sourceText.Lines.GetLinePositionSpan(documentSpan.SourceSpan), documentSpan.SourceSpan);
Venus\ContainedDocument.DocumentServiceProvider.cs (1)
117result = new MappedSpanResult(document.FilePath, primarySnapshotSpan.ToLinePositionSpan(), primarySpan.ToTextSpan());
26 references to MappedSpanResult
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (4)
RazorMappingServiceWrapper.cs (2)
50public async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 56var roslynSpans = new MappedSpanResult[spans.Count()];
RazorSourceGeneratedDocumentSpanMappingServiceWrapper.cs (2)
63public async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(SourceGeneratedDocument document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken) 77using var _ = ArrayBuilder<MappedSpanResult>.GetInstance(out var spansBuilder);
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Extensions\ProtocolConversions.cs (3)
434var mappedSpan = mappedResults.Value[i]; 481var mappedSpan = result.Value.Single(); 1013private static LSP.Range MappedSpanResultToRange(MappedSpanResult mappedSpanResult)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
TestSourceGeneratedDocumentSpanMappingService.cs (2)
36public Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(SourceGeneratedDocument document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken) 43return Task.FromResult(ImmutableArray<MappedSpanResult>.Empty);
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (2)
23public abstract Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 30ImmutableArray<MappedSpanResult> mappedSpanResults)
Workspace\Host\DocumentService\ISourceGeneratedDocumentSpanMappingService.cs (1)
18Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(SourceGeneratedDocument document, ImmutableArray<TextSpan> spans, CancellationToken cancellationToken);
Workspace\Host\DocumentService\ISpanMappingService.cs (1)
47Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken);
Workspace\Host\DocumentService\SpanMappingHelper.cs (1)
25public static async Task<ImmutableArray<MappedSpanResult>?> TryGetMappedSpanResultAsync(Document document, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestDocumentServiceProvider.cs (1)
73public Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken)
Microsoft.VisualStudio.LanguageServices (11)
CodeLens\RemoteCodeLensReferencesService.cs (1)
168var result = mappedSpans[0];
FindReferences\Entries\AbstractDocumentSpanEntry.cs (2)
34MappedSpanResult mappedSpanResult, 81public static async Task<MappedSpanResult?> TryMapAndGetFirstAsync(DocumentSpan documentSpan, SourceText sourceText, CancellationToken cancellationToken)
FindReferences\Entries\DefinitionItemEntry.cs (1)
27MappedSpanResult mappedSpanResult,
FindReferences\Entries\DocumentSpanEntry.cs (2)
51MappedSpanResult mappedSpanResult, 79MappedSpanResult mappedSpanResult,
Venus\ContainedDocument.DocumentServiceProvider.cs (3)
83public override async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 101var builder = ArrayBuilder<MappedSpanResult>.GetInstance(); 104var result = (MappedSpanResult?)null;
Workspace\VisualStudioDocumentNavigationService.cs (2)
293Workspace workspace, Document generatedDocument, MappedSpanResult mappedSpanResult, CancellationToken cancellationToken) 315private static async Task<MappedSpanResult?> GetMappedSpanAsync(Document generatedDocument, TextSpan textSpan, CancellationToken cancellationToken)