1 write to Text
Microsoft.CodeAnalysis.Workspaces (1)
PatternMatching\PatternMatcher.TextChunk.cs (1)
45
this.
Text
= text;
18 references to Text
Microsoft.CodeAnalysis.Workspaces (18)
PatternMatching\PatternMatcher.cs (18)
170
var caseInsensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, CompareOptions.IgnoreCase);
176
if (patternChunk.
Text
.Length == candidateLength)
180
PatternMatchKind.Exact, punctuationStripped, isCaseSensitive: candidate == patternChunk.
Text
,
185
var isCaseSensitive = _compareInfo.IsPrefix(candidate, patternChunk.
Text
);
206
PatternMatchKind.Prefix, punctuationStripped, isCaseSensitive, matchedSpan: GetMatchedSpan(0, patternChunk.
Text
.Length));
223
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, startIndex: caseInsensitiveIndex, CompareOptions.None);
231
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
246
matchedSpan: GetMatchedSpan(caseInsensitiveIndex, patternChunk.
Text
.Length));
257
if (PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.IgnoreCase))
260
isCaseSensitive: PartStartsWith(candidate, hump, patternChunk.
Text
, CompareOptions.None),
261
matchedSpan: GetMatchedSpan(hump.Start, patternChunk.
Text
.Length));
286
if (patternIsLowercase && caseInsensitiveIndex > 0 && patternChunk.
Text
.Length >= 3)
288
var caseSensitiveIndex = _compareInfo.IndexOf(candidate, patternChunk.
Text
, startIndex: caseInsensitiveIndex, CompareOptions.None);
293
matchedSpan: GetMatchedSpan(caseSensitiveIndex, patternChunk.
Text
.Length));
508
var matcher = new AllLowerCamelCaseMatcher(_includeMatchedSpans, candidate, patternChunk.
Text
, _textInfo);
575
if (!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump - 1].Start]) ||
576
!char.IsUpper(patternChunk.
Text
[patternHumps[currentPatternHump].Start]))
582
if (!PartStartsWith(candidate, candidateHump, patternChunk.
Text
, patternChunkCharacterSpan, compareOption))