1 write to Text
Microsoft.CodeAnalysis.Workspaces (1)
PatternMatching\PatternMatcher.TextChunk.cs (1)
41
this.
Text
= text;
20 references to Text
Microsoft.CodeAnalysis.Workspaces (20)
PatternMatching\PatternMatcher.cs (20)
154
var caseInsensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, CompareOptions.IgnoreCase);
160
if (patternChunk.
Text
.Length == candidateLength)
164
PatternMatchKind.Exact, punctuationStripped, isCaseSensitive: candidate == patternChunk.
Text
,
171
PatternMatchKind.Prefix, punctuationStripped, isCaseSensitive: _compareInfo.IsPrefix(candidate, patternChunk.
Text
),
172
matchedSpan: GetMatchedSpan(0, patternChunk.
Text
.Length));
191
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, CompareOptions.None);
198
matchedSpan: GetMatchedSpan(caseInsensitiveIndex, patternChunk.
Text
.Length));
204
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
220
matchedSpan: GetMatchedSpan(caseInsensitiveIndex, patternChunk.
Text
.Length));
230
if (PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.IgnoreCase))
233
isCaseSensitive: PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.None),
234
matchedSpan: GetMatchedSpan(hump.Start, patternChunk.
Text
.Length));
258
if (patternIsLowercase && caseInsensitiveIndex > 0 && patternChunk.
Text
.Length >= 3)
260
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, CompareOptions.None);
265
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
321
if (!ContainsSpaceOrAsterisk(segment.TotalTextChunk.
Text
))
471
var matcher = new AllLowerCamelCaseMatcher(_includeMatchedSpans, candidate, patternChunk.
Text
, _textInfo);
537
if (!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump - 1].Start]) ||
538
!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump].Start]))
544
if (!PartStartsWith(candidate, candidateHump, patternChunk.
Text
, patternChunkCharacterSpan, compareOption))