1 write to Text
Microsoft.CodeAnalysis.Workspaces (1)
PatternMatching\PatternMatcher.TextChunk.cs (1)
37
this.
Text
= text;
19 references to Text
Microsoft.CodeAnalysis.Workspaces (19)
PatternMatching\PatternMatcher.cs (19)
155
var caseInsensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, CompareOptions.IgnoreCase);
161
if (patternChunk.
Text
.Length == candidateLength)
165
PatternMatchKind.Exact, punctuationStripped, isCaseSensitive: candidate == patternChunk.
Text
,
170
var isCaseSensitive = _compareInfo.IsPrefix(candidate, patternChunk.
Text
);
191
PatternMatchKind.Prefix, punctuationStripped, isCaseSensitive, matchedSpan: GetMatchedSpan(0, patternChunk.
Text
.Length));
208
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, startIndex: caseInsensitiveIndex, CompareOptions.None);
216
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
231
matchedSpan: GetMatchedSpan(caseInsensitiveIndex, patternChunk.
Text
.Length));
242
if (PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.IgnoreCase))
245
isCaseSensitive: PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.None),
246
matchedSpan: GetMatchedSpan(hump.Start, patternChunk.
Text
.Length));
271
if (patternIsLowercase && caseInsensitiveIndex > 0 && patternChunk.
Text
.Length >= 3)
273
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, startIndex: caseInsensitiveIndex, CompareOptions.None);
278
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
332
if (!ContainsSpaceOrAsterisk(segment.TotalTextChunk.
Text
))
482
var matcher = new AllLowerCamelCaseMatcher(_includeMatchedSpans, candidate, patternChunk.
Text
, _textInfo);
549
if (!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump - 1].Start]) ||
550
!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump].Start]))
556
if (!PartStartsWith(candidate, candidateHump, patternChunk.
Text
, patternChunkCharacterSpan, compareOption))