1 write to Text
Microsoft.CodeAnalysis.Workspaces (1)
PatternMatching\PatternMatcher.TextChunk.cs (1)
44
this.
Text
= text;
19 references to Text
Microsoft.CodeAnalysis.Workspaces (19)
PatternMatching\PatternMatcher.cs (19)
171
var caseInsensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, CompareOptions.IgnoreCase);
177
if (patternChunk.
Text
.Length == candidateLength)
181
PatternMatchKind.Exact, punctuationStripped, isCaseSensitive: candidate == patternChunk.
Text
,
186
var isCaseSensitive = _compareInfo.IsPrefix(candidate, patternChunk.
Text
);
207
PatternMatchKind.Prefix, punctuationStripped, isCaseSensitive, matchedSpan: GetMatchedSpan(0, patternChunk.
Text
.Length));
224
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, startIndex: caseInsensitiveIndex, CompareOptions.None);
232
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
247
matchedSpan: GetMatchedSpan(caseInsensitiveIndex, patternChunk.
Text
.Length));
258
if (PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.IgnoreCase))
261
isCaseSensitive: PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.None),
262
matchedSpan: GetMatchedSpan(hump.Start, patternChunk.
Text
.Length));
287
if (patternIsLowercase && caseInsensitiveIndex > 0 && patternChunk.
Text
.Length >= 3)
289
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, startIndex: caseInsensitiveIndex, CompareOptions.None);
294
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
356
if (!ContainsSpaceOrAsterisk(segment.TotalTextChunk.
Text
))
509
var matcher = new AllLowerCamelCaseMatcher(_includeMatchedSpans, candidate, patternChunk.
Text
, _textInfo);
576
if (!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump - 1].Start]) ||
577
!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump].Start]))
583
if (!PartStartsWith(candidate, candidateHump, patternChunk.
Text
, patternChunkCharacterSpan, compareOption))