7 instantiations of MappedSpanResult
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
LanguageServer\AbstractLanguageServerProtocolTests.cs (1)
87mappedResult = spans.Select(span => new MappedSpanResult(s_mappedFilePath, s_mappedLinePosition, new TextSpan(0, 5))).ToImmutableArray();
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorSpanMappingServiceWrapper.cs (1)
64roslynSpans[i] = new MappedSpanResult(razorSpan.FilePath, razorSpan.LinePositionSpan, razorSpan.Span);
Microsoft.VisualStudio.LanguageServices (3)
FindReferences\Entries\AbstractDocumentSpanEntry.cs (2)
63return new MappedSpanResult(documentSpan.Document.FilePath, sourceText.Lines.GetLinePositionSpan(documentSpan.SourceSpan), documentSpan.SourceSpan); 71return new MappedSpanResult(documentSpan.Document.FilePath, sourceText.Lines.GetLinePositionSpan(documentSpan.SourceSpan), documentSpan.SourceSpan);
Venus\ContainedDocument.DocumentServiceProvider.cs (1)
118result = new MappedSpanResult(document.FilePath, primarySnapshotSpan.ToLinePositionSpan(), primarySpan.ToTextSpan());
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Venus\DocumentService_IntegrationTests.vb (2)
283results.Add(New MappedSpanResult(mappedDocument.FilePath, lineSpan, mappedSpan)) 287results.Add(New MappedSpanResult(mappedDocument.FilePath, lineSpan, mappedSpan))
26 references to MappedSpanResult
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
LanguageServer\AbstractLanguageServerProtocolTests.cs (2)
82public Task<ImmutableArray<MappedSpanResult>> MapSpansAsync(Document document, IEnumerable<TextSpan> spans, CancellationToken cancellationToken) 84ImmutableArray<MappedSpanResult> mappedResult = default;
Microsoft.CodeAnalysis.ExternalAccess.Razor (2)
RazorSpanMappingServiceWrapper.cs (2)
47public override async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 53var roslynSpans = new MappedSpanResult[razorSpans.Length];
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\ProtocolConversions.cs (4)
298var mappedSpan = mappedResults.Value[i]; 341var mappedSpan = result.Value.Single(); 805private static async Task<ImmutableArray<MappedSpanResult>?> GetMappedSpanResultAsync(TextDocument textDocument, ImmutableArray<TextSpan> textSpans, CancellationToken cancellationToken) 824private static LSP.Range MappedSpanResultToRange(MappedSpanResult mappedSpanResult)
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Host\DocumentService\AbstractSpanMappingService.cs (2)
26public abstract Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 33ImmutableArray<MappedSpanResult> mappedSpanResults)
Workspace\Host\DocumentService\ISpanMappingService.cs (1)
49Task<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 (12)
CodeLens\RemoteCodeLensReferencesService.cs (1)
169var result = results[0];
FindReferences\Entries\AbstractDocumentSpanEntry.cs (3)
28private readonly MappedSpanResult _mappedSpanResult; 35MappedSpanResult mappedSpanResult) 58public static async Task<MappedSpanResult?> TryMapAndGetFirstAsync(DocumentSpan documentSpan, SourceText sourceText, CancellationToken cancellationToken)
FindReferences\Entries\DefinitionItemEntry.cs (1)
31MappedSpanResult mappedSpanResult)
FindReferences\Entries\DocumentSpanEntry.cs (2)
60MappedSpanResult mappedSpanResult, 116MappedSpanResult mappedSpanResult,
Venus\ContainedDocument.DocumentServiceProvider.cs (3)
84public override async Task<ImmutableArray<MappedSpanResult>> MapSpansAsync( 102var builder = ArrayBuilder<MappedSpanResult>.GetInstance(); 105var result = (MappedSpanResult?)null;
Workspace\VisualStudioDocumentNavigationService.cs (2)
346Workspace workspace, Document generatedDocument, MappedSpanResult mappedSpanResult, CancellationToken cancellationToken) 368private static async Task<MappedSpanResult?> GetMappedSpanAsync(
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Venus\DocumentService_IntegrationTests.vb (2)
270Public Async Function MapSpansAsync(document As Document, spans As IEnumerable(Of TextSpan), cancellationToken As CancellationToken) As Task(Of ImmutableArray(Of MappedSpanResult)) Implements ISpanMappingService.MapSpansAsync 278Dim results = New List(Of MappedSpanResult)