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