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