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)
119
return new
MatchResult
(
188
matchResult = new
MatchResult
(
54 references to MatchResult
Microsoft.CodeAnalysis.EditorFeatures (30)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (30)
59
private readonly Action<IReadOnlyList<
MatchResult
>, string, IList<
MatchResult
>> _filterMethod;
70
private static readonly ObjectPool<List<
MatchResult
>> s_listOfMatchResultPool = new(factory: () => []);
151
itemsToBeIncluded.Sort(
MatchResult
.SortingComparer);
200
IAsyncCompletionSession session, IReadOnlyList<
MatchResult
> itemsToBeIncluded, ThreadLocal<PatternMatchHelper> patternMatcherHelper, CancellationToken cancellationToken)
241
private async Task AddCompletionItemsAsync(List<
MatchResult
> list, ThreadLocal<PatternMatchHelper> threadLocalPatternMatchHelper, CancellationToken cancellationToken)
252
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];
833
private ItemSelection UpdateSelectionBasedOnSuggestedDefaults(IReadOnlyList<
MatchResult
> items, ItemSelection itemSelection, CancellationToken cancellationToken)
858
private ItemSelection GetDefaultsMatch(IReadOnlyList<
MatchResult
> matches, ItemSelection initialSelection, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features (21)
Completion\CommonCompletionService.cs (2)
45
IReadOnlyList<
MatchResult
> matchResults,
47
IList<
MatchResult
> builder)
Completion\CompletionHelper.cs (2)
31
public int CompareMatchResults(
MatchResult
matchResult1,
MatchResult
matchResult2, bool filterTextHasNoUpperCase)
Completion\CompletionService.cs (7)
273
private static readonly ObjectPool<List<
MatchResult
>> s_listOfMatchResultPool = new(factory: () => []);
289
var filterDataList = new SegmentedList<
MatchResult
>(
308
IReadOnlyList<
MatchResult
> matchResults,
310
IList<
MatchResult
> builder)
327
IReadOnlyList<
MatchResult
> matchResults,
329
IList<
MatchResult
> builder)
339
foreach (
var
matchResult in matchResults)
Completion\MatchResult.cs (4)
47
public static IComparer<
MatchResult
> SortingComparer { get; } = new Comparer();
49
private sealed class Comparer : IComparer<
MatchResult
>
53
public int Compare(
MatchResult
x,
MatchResult
y)
Completion\PatternMatchHelper.cs (2)
98
public
MatchResult
GetMatchResult(
142
out
MatchResult
matchResult)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionServiceWithProviders.cs (4)
31
IReadOnlyList<
MatchResult
> matchResults,
33
IList<
MatchResult
> builder)
38
IReadOnlyList<
MatchResult
> matchResults,
40
IList<
MatchResult
> builder)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\Completion\CompletionHandler.cs (3)
213
using var _ = ArrayBuilder<
MatchResult
>.GetInstance(out var matchResultsBuilder);
225
out
var
matchResult))
233
matchResultsBuilder.Sort(
MatchResult
.SortingComparer);