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)
184
var caseInsensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, CompareOptions.IgnoreCase);
190
if (patternChunk.
Text
.Length == candidateLength)
194
PatternMatchKind.Exact, punctuationStripped, isCaseSensitive: candidate == patternChunk.
Text
,
199
var isCaseSensitive = _compareInfo.IsPrefix(candidate, patternChunk.
Text
);
220
PatternMatchKind.Prefix, punctuationStripped, isCaseSensitive, matchedSpan: GetMatchedSpan(0, patternChunk.
Text
.Length));
237
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, startIndex: caseInsensitiveIndex, CompareOptions.None);
245
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
260
matchedSpan: GetMatchedSpan(caseInsensitiveIndex, patternChunk.
Text
.Length));
271
if (PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.IgnoreCase))
274
isCaseSensitive: PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.None),
275
matchedSpan: GetMatchedSpan(hump.Start, patternChunk.
Text
.Length));
300
if (patternIsLowercase && caseInsensitiveIndex > 0 && patternChunk.
Text
.Length >= 3)
302
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, startIndex: caseInsensitiveIndex, CompareOptions.None);
307
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
361
if (!ContainsSpaceOrAsterisk(segment.TotalTextChunk.
Text
))
511
var matcher = new AllLowerCamelCaseMatcher(_includeMatchedSpans, candidate, patternChunk.
Text
, _textInfo);
578
if (!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump - 1].Start]) ||
579
!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump].Start]))
585
if (!PartStartsWith(candidate, candidateHump, patternChunk.
Text
, patternChunkCharacterSpan, compareOption))