3 instantiations of MatchResult
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
323var promotedDefaultItemMatchResult = new MatchResult(
Microsoft.CodeAnalysis.Features (2)
Completion\PatternMatchHelper.cs (2)
119return new MatchResult( 188matchResult = new MatchResult(
55 references to MatchResult
Microsoft.CodeAnalysis.EditorFeatures (31)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (31)
60private readonly Action<IReadOnlyList<MatchResult>, string, IList<MatchResult>> _filterMethod; 71private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => []); 152itemsToBeIncluded.Sort(MatchResult.SortingComparer); 201IAsyncCompletionSession session, IReadOnlyList<MatchResult> itemsToBeIncluded, ThreadLocal<PatternMatchHelper> patternMatcherHelper, CancellationToken cancellationToken) 242private async Task AddCompletionItemsAsync(List<MatchResult> list, ThreadLocal<PatternMatchHelper> threadLocalPatternMatchHelper, CancellationToken cancellationToken) 253var includedDefaults = new ConcurrentDictionary<string, MatchResult>(); 282_recentItemsManager.GetRecentItemIndex(itemData.RoslynItem), _highlightMatchingPortions, index, out var matchResult)) 312foreach (var includedDefault in includedDefaults.Values) 323var promotedDefaultItemMatchResult = new MatchResult( 343private async Task<ItemSelection?> HandleNormalFilteringAsync(IReadOnlyList<MatchResult> matchResults, CancellationToken cancellationToken) 357MatchResult bestOrFirstMatchResult; 374var matchResult = matchResults[i]; 388var bestResult = GetBestCompletionItemSelectionFromFilteredResults(filteredMatchResultsBuilder); 445private VSCompletionItem GetCorrespondingVsCompletionItem(MatchResult matchResult, CancellationToken cancellationToken) 480private ItemSelection? HandleDeletionTrigger(IReadOnlyList<MatchResult> items, CancellationToken cancellationToken) 489MatchResult? bestMatchResult = null; 494var currentMatchResult = items[i]; 552static int CompareForDeletion(MatchResult x, MatchResult y, string pattern) 585IReadOnlyList<MatchResult> matchResults, 598static ImmutableArray<Span> GetHighlightedSpans(MatchResult matchResult, PatternMatchHelper patternMatchers) 657private ImmutableArray<CompletionFilterWithState> GetUpdatedFilters(IReadOnlyList<MatchResult> matchResults, CancellationToken cancellationToken) 664foreach (var item in matchResults) 682private static MatchResult GetBestCompletionItemSelectionFromFilteredResults(IReadOnlyList<MatchResult> filteredMatchResults) 686var bestResult = filteredMatchResults[0]; 691var currentResult = filteredMatchResults[i]; 759private async Task<bool> IsHardSelectionAsync(MatchResult selectedItem, CancellationToken cancellationToken) 856private ItemSelection UpdateSelectionBasedOnSuggestedDefaults(IReadOnlyList<MatchResult> items, ItemSelection itemSelection, CancellationToken cancellationToken) 881private 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)
270private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => []); 286var filterDataList = new SegmentedList<MatchResult>( 305IReadOnlyList<MatchResult> matchResults, 307IList<MatchResult> builder) 324IReadOnlyList<MatchResult> matchResults, 326IList<MatchResult> builder) 336foreach (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);