12 instantiations of PatternMatch
Microsoft.CodeAnalysis.Features (1)
NavigateTo\INavigateToSearchResult.cs (1)
34var patternMatch = new PatternMatch(
Microsoft.CodeAnalysis.Workspaces (11)
PatternMatching\FuzzyPatternMatcher.cs (1)
46matches.Add(new PatternMatch(
PatternMatching\PatternMatch.cs (1)
60=> new(Kind, _punctuationStripped, IsCaseSensitive, matchedSpans);
PatternMatching\PatternMatcher.cs (9)
164return new PatternMatch( 190return new PatternMatch( 212return new PatternMatch( 229return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 244return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 276return new PatternMatch( 441return new PatternMatch( 461return new PatternMatch( 466return new PatternMatch(
51 references to PatternMatch
IdeCoreBenchmarks (1)
NavigateToPreFilterBenchmarks.cs (1)
56using var matches = TemporaryArray<PatternMatch>.Empty;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
NavigateTo\NavigateToSearcherTests.cs (1)
555public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Utilities\PatternMatcherTests.cs (5)
229private static void AssertContainsType(PatternMatchKind type, IEnumerable<PatternMatch> results) 457private static PatternMatch? TestNonFuzzyMatchCore(string candidate, string pattern) 476private static IEnumerable<PatternMatch> TryMatchMultiWordPattern(string candidate, string pattern) 480using var matches = TemporaryArray<PatternMatch>.Empty; 491foreach (var match in matches)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\NavigateTo\InternalFSharpNavigateToSearchResult.cs (1)
42public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
Microsoft.CodeAnalysis.Features (23)
Completion\CompletionHelper.cs (4)
78PatternMatch match1, 79PatternMatch match2, 213private static int CompareExpandedItem(CompletionItem item1, PatternMatch match1, CompletionItem item2, PatternMatch match2)
Completion\MatchResult.cs (2)
13PatternMatch? patternMatch, 23public readonly PatternMatch? PatternMatch = patternMatch;
Completion\PatternMatchHelper.cs (2)
48public PatternMatch? GetMatch(string text, bool includeMatchSpans, CultureInfo culture) 203PatternMatch? patternMatch)
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (1)
131public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (8)
106using var nameMatches = TemporaryArray<PatternMatch>.Empty; 107using var containerMatches = TemporaryArray<PatternMatch>.Empty; 138in TemporaryArray<PatternMatch> nameMatches, 139in TemporaryArray<PatternMatch> containerMatches, 150foreach (var match in nameMatches) 153using var allPatternMatches = TemporaryArray<PatternMatch>.Empty; 236private static NavigateToMatchKind GetNavigateToMatchKind(in TemporaryArray<PatternMatch> nameMatches) 246foreach (var match in nameMatches)
NavigateTo\INavigateToSearchResult.cs (3)
24ImmutableArray<PatternMatch> Matches { get; } 32public static ImmutableArray<PatternMatch> GetMatches(INavigateToSearchResult result) 34var patternMatch = new PatternMatch(
NavigateTo\RoslynNavigateToItem.cs (3)
36ImmutableArray<PatternMatch> matches) 66public readonly ImmutableArray<PatternMatch> Matches = matches; 280ImmutableArray<PatternMatch> INavigateToSearchResult.Matches => _item.Matches;
Microsoft.CodeAnalysis.Workspaces (18)
PatternMatching\CompoundPatternMatcher.cs (1)
37protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<PatternMatch> matches)
PatternMatching\ContainerPatternMatcher.cs (2)
51protected override bool AddMatchesWorker(string container, ref TemporaryArray<PatternMatch> matches) 53using var tempContainerMatches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\FuzzyPatternMatcher.cs (1)
42protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<PatternMatch> matches)
PatternMatching\PatternMatch.cs (5)
13internal readonly struct PatternMatch : IComparable<PatternMatch> 59public PatternMatch WithMatchedSpans(ImmutableArray<TextSpan> matchedSpans) 62public int CompareTo(PatternMatch other) 65public int CompareTo(PatternMatch? other, bool ignoreCase) 68public int CompareTo(PatternMatch other, bool ignoreCase)
PatternMatching\PatternMatcher.cs (6)
109public bool AddMatches(string? candidate, ref TemporaryArray<PatternMatch> matches) 117protected abstract bool AddMatchesWorker(string candidate, ref TemporaryArray<PatternMatch> matches); 146private PatternMatch? MatchPatternChunk( 323ref TemporaryArray<PatternMatch> matches) 372using var tempMatches = TemporaryArray<PatternMatch>.Empty; 426private PatternMatch? TryCamelCaseMatch(
PatternMatching\PatternMatcherExtensions.cs (2)
12public static PatternMatch? GetFirstMatch(this PatternMatcher matcher, string? candidate) 14using var matches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\SimplePatternMatcher.cs (1)
43protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<PatternMatch> matches)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
FindSymbols\NavigateToSearchIndexTests.cs (2)
36private static PatternMatch? GetNameMatch(string candidate, string pattern) 45using var matches = TemporaryArray<PatternMatch>.Empty;