3 instantiations of MatchResult
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
322
var promotedDefaultItemMatchResult = new
MatchResult
(
Microsoft.CodeAnalysis.Features (2)
Completion\PatternMatchHelper.cs (2)
110
return new
MatchResult
(
179
matchResult = new
MatchResult
(
54 references to MatchResult
Microsoft.CodeAnalysis.EditorFeatures (30)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (30)
57
private readonly Action<IReadOnlyList<
MatchResult
>, string, IList<
MatchResult
>> _filterMethod;
68
private static readonly ObjectPool<List<
MatchResult
>> s_listOfMatchResultPool = new(factory: () => new());
149
itemsToBeIncluded.Sort(
MatchResult
.SortingComparer);
198
IAsyncCompletionSession session, IReadOnlyList<
MatchResult
> itemsToBeIncluded, ThreadLocal<PatternMatchHelper> patternMatcherHelper, CancellationToken cancellationToken)
245
private void AddCompletionItems(List<
MatchResult
> list, ThreadLocal<PatternMatchHelper> threadLocalPatternMatchHelper, CancellationToken cancellationToken)
256
var includedDefaults = new ConcurrentDictionary<string,
MatchResult
>();
281
_recentItemsManager.GetRecentItemIndex(itemData.RoslynItem), _highlightMatchingPortions, index, out
var
matchResult))
311
foreach (
var
includedDefault in includedDefaults.Values)
322
var
promotedDefaultItemMatchResult = new MatchResult(
342
private ItemSelection? HandleNormalFiltering(IReadOnlyList<
MatchResult
> matchResults, CancellationToken cancellationToken)
356
MatchResult
bestOrFirstMatchResult;
373
var
matchResult = matchResults[i];
387
var
bestResult = GetBestCompletionItemSelectionFromFilteredResults(filteredMatchResultsBuilder);
444
private VSCompletionItem GetCorrespondingVsCompletionItem(
MatchResult
matchResult, CancellationToken cancellationToken)
479
private ItemSelection? HandleDeletionTrigger(IReadOnlyList<
MatchResult
> items, CancellationToken cancellationToken)
488
MatchResult
? bestMatchResult = null;
493
var
currentMatchResult = items[i];
551
static int CompareForDeletion(
MatchResult
x,
MatchResult
y, string pattern)
584
IReadOnlyList<
MatchResult
> matchResults,
597
static ImmutableArray<Span> GetHighlightedSpans(
MatchResult
matchResult, PatternMatchHelper patternMatchers)
656
private ImmutableArray<CompletionFilterWithState> GetUpdatedFilters(IReadOnlyList<
MatchResult
> matchResults, CancellationToken cancellationToken)
663
foreach (
var
item in matchResults)
681
private static
MatchResult
GetBestCompletionItemSelectionFromFilteredResults(IReadOnlyList<
MatchResult
> filteredMatchResults)
685
var
bestResult = filteredMatchResults[0];
690
var
currentResult = filteredMatchResults[i];
848
private ItemSelection UpdateSelectionBasedOnSuggestedDefaults(IReadOnlyList<
MatchResult
> items, ItemSelection itemSelection, CancellationToken cancellationToken)
873
private ItemSelection GetDefaultsMatch(IReadOnlyList<
MatchResult
> matches, ItemSelection initialSelection, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features (21)
Completion\CommonCompletionService.cs (2)
47
IReadOnlyList<
MatchResult
> matchResults,
49
IList<
MatchResult
> builder)
Completion\CompletionHelper.cs (2)
34
public int CompareMatchResults(
MatchResult
matchResult1,
MatchResult
matchResult2, bool filterTextHasNoUpperCase)
Completion\CompletionService.cs (7)
239
private static readonly ObjectPool<List<
MatchResult
>> s_listOfMatchResultPool = new(factory: () => new());
255
var filterDataList = new SegmentedList<
MatchResult
>(
274
IReadOnlyList<
MatchResult
> matchResults,
276
IList<
MatchResult
> builder)
293
IReadOnlyList<
MatchResult
> matchResults,
295
IList<
MatchResult
> builder)
305
foreach (
var
matchResult in matchResults)
Completion\MatchResult.cs (4)
57
public static IComparer<
MatchResult
> SortingComparer { get; } = new Comparer();
59
private class Comparer : IComparer<
MatchResult
>
63
public int Compare(
MatchResult
x,
MatchResult
y)
Completion\PatternMatchHelper.cs (2)
89
public
MatchResult
GetMatchResult(
133
out
MatchResult
matchResult)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (4)
30
IReadOnlyList<
MatchResult
> matchResults,
32
IList<
MatchResult
> builder)
37
IReadOnlyList<
MatchResult
> matchResults,
39
IList<
MatchResult
> builder)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\Completion\CompletionHandler.cs (3)
374
using var _ = ArrayBuilder<
MatchResult
>.GetInstance(out var matchResultsBuilder);
386
out
var
matchResult))
394
matchResultsBuilder.Sort(
MatchResult
.SortingComparer);