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