44 references to Count
Microsoft.CodeAnalysis (9)
MetadataReference\AssemblyIdentityMap.cs (2)
41for (int i = 0; i < sameName.Count; i++) 82for (int i = 0; i < sameName.Count; i++)
SourceGeneration\Nodes\NodeStateTable.cs (1)
627public int Count => _items.Count;
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (1)
74for (int i = 0; i < removedNodes.Count; i++)
src\Dependencies\Collections\OneOrMany.cs (5)
92=> Count == 0; 195if (Count != other.Count) 249return _index < _collection.Count; 264=> "Count = " + Count;
Microsoft.CodeAnalysis.CSharp (32)
Compilation\CSharpCompilation.cs (2)
3688Debug.Assert(interceptionsOfAGivenLocation.Count != 0); 3689if (interceptionsOfAGivenLocation.Count == 1)
Compilation\CSharpSemanticModel.cs (9)
370switch (symbols.Count) 1924if ((symbols.Count != 1 || resultKind == LookupResultKind.OverloadResolutionFailure) && highestSymbols.Count > 0) 1966var builder = ArrayBuilder<Symbol>.GetInstance(symbols.Count); 1980if (resultKind == LookupResultKind.Viable && symbols.Count > 1) 3997if (unwrappedSymbols.Count == 1 && unwrappedSymbols[0].Kind == SymbolKind.NamedType) 4010if (unwrappedSymbols.Count == 1) 4360if (symbols.Count > 0) 4375if (symbols.Count > 0)
Compilation\MemberSemanticModel.cs (3)
536if (boundNodes.Count == 0) 557if (boundNodes.Count == 0) 569return boundNodes[boundNodes.Count - 1];
Compilation\MemberSemanticModel.NodeMapBuilder.cs (3)
80Debug.Assert(existing.Count == nodesToAdd.Count, "existing.Count == nodesToAdd.Length"); 81for (int i = 0; i < existing.Count; i++)
Compilation\SymbolInfoFactory.cs (5)
27if (symbols.Count == 1) 38if (symbols.Count > 0) 40Debug.Assert(symbols.Count == 1); 50return new SymbolInfo(getPublicSymbols(symbols), (symbols.Count > 0) ? resultKind.ToCandidateReason() : CandidateReason.None); 55var result = ArrayBuilder<ISymbol>.GetInstance(symbols.Count);
Declarations\DeclarationTreeBuilder.cs (1)
1041var previousMemberNames = _currentTypeIndex < _previousMemberNames.Count && _previousMemberNames[_currentTypeIndex].TryGetTarget(out var previousNames)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (8)
1045if (matchingTrees.Count > 1) 1051if (matchingTrees.Count == 0) 1057Debug.Assert(matchingTrees.Count == 1); 1190if (matchingTrees.Count > 1) 1196if (matchingTrees.Count == 0) 1201if (matchingTrees.Count > 1) 1209if (matchingTrees.Count == 0) 1237Debug.Assert(matchingTrees.Count == 1);
Symbols\Symbol_Attributes.cs (1)
599for (int listIndex = 0; listIndex < attributeDeclarationSyntaxLists.Count; listIndex++)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
SourceGeneration\StateTableTests.cs (1)
95Assert.Equal(1, removedEntries.Count);
Microsoft.CodeAnalysis.UnitTests (2)
InternalUtilities\OneOrManyTests.cs (2)
19Assert.Equal(actual.Count, expected.Length); 20int n = actual.Count;