25 references to INavigableLocation
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Navigation\IFSharpCrossLanguageSymbolNavigationService.cs (1)
24/// <inheritdoc cref="INavigableLocation"/>
Microsoft.CodeAnalysis.Features (24)
DocumentSpanExtensions.cs (1)
22public static Task<INavigableLocation?> GetNavigableLocationAsync(this DocumentSpan documentSpan, CancellationToken cancellationToken)
ExternalAccess\UnitTesting\API\UnitTestingDocumentSpan.cs (1)
33var location = await this.DocumentSpan.GetNavigableLocationAsync(cancellationToken).ConfigureAwait(false);
FindUsages\DefinitionItem.cs (1)
158public abstract Task<INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken);
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (1)
38public override async Task<INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken)
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\IDefinitionLocationService.cs (2)
25/// returns that <see cref="INavigableLocation"/>. The <see cref="TextSpan"/> returned in the span of the 42internal sealed record DefinitionLocation(INavigableLocation Location, DocumentSpan Span);
Navigation\IDocumentNavigationService.cs (7)
27Task<INavigableLocation?> GetLocationForSpanAsync(Workspace workspace, DocumentId documentId, TextSpan textSpan, bool allowInvalidSpan, CancellationToken cancellationToken); 28Task<INavigableLocation?> GetLocationForPositionAsync(Workspace workspace, DocumentId documentId, int position, int virtualSpace, bool allowInvalidPosition, CancellationToken cancellationToken); 39public virtual Task<INavigableLocation?> GetLocationForSpanAsync(Workspace workspace, DocumentId documentId, TextSpan textSpan, bool allowInvalidSpan, CancellationToken cancellationToken) 40=> SpecializedTasks.Null<INavigableLocation>(); 42public virtual Task<INavigableLocation?> GetLocationForPositionAsync(Workspace workspace, DocumentId documentId, int position, int virtualSpace, bool allowInvalidPosition, CancellationToken cancellationToken) 54public static Task<INavigableLocation?> GetLocationForSpanAsync(this IDocumentNavigationService service, Workspace workspace, DocumentId documentId, TextSpan textSpan, CancellationToken cancellationToken) 57public static Task<INavigableLocation?> GetLocationForPositionAsync(this IDocumentNavigationService service, Workspace workspace, DocumentId documentId, int position, CancellationToken cancellationToken)
Navigation\INavigableLocation.cs (3)
23internal sealed class NavigableLocation(Func<NavigationOptions, CancellationToken, Task<bool>> callback) : INavigableLocation 36public static Task<INavigableLocation?> Create(bool value) 39return Task.FromResult<INavigableLocation?>(
Navigation\ISymbolNavigationService.cs (1)
22Task<INavigableLocation?> GetNavigableLocationAsync(ISymbol symbol, Project project, CancellationToken cancellationToken);
SemanticSearch\SearchCompilationFailureDefinitionItem.cs (2)
39public override Task<INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken) 40=> Task.FromResult<INavigableLocation?>(null);
SemanticSearch\SearchExceptionDefinitionItem.cs (2)
40public override Task<INavigableLocation?> GetNavigableLocationAsync(Workspace workspace, CancellationToken cancellationToken) 41=> Task.FromResult<INavigableLocation?>(null);