4 instantiations of MappedSpanResult
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorMappingServiceWrapper.cs (1)
75roslynSpans[i] = new MappedSpanResult(razorSpan.FilePath, razorSpan.LinePositionSpan, razorSpan.Span);
Microsoft.VisualStudio.LanguageServices (3)
FindReferences\Entries\AbstractDocumentSpanEntry.cs (2)
86return new MappedSpanResult(documentSpan.Document.FilePath!, sourceText.Lines.GetLinePositionSpan(documentSpan.SourceSpan), documentSpan.SourceSpan); 94return 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());
21 references to MappedSpanResult
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (2)
RazorMappingServiceWrapper.cs (2)
50public async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 56var roslynSpans = new MappedSpanResult[spans.Count()];
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\ProtocolConversions.cs (4)
434var mappedSpan = mappedResults.Value[i]; 479var mappedSpan = result.Value.Single(); 1011private static async Task<ImmutableArray<MappedSpanResult>?> GetMappedSpanResultAsync(TextDocument textDocument, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken) 1030private static LSP.Range MappedSpanResultToRange(MappedSpanResult mappedSpanResult)
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (2)
23public abstract Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 30ImmutableArray<MappedSpanResult> mappedSpanResults)
Workspace\Host\DocumentService\ISpanMappingService.cs (1)
47Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, 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)
167var result = results[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)
294Workspace workspace, Document generatedDocument, MappedSpanResult mappedSpanResult, CancellationToken cancellationToken) 316private static async Task<MappedSpanResult?> GetMappedSpanAsync(