65 references to PatternMatchKind
Microsoft.CodeAnalysis.Features (32)
Completion\CompletionHelper.cs (8)
240if (match1.Kind != PatternMatchKind.Exact && match2.Kind != PatternMatchKind.Exact) 261if (!isItem1Expanded && match1.Kind <= PatternMatchKind.Prefix) 266if (!isItem2Expanded && match2.Kind <= PatternMatchKind.Prefix) 273Debug.Assert(isItem1Expanded && match1.Kind == PatternMatchKind.Exact && !isItem2Expanded && match2.Kind > PatternMatchKind.Prefix || 274isItem2Expanded && match2.Kind == PatternMatchKind.Exact && !isItem1Expanded && match1.Kind > PatternMatchKind.Prefix);
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (12)
29private static readonly ImmutableArray<(PatternMatchKind roslynKind, NavigateToMatchKind vsKind)> s_kindPairs = 31(PatternMatchKind.Exact, NavigateToMatchKind.Exact), 32(PatternMatchKind.Prefix, NavigateToMatchKind.Prefix), 33(PatternMatchKind.NonLowercaseSubstring, NavigateToMatchKind.Substring), 34(PatternMatchKind.StartOfWordSubstring, NavigateToMatchKind.Substring), 35(PatternMatchKind.CamelCaseExact, NavigateToMatchKind.CamelCaseExact), 36(PatternMatchKind.CamelCasePrefix, NavigateToMatchKind.CamelCasePrefix), 37(PatternMatchKind.CamelCaseNonContiguousPrefix, NavigateToMatchKind.CamelCaseNonContiguousPrefix), 38(PatternMatchKind.CamelCaseSubstring, NavigateToMatchKind.CamelCaseSubstring), 39(PatternMatchKind.CamelCaseNonContiguousSubstring, NavigateToMatchKind.CamelCaseNonContiguousSubstring), 40(PatternMatchKind.Fuzzy, NavigateToMatchKind.Fuzzy), 45(PatternMatchKind.LowercaseSubstring, NavigateToMatchKind.Fuzzy),
NavigateTo\INavigateToSearchResult.cs (12)
42private static PatternMatchKind GetPatternMatchKind(NavigateToMatchKind matchKind) 45NavigateToMatchKind.Exact => PatternMatchKind.Exact, 46NavigateToMatchKind.Prefix => PatternMatchKind.Prefix, 47NavigateToMatchKind.Substring => PatternMatchKind.NonLowercaseSubstring, 48NavigateToMatchKind.Regular => PatternMatchKind.Fuzzy, 49NavigateToMatchKind.None => PatternMatchKind.Fuzzy, 50NavigateToMatchKind.CamelCaseExact => PatternMatchKind.CamelCaseExact, 51NavigateToMatchKind.CamelCasePrefix => PatternMatchKind.CamelCasePrefix, 52NavigateToMatchKind.CamelCaseNonContiguousPrefix => PatternMatchKind.CamelCaseNonContiguousPrefix, 53NavigateToMatchKind.CamelCaseSubstring => PatternMatchKind.CamelCaseSubstring, 54NavigateToMatchKind.CamelCaseNonContiguousSubstring => PatternMatchKind.CamelCaseNonContiguousSubstring, 55NavigateToMatchKind.Fuzzy => PatternMatchKind.Fuzzy,
Microsoft.CodeAnalysis.Workspaces (33)
FindSymbols\TopLevelSyntaxTree\NavigateToSearchIndex.NavigateToSearchInfo.cs (2)
93/// <see cref="PatternMatching.PatternMatchKind.LowercaseSubstring"/> matches like "readline" 330/// <see cref="PatternMatching.PatternMatchKind.NonLowercaseSubstring"/>).
PatternMatching\AllLowerCamelCaseMatcher.cs (3)
38public PatternMatchKind? TryMatch( 66private static PatternMatchKind GetKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps) 238return GetKind(result, candidateHumps) == PatternMatchKind.CamelCaseExact;
PatternMatching\CamelCaseResult.cs (6)
47private static PatternMatchKind GetCamelCaseKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps) 58? PatternMatchKind.CamelCaseExact 59: PatternMatchKind.CamelCasePrefix; 63return PatternMatchKind.CamelCaseNonContiguousPrefix; 71? PatternMatchKind.CamelCaseSubstring 72: PatternMatchKind.CamelCaseNonContiguousSubstring;
PatternMatching\FuzzyPatternMatcher.cs (1)
47PatternMatchKind.Fuzzy, punctuationStripped: false,
PatternMatching\PatternMatch.cs (3)
19public PatternMatchKind Kind { get; } 38PatternMatchKind resultType, 48PatternMatchKind kind,
PatternMatching\PatternMatcher.cs (10)
194PatternMatchKind.Exact, punctuationStripped, isCaseSensitive: candidate == patternChunk.Text, 220PatternMatchKind.Prefix, punctuationStripped, isCaseSensitive, matchedSpan: GetMatchedSpan(0, patternChunk.Text.Length)); 240var resultType = char.IsUpper(candidate[caseSensitiveIndex]) ? PatternMatchKind.StartOfWordSubstring : PatternMatchKind.NonLowercaseSubstring; 258return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 273return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 306PatternMatchKind.LowercaseSubstring, punctuationStripped, isCaseSensitive: true, 505private PatternMatchKind? TryAllLowerCamelCaseMatch( 515private PatternMatchKind? TryUpperCaseCamelCaseMatch(
PatternMatching\PatternMatchKind.cs (5)
111public static bool IsCamelCaseKind(this PatternMatchKind kind) 112=> kind is PatternMatchKind.CamelCaseExact or PatternMatchKind.CamelCasePrefix or PatternMatchKind.CamelCaseNonContiguousPrefix or PatternMatchKind.CamelCaseSubstring;
PatternMatching\RegexPatternMatcher.cs (3)
71var kind = bestMatch.Length == candidate.Length && bestMatch.Index == 0 72? PatternMatchKind.Exact 73: PatternMatchKind.NonLowercaseSubstring;