3 instantiations of MatchResult
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
322var promotedDefaultItemMatchResult = new MatchResult(
Microsoft.CodeAnalysis.Features (2)
Completion\PatternMatchHelper.cs (2)
119return new MatchResult( 188matchResult = new MatchResult(
54 references to MatchResult
Microsoft.CodeAnalysis.EditorFeatures (30)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (30)
59private readonly Action<IReadOnlyList<MatchResult>, string, IList<MatchResult>> _filterMethod; 70private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => []); 151itemsToBeIncluded.Sort(MatchResult.SortingComparer); 200IAsyncCompletionSession session, IReadOnlyList<MatchResult> itemsToBeIncluded, ThreadLocal<PatternMatchHelper> patternMatcherHelper, CancellationToken cancellationToken) 241private async Task AddCompletionItemsAsync(List<MatchResult> list, ThreadLocal<PatternMatchHelper> threadLocalPatternMatchHelper, CancellationToken cancellationToken) 252var includedDefaults = new ConcurrentDictionary<string, MatchResult>(); 281_recentItemsManager.GetRecentItemIndex(itemData.RoslynItem), _highlightMatchingPortions, index, out var matchResult)) 311foreach (var includedDefault in includedDefaults.Values) 322var promotedDefaultItemMatchResult = new MatchResult( 342private ItemSelection? HandleNormalFiltering(IReadOnlyList<MatchResult> matchResults, CancellationToken cancellationToken) 356MatchResult bestOrFirstMatchResult; 373var matchResult = matchResults[i]; 387var bestResult = GetBestCompletionItemSelectionFromFilteredResults(filteredMatchResultsBuilder); 444private VSCompletionItem GetCorrespondingVsCompletionItem(MatchResult matchResult, CancellationToken cancellationToken) 479private ItemSelection? HandleDeletionTrigger(IReadOnlyList<MatchResult> items, CancellationToken cancellationToken) 488MatchResult? bestMatchResult = null; 493var currentMatchResult = items[i]; 551static int CompareForDeletion(MatchResult x, MatchResult y, string pattern) 584IReadOnlyList<MatchResult> matchResults, 597static ImmutableArray<Span> GetHighlightedSpans(MatchResult matchResult, PatternMatchHelper patternMatchers) 656private ImmutableArray<CompletionFilterWithState> GetUpdatedFilters(IReadOnlyList<MatchResult> matchResults, CancellationToken cancellationToken) 663foreach (var item in matchResults) 681private static MatchResult GetBestCompletionItemSelectionFromFilteredResults(IReadOnlyList<MatchResult> filteredMatchResults) 685var bestResult = filteredMatchResults[0]; 690var currentResult = filteredMatchResults[i]; 833private ItemSelection UpdateSelectionBasedOnSuggestedDefaults(IReadOnlyList<MatchResult> items, ItemSelection itemSelection, CancellationToken cancellationToken) 858private ItemSelection GetDefaultsMatch(IReadOnlyList<MatchResult> matches, ItemSelection initialSelection, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features (21)
Completion\CommonCompletionService.cs (2)
45IReadOnlyList<MatchResult> matchResults, 47IList<MatchResult> builder)
Completion\CompletionHelper.cs (2)
31public int CompareMatchResults(MatchResult matchResult1, MatchResult matchResult2, bool filterTextHasNoUpperCase)
Completion\CompletionService.cs (7)
273private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => []); 289var filterDataList = new SegmentedList<MatchResult>( 308IReadOnlyList<MatchResult> matchResults, 310IList<MatchResult> builder) 327IReadOnlyList<MatchResult> matchResults, 329IList<MatchResult> builder) 339foreach (var matchResult in matchResults)
Completion\MatchResult.cs (4)
47public static IComparer<MatchResult> SortingComparer { get; } = new Comparer(); 49private sealed class Comparer : IComparer<MatchResult> 53public int Compare(MatchResult x, MatchResult y)
Completion\PatternMatchHelper.cs (2)
98public MatchResult GetMatchResult( 142out MatchResult matchResult)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (4)
31IReadOnlyList<MatchResult> matchResults, 33IList<MatchResult> builder) 38IReadOnlyList<MatchResult> matchResults, 40IList<MatchResult> builder)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\Completion\CompletionHandler.cs (3)
213using var _ = ArrayBuilder<MatchResult>.GetInstance(out var matchResultsBuilder); 225out var matchResult)) 233matchResultsBuilder.Sort(MatchResult.SortingComparer);