38 references to Count
Microsoft.CodeAnalysis.Workspaces (38)
Classification\ClassifierHelper.cs (3)
271
if (tempBuffer.
Count
== 0)
284
var lastSemanticPart = tempBuffer[tempBuffer.
Count
- 1];
299
for (var i = 0; i < tempBuffer.
Count
- 1; i++)
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (5)
158
Debug.Assert(overlappingSpans.
Count
== 0);
159
if (intersectingSpans.
Count
== 0)
165
if (intersectingSpans.
Count
== 1)
214
if (overlappingSpans.
Count
== 0)
223
var isSafe = overlappingSpans.
Count
== 1 && overlappingSpans[0] == change;
Options\GlobalOptionService.cs (1)
146
if (values.
Count
!= optionKeys.Length)
PatternMatching\AllLowerCamelCaseMatcher.cs (1)
87
for (int humpIndex = candidateHumpIndex, n = candidateHumps.
Count
; humpIndex < n; humpIndex++)
PatternMatching\CamelCaseResult.cs (1)
48
var toEnd = result.MatchCount == candidateHumps.
Count
;
PatternMatching\PatternMatcher.cs (7)
254
for (int i = 0, n = candidateHumps.
Count
; i < n; i++)
301
if (candidateHumps.
Count
== 0)
411
return tempMatches.
Count
> 0;
476
if (patternChunk.PatternHumps.
Count
> 0)
531
var patternHumpCount = patternHumps.
Count
;
532
var candidateHumpCount = candidateHumps.
Count
;
544
var matchCount = matchSpans.
Count
;
PatternMatching\PatternMatcherExtensions.cs (1)
16
return matches.
Count
> 0 ? matches[0] : null;
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (3)
945
if (items.
Count
== 0)
950
if (items.
Count
== 1)
955
var builder = new T[self.Length + items.
Count
];
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (4)
200
if (_count + items.
Count
<= InlineCapacity)
232
var count = this.
Count
;
282
switch (this.
Count
)
462
if (_nextIndex >= _array.
Count
)
src\Compilers\Core\Portable\Collections\TemporaryArrayExtensions.cs (1)
111
=> array.
Count
> 0 ? array[0] : default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
407
var newWords = new string[parts.
Count
];
408
for (var i = 0; i < parts.
Count
; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (8)
112
if (result.
Count
>= maxCount)
119
if (result.
Count
>= maxCount)
123
if (result.
Count
>= maxCount)
281
if (result.
Count
>= maxCount)
320
if (result.
Count
>= maxCount)
373
if (result.
Count
>= maxCount)
544
if (result.
Count
>= maxCount)
567
if (result.
Count
>= maxCount)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
375
for (var i = parts.
Count
- 1; i >= 0; i--)