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)
110return new MatchResult( 179matchResult = new MatchResult(
54 references to MatchResult
Microsoft.CodeAnalysis.EditorFeatures (30)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (30)
57private readonly Action<IReadOnlyList<MatchResult>, string, IList<MatchResult>> _filterMethod; 68private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => new()); 149itemsToBeIncluded.Sort(MatchResult.SortingComparer); 198IAsyncCompletionSession session, IReadOnlyList<MatchResult> itemsToBeIncluded, ThreadLocal<PatternMatchHelper> patternMatcherHelper, CancellationToken cancellationToken) 245private void AddCompletionItems(List<MatchResult> list, ThreadLocal<PatternMatchHelper> threadLocalPatternMatchHelper, CancellationToken cancellationToken) 256var 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]; 848private ItemSelection UpdateSelectionBasedOnSuggestedDefaults(IReadOnlyList<MatchResult> items, ItemSelection itemSelection, CancellationToken cancellationToken) 873private ItemSelection GetDefaultsMatch(IReadOnlyList<MatchResult> matches, ItemSelection initialSelection, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features (21)
Completion\CommonCompletionService.cs (2)
47IReadOnlyList<MatchResult> matchResults, 49IList<MatchResult> builder)
Completion\CompletionHelper.cs (2)
34public int CompareMatchResults(MatchResult matchResult1, MatchResult matchResult2, bool filterTextHasNoUpperCase)
Completion\CompletionService.cs (7)
239private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool = new(factory: () => new()); 255var filterDataList = new SegmentedList<MatchResult>( 274IReadOnlyList<MatchResult> matchResults, 276IList<MatchResult> builder) 293IReadOnlyList<MatchResult> matchResults, 295IList<MatchResult> builder) 305foreach (var matchResult in matchResults)
Completion\MatchResult.cs (4)
57public static IComparer<MatchResult> SortingComparer { get; } = new Comparer(); 59private class Comparer : IComparer<MatchResult> 63public int Compare(MatchResult x, MatchResult y)
Completion\PatternMatchHelper.cs (2)
89public MatchResult GetMatchResult( 133out MatchResult matchResult)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (4)
30IReadOnlyList<MatchResult> matchResults, 32IList<MatchResult> builder) 37IReadOnlyList<MatchResult> matchResults, 39IList<MatchResult> builder)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\Completion\CompletionHandler.cs (3)
374using var _ = ArrayBuilder<MatchResult>.GetInstance(out var matchResultsBuilder); 386out var matchResult)) 394matchResultsBuilder.Sort(MatchResult.SortingComparer);