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