13 instantiations of PatternMatch
Microsoft.CodeAnalysis.Features (1)
NavigateTo\INavigateToSearchResult.cs (1)
34var patternMatch = new PatternMatch(
Microsoft.CodeAnalysis.Workspaces (12)
PatternMatching\FuzzyPatternMatcher.cs (1)
46matches.Add(new PatternMatch(
PatternMatching\PatternMatch.cs (1)
60=> new(Kind, _punctuationStripped, IsCaseSensitive, matchedSpans);
PatternMatching\PatternMatcher.cs (9)
193return new PatternMatch( 219return new PatternMatch( 241return new PatternMatch( 258return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 273return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 305return new PatternMatch( 470return new PatternMatch( 490return new PatternMatch( 495return new PatternMatch(
PatternMatching\RegexPatternMatcher.cs (1)
77matches.Add(new PatternMatch(kind, punctuationStripped: false, isCaseSensitive, matchedSpan));
54 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)
166using var nameMatches = TemporaryArray<PatternMatch>.Empty; 167using var containerMatches = TemporaryArray<PatternMatch>.Empty; 198in TemporaryArray<PatternMatch> nameMatches, 199in TemporaryArray<PatternMatch> containerMatches, 210foreach (var match in nameMatches) 213using var allPatternMatches = TemporaryArray<PatternMatch>.Empty; 296private static NavigateToMatchKind GetNavigateToMatchKind(in TemporaryArray<PatternMatch> nameMatches) 306foreach (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 (19)
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)
138public bool AddMatches(string? candidate, ref TemporaryArray<PatternMatch> matches) 146protected abstract bool AddMatchesWorker(string candidate, ref TemporaryArray<PatternMatch> matches); 175private PatternMatch? MatchPatternChunk( 352ref TemporaryArray<PatternMatch> matches) 401using var tempMatches = TemporaryArray<PatternMatch>.Empty; 455private PatternMatch? TryCamelCaseMatch(
PatternMatching\PatternMatcherExtensions.cs (2)
12public static PatternMatch? GetFirstMatch(this PatternMatcher matcher, string? candidate) 14using var matches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\RegexPatternMatcher.cs (1)
54protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<PatternMatch> matches)
PatternMatching\SimplePatternMatcher.cs (1)
43protected override bool AddMatchesWorker(string candidate, ref TemporaryArray<PatternMatch> matches)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
FindSymbols\NavigateToSearchIndexTests.cs (2)
36private static PatternMatch? GetNameMatch(string candidate, string pattern) 45using var matches = TemporaryArray<PatternMatch>.Empty;
FindSymbols\RegexPatternMatcherTests.cs (2)
13private static PatternMatch? GetMatch(string pattern, string candidate, bool includeMatchedSpans = false) 19using var matches = TemporaryArray<PatternMatch>.Empty;