1 implementation of INavigableLocation
Microsoft.CodeAnalysis.Features (1)
Navigation\INavigableLocation.cs (1)
23internal class NavigableLocation : INavigableLocation
91 references to INavigableLocation
Microsoft.CodeAnalysis.EditorFeatures (26)
ExternalAccess\VSTypeScript\Api\IVSTypeScriptFindUsagesContext.cs (2)
70public override async Task<INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken) 118var location = await UnderlyingObject.GetNavigableLocationAsync(workspace, cancellationToken).ConfigureAwait(false);
ExternalAccess\VSTypeScript\VSTypeScriptGoToSymbolService.cs (2)
27public async Task<(INavigableLocation? location, TextSpan symbolSpan)> FindDefinitionLocationAsync( 39var navigableLocation = await context.DefinitionItem.GetNavigableLocationAsync(
GoToDefinition\AbstractGoToDefinitionService.cs (6)
35private static Task<INavigableLocation?> GetNavigableLocationAsync( 46public async Task<(INavigableLocation? location, TextSpan symbolSpan)> FindDefinitionLocationAsync( 57var location = await GetNavigableLocationAsync( 71var remappedLocation = await GetAlternativeLocationIfAlreadyOnDefinitionAsync( 79var location = await GoToDefinitionHelpers.GetDefinitionLocationAsync( 95private async Task<INavigableLocation?> GetAlternativeLocationIfAlreadyOnDefinitionAsync(
GoToDefinition\GoToDefinitionHelpers.cs (2)
117var location = await GetDefinitionLocationAsync( 123public static async Task<INavigableLocation?> GetDefinitionLocationAsync(
GoToDefinition\IAsyncGoToDefinitionService.cs (2)
17/// returns that <see cref="INavigableLocation"/>. The <see cref="TextSpan"/> returned in the span of the 21Task<(INavigableLocation? location, TextSpan symbolSpan)> FindDefinitionLocationAsync(
Host\IStreamingFindReferencesPresenter.cs (4)
64var location = await presenter.GetStreamingLocationAsync( 74public static async Task<INavigableLocation?> GetStreamingLocationAsync( 85using var _ = ArrayBuilder<(DefinitionItem item, INavigableLocation location)>.GetInstance(out var builder); 89var navigableItem = await item.GetNavigableLocationAsync(workspace, cancellationToken).ConfigureAwait(false);
IntelliSense\Helpers.cs (1)
221var location = await GoToDefinitionHelpers.GetDefinitionLocationAsync(
Navigation\IDocumentNavigationServiceExtensions.cs (7)
15this INavigableLocation? location, IThreadingContext threadingContext, NavigationOptions options, CancellationToken cancellationToken) 32var location = await service.GetLocationForSpanAsync(workspace, documentId, textSpan, allowInvalidSpan, cancellationToken).ConfigureAwait(false); 39var location = await service.GetLocationForSpanAsync(workspace, documentId, textSpan, cancellationToken).ConfigureAwait(false); 46var location = await service.GetLocationForSpanAsync(workspace, documentId, textSpan, cancellationToken).ConfigureAwait(false); 53var location = await service.GetLocationForPositionAsync(workspace, documentId, position, virtualSpace, cancellationToken).ConfigureAwait(false); 60var location = await service.GetLocationForPositionAsync( 68var location = await service.GetLocationForLineAndOffsetAsync(
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (2)
NavigableSymbolService.NavigableSymbol.cs (2)
23private readonly INavigableLocation _location; 29INavigableLocation location,
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (11)
Utilities\GoToHelpers\MockDocumentNavigationService.vb (6)
42Public Function GetLocationForLineAndOffsetAsync(workspace As Workspace, documentId As DocumentId, lineNumber As Integer, offset As Integer, cancellationToken As CancellationToken) As Task(Of INavigableLocation) Implements IDocumentNavigationService.GetLocationForLineAndOffsetAsync 43Return Task.FromResult(Of INavigableLocation)(New NavigableLocation( 53Public Function GetLocationForPositionAsync(workspace As Workspace, documentId As DocumentId, position As Integer, virtualSpace As Integer, cancellationToken As CancellationToken) As Task(Of INavigableLocation) Implements IDocumentNavigationService.GetLocationForPositionAsync 54Return Task.FromResult(Of INavigableLocation)(New NavigableLocation( 64Public Function GetLocationForSpanAsync(workspace As Workspace, documentId As DocumentId, textSpan As TextSpan, allowInvalidSpan As Boolean, cancellationToken As CancellationToken) As Task(Of INavigableLocation) Implements IDocumentNavigationService.GetLocationForSpanAsync 65Return Task.FromResult(Of INavigableLocation)(New NavigableLocation(
Utilities\GoToHelpers\MockSymbolNavigationService.vb (1)
19Public Function GetNavigableLocationAsync(symbol As ISymbol, project As Project, cancellationToken As CancellationToken) As Task(Of INavigableLocation) Implements ISymbolNavigationService.GetNavigableLocationAsync
Utilities\MockDocumentNavigationServiceProvider.vb (3)
71Public Function GetLocationForLineAndOffsetAsync(workspace As Workspace, documentId As DocumentId, lineNumber As Integer, offset As Integer, cancellationToken As CancellationToken) As Task(Of INavigableLocation) Implements IDocumentNavigationService.GetLocationForLineAndOffsetAsync 79Public Function GetLocationForPositionAsync(workspace As Workspace, documentId As DocumentId, position As Integer, virtualSpace As Integer, cancellationToken As CancellationToken) As Task(Of INavigableLocation) Implements IDocumentNavigationService.GetLocationForPositionAsync 87Public Function GetLocationForSpanAsync(workspace As Workspace, documentId As DocumentId, textSpan As TextSpan, allowInvalidSpans As Boolean, cancellationToken As CancellationToken) As Task(Of INavigableLocation) Implements IDocumentNavigationService.GetLocationForSpanAsync
Utilities\MockSymbolNavigationServiceProvider.vb (1)
48Public Function GetNavigableLocationAsync(symbol As ISymbol, project As Project, cancellationToken As CancellationToken) As Task(Of INavigableLocation) Implements ISymbolNavigationService.GetNavigableLocationAsync
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
Interactive\InteractiveDocumentNavigationService.cs (5)
37public async Task<INavigableLocation?> GetLocationForSpanAsync(Workspace workspace, DocumentId documentId, TextSpan textSpan, bool allowInvalidSpan, CancellationToken cancellationToken) 89public Task<INavigableLocation?> GetLocationForLineAndOffsetAsync(Workspace workspace, DocumentId documentId, int lineNumber, int offset, CancellationToken cancellationToken) 90=> SpecializedTasks.Null<INavigableLocation>(); 92public Task<INavigableLocation?> GetLocationForPositionAsync(Workspace workspace, DocumentId documentId, int position, int virtualSpace, CancellationToken cancellationToken) 93=> SpecializedTasks.Null<INavigableLocation>();
NavigableSymbols\NavigableSymbolService.NavigableSymbol.cs (2)
23private readonly INavigableLocation _location; 29INavigableLocation location,
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
Internal\Navigation\FSharpCrossLanguageSymbolNavigationService.cs (1)
33public async Task<INavigableLocation?> TryGetNavigableLocationAsync(
Navigation\IFSharpCrossLanguageSymbolNavigationService.cs (1)
24/// <inheritdoc cref="INavigableLocation"/>
Microsoft.CodeAnalysis.Features (25)
DocumentSpanExtensions.cs (1)
22public static Task<INavigableLocation?> GetNavigableLocationAsync(this DocumentSpan documentSpan, CancellationToken cancellationToken)
ExternalAccess\UnitTesting\API\UnitTestingDocumentSpan.cs (1)
34var location = await this.DocumentSpan.GetNavigableLocationAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\UnitTestingStackTraceServiceAccessor.cs (1)
46var location = await definitionItem.UnderlyingObject.GetNavigableLocationAsync(workspace, cancellationToken).ConfigureAwait(false);
ExternalAccess\VSTypeScript\Api\VSTypeScriptDocumentNavigationServiceWrapper.cs (2)
40var location = await obj.GetLocationForPositionAsync( 52var location = await obj.GetLocationForPositionAsync(
FindUsages\DefinitionItem.cs (2)
170var location = await GetNavigableLocationAsync(workspace, cancellationToken).ConfigureAwait(false); 175public abstract Task<INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken);
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (1)
40public override async Task<INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken)
Navigation\DefaultDocumentNavigationService.cs (6)
23public Task<INavigableLocation?> GetLocationForSpanAsync(Workspace workspace, DocumentId documentId, TextSpan textSpan, bool allowInvalidSpan, CancellationToken cancellationToken) 24=> SpecializedTasks.Null<INavigableLocation>(); 26public Task<INavigableLocation?> GetLocationForLineAndOffsetAsync(Workspace workspace, DocumentId documentId, int lineNumber, int offset, CancellationToken cancellationToken) 27=> SpecializedTasks.Null<INavigableLocation>(); 29public Task<INavigableLocation?> GetLocationForPositionAsync(Workspace workspace, DocumentId documentId, int position, int virtualSpace, CancellationToken cancellationToken) 30=> SpecializedTasks.Null<INavigableLocation>();
Navigation\DefaultSymbolNavigationService.cs (2)
15public Task<INavigableLocation?> GetNavigableLocationAsync(ISymbol symbol, Project project, CancellationToken cancellationToken) 16=> SpecializedTasks.Null<INavigableLocation>();
Navigation\ICrossLanguageSymbolNavigationService.cs (1)
23Task<INavigableLocation?> TryGetNavigableLocationAsync(
Navigation\IDocumentNavigationService.cs (5)
31Task<INavigableLocation?> GetLocationForSpanAsync(Workspace workspace, DocumentId documentId, TextSpan textSpan, bool allowInvalidSpan, CancellationToken cancellationToken); 32Task<INavigableLocation?> GetLocationForPositionAsync(Workspace workspace, DocumentId documentId, int position, int virtualSpace, CancellationToken cancellationToken); 33Task<INavigableLocation?> GetLocationForLineAndOffsetAsync(Workspace workspace, DocumentId documentId, int lineNumber, int offset, CancellationToken cancellationToken); 44public static Task<INavigableLocation?> GetLocationForSpanAsync(this IDocumentNavigationService service, Workspace workspace, DocumentId documentId, TextSpan textSpan, CancellationToken cancellationToken) 47public static Task<INavigableLocation?> GetLocationForPositionAsync(this IDocumentNavigationService service, Workspace workspace, DocumentId documentId, int position, CancellationToken cancellationToken)
Navigation\INavigableLocation.cs (2)
39public static Task<INavigableLocation?> Create(bool value) 42return Task.FromResult<INavigableLocation?>(
Navigation\ISymbolNavigationService.cs (1)
22Task<INavigableLocation?> GetNavigableLocationAsync(ISymbol symbol, Project project, CancellationToken cancellationToken);
Microsoft.VisualStudio.LanguageServices (15)
CallHierarchy\CallHierarchyItem.cs (2)
27private readonly INavigableLocation _navigableLocation; 38INavigableLocation navigableLocation,
CallHierarchy\CallHierarchyProvider.cs (1)
67var location = await GoToDefinitionHelpers.GetDefinitionLocationAsync(
FindReferences\Entries\MetadataDefinitionItemEntry.cs (1)
55var location = await DefinitionBucket.DefinitionItem.GetNavigableLocationAsync(
FindReferences\RoslynDefinitionBucket.cs (1)
77var location = await DefinitionItem.GetNavigableLocationAsync(
FindReferences\VisualStudioDefinitionsAndReferencesFactory.cs (2)
117public override Task<INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken) 119return Task.FromResult<INavigableLocation?>(new NavigableLocation(async (options, cancellationToken) =>
StackTraceExplorer\StackFrameViewModel.cs (1)
81var location = await definition.GetNavigableLocationAsync(
Workspace\VisualStudioDocumentNavigationService.cs (4)
129public async Task<INavigableLocation?> GetLocationForSpanAsync( 142public async Task<INavigableLocation?> GetLocationForLineAndOffsetAsync( 168public async Task<INavigableLocation?> GetLocationForPositionAsync( 209private async Task<INavigableLocation?> GetNavigableLocationAsync(
Workspace\VisualStudioSymbolNavigationService.cs (3)
59public async Task<INavigableLocation?> GetNavigableLocationAsync( 100var crossLanguageLocation = await crossLanguageService.TryGetNavigableLocationAsync( 137private async Task<INavigableLocation?> GetNavigableLocationForMetadataAsync(
Microsoft.VisualStudio.LanguageServices.LiveShare.UnitTests (3)
MockDocumentNavigationServiceFactory.cs (3)
42public Task<INavigableLocation?> GetLocationForLineAndOffsetAsync(Workspace workspace, DocumentId documentId, int lineNumber, int offset, CancellationToken cancellationToken) 45public Task<INavigableLocation?> GetLocationForPositionAsync(Workspace workspace, DocumentId documentId, int position, int virtualSpace, CancellationToken cancellationToken) 48public Task<INavigableLocation?> GetLocationForSpanAsync(Workspace workspace, DocumentId documentId, TextSpan textSpan, bool allowInvalidSpan, CancellationToken cancellationToken)