28 references to PatternMatchKind
Microsoft.CodeAnalysis.Workspaces (28)
PatternMatching\AllLowerCamelCaseMatcher.cs (3)
37public PatternMatchKind? TryMatch( 65private static PatternMatchKind GetKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps) 237return GetKind(result, candidateHumps) == PatternMatchKind.CamelCaseExact;
PatternMatching\CamelCaseResult.cs (6)
46private static PatternMatchKind GetCamelCaseKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps) 57? PatternMatchKind.CamelCaseExact 58: PatternMatchKind.CamelCasePrefix; 62return PatternMatchKind.CamelCaseNonContiguousPrefix; 70? PatternMatchKind.CamelCaseSubstring 71: PatternMatchKind.CamelCaseNonContiguousSubstring;
PatternMatching\PatternMatch.cs (3)
19public PatternMatchKind Kind { get; } 38PatternMatchKind resultType, 48PatternMatchKind kind,
PatternMatching\PatternMatcher.cs (11)
155PatternMatchKind.Fuzzy, punctuationStripped, isCaseSensitive: false, matchedSpan: null); 180PatternMatchKind.Exact, punctuationStripped, isCaseSensitive: candidate == patternChunk.Text, 206PatternMatchKind.Prefix, punctuationStripped, isCaseSensitive, matchedSpan: GetMatchedSpan(0, patternChunk.Text.Length)); 226var resultType = char.IsUpper(candidate[caseSensitiveIndex]) ? PatternMatchKind.StartOfWordSubstring : PatternMatchKind.NonLowercaseSubstring; 244return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 259return new PatternMatch(PatternMatchKind.StartOfWordSubstring, punctuationStripped, 292PatternMatchKind.LowercaseSubstring, punctuationStripped, isCaseSensitive: true, 502private PatternMatchKind? TryAllLowerCamelCaseMatch( 512private PatternMatchKind? TryUpperCaseCamelCaseMatch(
PatternMatching\PatternMatchKind.cs (5)
113public static bool IsCamelCaseKind(this PatternMatchKind kind) 114=> kind is PatternMatchKind.CamelCaseExact or PatternMatchKind.CamelCasePrefix or PatternMatchKind.CamelCaseNonContiguousPrefix or PatternMatchKind.CamelCaseSubstring;