12 instantiations of PatternMatch
Microsoft.CodeAnalysis.Features (1)
NavigateTo\INavigateToSearchResult.cs (1)
34var patternMatch = new PatternMatch(
Microsoft.CodeAnalysis.Workspaces (11)
PatternMatching\PatternMatch.cs (1)
60=> new(Kind, _punctuationStripped, IsCaseSensitive, matchedSpans);
PatternMatching\PatternMatcher.cs (10)
155return new PatternMatch( 180return new PatternMatch( 206return new PatternMatch( 228return new PatternMatch( 245return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 260return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 292return new PatternMatch( 468return new PatternMatch( 488return new PatternMatch( 493return new PatternMatch(
48 references to PatternMatch
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
NavigateTo\NavigateToSearcherTests.cs (1)
561public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Utilities\PatternMatcherTests.cs (5)
230private static void AssertContainsType(PatternMatchKind type, IEnumerable<PatternMatch> results) 458private static PatternMatch? TestNonFuzzyMatchCore(string candidate, string pattern) 477private static IEnumerable<PatternMatch> TryMatchMultiWordPattern(string candidate, string pattern) 481using var matches = TemporaryArray<PatternMatch>.Empty; 492foreach (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) 204PatternMatch? patternMatch)
ExternalAccess\VSTypeScript\VSTypeScriptNavigateToSearchService.cs (1)
131public ImmutableArray<PatternMatch> Matches => NavigateToSearchResultHelpers.GetMatches(this);
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (8)
99using var nameMatches = TemporaryArray<PatternMatch>.Empty; 100using var containerMatches = TemporaryArray<PatternMatch>.Empty; 131in TemporaryArray<PatternMatch> nameMatches, 132in TemporaryArray<PatternMatch> containerMatches, 143foreach (var match in nameMatches) 146using var allPatternMatches = TemporaryArray<PatternMatch>.Empty; 226private static NavigateToMatchKind GetNavigateToMatchKind(in TemporaryArray<PatternMatch> nameMatches) 236foreach (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; 279ImmutableArray<PatternMatch> INavigateToSearchResult.Matches => _item.Matches;
Microsoft.CodeAnalysis.Workspaces (18)
PatternMatching\ContainerPatternMatcher.cs (3)
44public override bool AddMatches(string? container, ref TemporaryArray<PatternMatch> matches) 55private bool AddMatches(string container, ref TemporaryArray<PatternMatch> matches, bool fuzzyMatch) 62using var tempContainerMatches = TemporaryArray<PatternMatch>.Empty;
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 (7)
107public abstract bool AddMatches(string? candidate, ref TemporaryArray<PatternMatch> matches); 136private PatternMatch? MatchPatternChunk( 147private static PatternMatch? FuzzyMatchPatternChunk( 162private PatternMatch? NonFuzzyMatchPatternChunk( 341ref TemporaryArray<PatternMatch> matches, 398using var tempMatches = TemporaryArray<PatternMatch>.Empty; 453private PatternMatch? TryCamelCaseMatch(
PatternMatching\PatternMatcherExtensions.cs (2)
13public static PatternMatch? GetFirstMatch(this PatternMatcher matcher, string? candidate) 15using var matches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\SimplePatternMatcher.cs (1)
44public override bool AddMatches(string candidate, ref TemporaryArray<PatternMatch> matches)