1 implementation of INavigateToSearchResult
Microsoft.CodeAnalysis.Features (1)
NavigateTo\RoslynNavigateToItem.cs (1)
90private sealed class NavigateToSearchResult : INavigateToSearchResult, INavigableItem
43 references to INavigateToSearchResult
Microsoft.CodeAnalysis.Features (42)
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (4)
38Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 56Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 91private static INavigateToSearchResult Convert(IVSTypeScriptNavigateToSearchResult result) 94private sealed class WrappedNavigateToSearchResult(IVSTypeScriptNavigateToSearchResult result) : INavigateToSearchResult
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (1)
64Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound,
NavigateTo\AbstractNavigateToSearchService.cs (2)
36Solution solution, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound) 40using var _1 = ArrayBuilder<INavigateToSearchResult>.GetInstance(items.Length, out var results);
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (1)
25Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound,
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (2)
24Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 72Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound,
NavigateTo\INavigateToSearchCallback.cs (1)
16Task AddResultsAsync(ImmutableArray<INavigateToSearchResult> results, CancellationToken cancellationToken);
NavigateTo\INavigateToSearchResult.cs (1)
33public static ImmutableArray<PatternMatch> GetMatches(INavigateToSearchResult result)
NavigateTo\INavigateToSearchService.cs (4)
22Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 42Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 69Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, 87Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound,
NavigateTo\NavigateToSearcher.cs (10)
42private static readonly ObjectPool<HashSet<INavigateToSearchResult>> s_searchResultPool = new(() => new(NavigateToSearchResultComparer.Instance)); 348HashSet<INavigateToSearchResult> seenResults, 349Func<INavigateToSearchService, ImmutableArray<Project>, Func<ImmutableArray<INavigateToSearchResult>, Task>, Func<Task>, Task> processProjectAsync, 388using var _ = ArrayBuilder<INavigateToSearchResult>.GetInstance(results.Length, out var nonDuplicates); 395foreach (var result in results) 413HashSet<INavigateToSearchResult> seenItems, 431HashSet<INavigateToSearchResult> seenItems, 463HashSet<INavigateToSearchResult> seenItems, 531public Task SearchDocumentAsync(Document document, string searchPattern, IImmutableSet<string> kinds, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, CancellationToken cancellationToken) 534public async Task SearchProjectsAsync(Solution solution, ImmutableArray<Project> projects, ImmutableArray<Document> priorityDocuments, string searchPattern, IImmutableSet<string> kinds, Document? activeDocument, Func<ImmutableArray<INavigateToSearchResult>, Task> onResultsFound, Func<Task> onProjectCompleted, CancellationToken cancellationToken)
NavigateTo\NavigateToSearchResultComparer.cs (5)
19internal sealed class NavigateToSearchResultComparer : IEqualityComparer<INavigateToSearchResult> 21public static readonly IEqualityComparer<INavigateToSearchResult> Instance = new NavigateToSearchResultComparer(); 27public bool Equals(INavigateToSearchResult? x, INavigateToSearchResult? y) 31public int GetHashCode(INavigateToSearchResult? obj)
NavigateTo\RoslynNavigateToItem.cs (11)
70public async Task<INavigateToSearchResult?> TryCreateSearchResultAsync( 175string INavigateToSearchResult.AdditionalInformation => _additionalInformation; 197string INavigateToSearchResult.Kind => _item.Kind; 199NavigateToMatchKind INavigateToSearchResult.MatchKind => _item.MatchKind; 201bool INavigateToSearchResult.IsCaseSensitive => _item.IsCaseSensitive; 203string INavigateToSearchResult.Name => _item.DeclaredSymbolInfo.Name; 205ImmutableArray<TextSpan> INavigateToSearchResult.NameMatchSpans => _item.NameMatchSpans; 207string INavigateToSearchResult.SecondarySort => _secondarySort.Value; 275string? INavigateToSearchResult.Summary => null; 277INavigableItem INavigateToSearchResult.NavigableItem => this; 279ImmutableArray<PatternMatch> INavigateToSearchResult.Matches => _item.Matches;
Microsoft.VisualStudio.LanguageServices (1)
NavigateTo\RoslynCodeSearchResult.cs (1)
15/// cref="INavigateToSearchResult"/> object we got back from the search so we can present the UI with the data