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