13 instantiations of PatternMatch
Microsoft.CodeAnalysis.Features (1)
NavigateTo\INavigateToSearchResult.cs (1)
34
var patternMatch = new
PatternMatch
(
Microsoft.CodeAnalysis.Workspaces (12)
PatternMatching\FuzzyPatternMatcher.cs (1)
46
matches.Add(new
PatternMatch
(
PatternMatching\PatternMatch.cs (1)
60
=>
new
(Kind, _punctuationStripped, IsCaseSensitive, matchedSpans);
PatternMatching\PatternMatcher.cs (9)
193
return new
PatternMatch
(
219
return new
PatternMatch
(
241
return new
PatternMatch
(
258
return new
PatternMatch
(PatternMatchKind.StartOfWordSubstring, punctuationStripped,
273
return new
PatternMatch
(PatternMatchKind.StartOfWordSubstring, punctuationStripped,
305
return new
PatternMatch
(
470
return new
PatternMatch
(
490
return new
PatternMatch
(
495
return new
PatternMatch
(
PatternMatching\RegexPatternMatcher.cs (1)
77
matches.Add(new
PatternMatch
(kind, punctuationStripped: false, isCaseSensitive, matchedSpan));
42 references to PatternMatch
Microsoft.CodeAnalysis.Features (23)
Completion\CompletionHelper.cs (4)
78
PatternMatch
match1,
79
PatternMatch
match2,
213
private static int CompareExpandedItem(CompletionItem item1,
PatternMatch
match1, CompletionItem item2,
PatternMatch
match2)
Completion\MatchResult.cs (2)
13
PatternMatch
? patternMatch,
23
public readonly
PatternMatch
? PatternMatch = patternMatch;
Completion\PatternMatchHelper.cs (2)
48
public
PatternMatch
? GetMatch(string text, bool includeMatchSpans, CultureInfo culture)
203
PatternMatch
? patternMatch)
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (1)
131
public ImmutableArray<
PatternMatch
> Matches => NavigateToSearchResultHelpers.GetMatches(this);
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (8)
166
using var nameMatches = TemporaryArray<
PatternMatch
>.Empty;
167
using var containerMatches = TemporaryArray<
PatternMatch
>.Empty;
198
in TemporaryArray<
PatternMatch
> nameMatches,
199
in TemporaryArray<
PatternMatch
> containerMatches,
210
foreach (
var
match in nameMatches)
213
using var allPatternMatches = TemporaryArray<
PatternMatch
>.Empty;
296
private static NavigateToMatchKind GetNavigateToMatchKind(in TemporaryArray<
PatternMatch
> nameMatches)
306
foreach (
var
match in nameMatches)
NavigateTo\INavigateToSearchResult.cs (3)
24
ImmutableArray<
PatternMatch
> Matches { get; }
32
public static ImmutableArray<
PatternMatch
> GetMatches(INavigateToSearchResult result)
34
var
patternMatch = new PatternMatch(
NavigateTo\RoslynNavigateToItem.cs (3)
36
ImmutableArray<
PatternMatch
> matches)
66
public readonly ImmutableArray<
PatternMatch
> Matches = matches;
280
ImmutableArray<
PatternMatch
> INavigateToSearchResult.Matches => _item.Matches;
Microsoft.CodeAnalysis.Workspaces (19)
PatternMatching\CompoundPatternMatcher.cs (1)
37
protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<
PatternMatch
> matches)
PatternMatching\ContainerPatternMatcher.cs (2)
51
protected override bool AddMatchesWorker(string container, ref TemporaryArray<
PatternMatch
> matches)
53
using var tempContainerMatches = TemporaryArray<
PatternMatch
>.Empty;
PatternMatching\FuzzyPatternMatcher.cs (1)
42
protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<
PatternMatch
> matches)
PatternMatching\PatternMatch.cs (5)
13
internal readonly struct PatternMatch : IComparable<
PatternMatch
>
59
public
PatternMatch
WithMatchedSpans(ImmutableArray<TextSpan> matchedSpans)
62
public int CompareTo(
PatternMatch
other)
65
public int CompareTo(
PatternMatch
? other, bool ignoreCase)
68
public int CompareTo(
PatternMatch
other, bool ignoreCase)
PatternMatching\PatternMatcher.cs (6)
138
public bool AddMatches(string? candidate, ref TemporaryArray<
PatternMatch
> matches)
146
protected abstract bool AddMatchesWorker(string candidate, ref TemporaryArray<
PatternMatch
> matches);
175
private
PatternMatch
? MatchPatternChunk(
352
ref TemporaryArray<
PatternMatch
> matches)
401
using var tempMatches = TemporaryArray<
PatternMatch
>.Empty;
455
private
PatternMatch
? TryCamelCaseMatch(
PatternMatching\PatternMatcherExtensions.cs (2)
12
public static
PatternMatch
? GetFirstMatch(this PatternMatcher matcher, string? candidate)
14
using var matches = TemporaryArray<
PatternMatch
>.Empty;
PatternMatching\RegexPatternMatcher.cs (1)
54
protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<
PatternMatch
> matches)
PatternMatching\SimplePatternMatcher.cs (1)
43
protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<
PatternMatch
> matches)