13 instantiations of PatternMatch
Microsoft.CodeAnalysis.Features (1)
NavigateTo\INavigateToSearchResult.cs (1)
37var patternMatch = new PatternMatch(
Microsoft.CodeAnalysis.Workspaces (12)
PatternMatching\PatternMatch.cs (1)
61=> new(Kind, _punctuationStripped, IsCaseSensitive, matchedSpans);
PatternMatching\PatternMatcher.cs (11)
140return new PatternMatch( 163return new PatternMatch( 170return new PatternMatch( 196return new PatternMatch( 202return new PatternMatch( 218return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 232return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 263return new PatternMatch( 433return new PatternMatch( 447return new PatternMatch( 455return new PatternMatch(
48 references to PatternMatch
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
NavigateTo\NavigateToSearcherTests.cs (1)
291public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Utilities\PatternMatcherTests.cs (5)
225private static void AssertContainsType(PatternMatchKind type, IEnumerable<PatternMatch> results) 440private static PatternMatch? TestNonFuzzyMatchCore(string candidate, string pattern) 459private static IEnumerable<PatternMatch> TryMatchMultiWordPattern(string candidate, string pattern) 463using var matches = TemporaryArray<PatternMatch>.Empty; 474foreach (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)
81PatternMatch match1, 82PatternMatch match2, 215private static int CompareExpandedItem(CompletionItem item1, PatternMatch match1, CompletionItem item2, PatternMatch match2)
Completion\MatchResult.cs (2)
17public readonly PatternMatch? PatternMatch; 44PatternMatch? patternMatch,
Completion\PatternMatchHelper.cs (2)
39public PatternMatch? GetMatch(string text, bool includeMatchSpans, CultureInfo culture) 195PatternMatch? patternMatch)
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (1)
142public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (8)
141using var nameMatches = TemporaryArray<PatternMatch>.Empty; 142using var containerMatches = TemporaryArray<PatternMatch>.Empty; 170in TemporaryArray<PatternMatch> nameMatches, 171in TemporaryArray<PatternMatch> containerMatches, 182foreach (var match in nameMatches) 185using var allPatternMatches = TemporaryArray<PatternMatch>.Empty; 267private static NavigateToMatchKind GetNavigateToMatchKind(in TemporaryArray<PatternMatch> nameMatches) 277foreach (var match in nameMatches)
NavigateTo\INavigateToSearchResult.cs (3)
27ImmutableArray<PatternMatch> Matches { get; } 35public static ImmutableArray<PatternMatch> GetMatches(INavigateToSearchResult result) 37var patternMatch = new PatternMatch(
NavigateTo\RoslynNavigateToItem.cs (3)
57public readonly ImmutableArray<PatternMatch> Matches; 68ImmutableArray<PatternMatch> matches) 288ImmutableArray<PatternMatch> INavigateToSearchResult.Matches => _item.Matches;
Microsoft.CodeAnalysis.Workspaces (18)
PatternMatching\ContainerPatternMatcher.cs (3)
47public override bool AddMatches(string container, ref TemporaryArray<PatternMatch> matches) 58private bool AddMatches(string container, ref TemporaryArray<PatternMatch> matches, bool fuzzyMatch) 65using var tempContainerMatches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\PatternMatch.cs (5)
14internal readonly struct PatternMatch : IComparable<PatternMatch> 60public PatternMatch WithMatchedSpans(ImmutableArray<TextSpan> matchedSpans) 63public int CompareTo(PatternMatch other) 66public int CompareTo(PatternMatch? other, bool ignoreCase) 69public int CompareTo(PatternMatch other, bool ignoreCase)
PatternMatching\PatternMatcher.cs (7)
103public abstract bool AddMatches(string? candidate, ref TemporaryArray<PatternMatch> matches); 122private PatternMatch? MatchPatternChunk( 133private static PatternMatch? FuzzyMatchPatternChunk( 147private PatternMatch? NonFuzzyMatchPatternChunk( 306ref TemporaryArray<PatternMatch> matches, 363using var tempMatches = TemporaryArray<PatternMatch>.Empty; 418private 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)
44public override bool AddMatches(string candidate, ref TemporaryArray<PatternMatch> matches)