23 references to Count
Microsoft.CodeAnalysis (23)
SourceGeneration\Nodes\NodeStateTable.cs (22)
91
=> _states.Sum(static e => e.
Count
);
116
if (_nextInputEntryIndex < _inputEntry.
Count
)
179
Debug.Assert((_states.Length == 1 || _states.Length == 2 && _states[0].IsRemovedDueToInputRemoval) && _states[^1].
Count
== 1);
205
for (int i = 0; i < state.
Count
; i++)
331
if (previousEntry.
Count
== 0)
337
Debug.Assert(previousEntry.
Count
== 1);
359
if (previousEntry.
Count
== 0 && outputs.Length == 0)
375
var totalBuilderItems = Math.Max(previousEntry.
Count
, outputs.Length);
376
var builder = previousEntry.
Count
== outputs.Length ? null : new TableEntry.Builder(capacity: totalBuilderItems);
378
var sharedCount = Math.Min(previousEntry.
Count
, outputs.Length);
413
for (int i = sharedCount; i < previousEntry.
Count
; i++)
485
var stepOutputBuilder = ArrayBuilder<(object, IncrementalStepRunReason)>.GetInstance(outputInfo.
Count
);
487
for (int i = 0; i < outputInfo.
Count
; i++)
554
isCached: finalStates.All(static s => s.IsCached) && _previous.GetTotalEntryItemCount() == finalStates.Sum(static s => s.
Count
));
610
if (this.
Count
!= entry.
Count
)
613
for (int i = 0, n = this.
Count
; i < n; i++)
642
for (int i = 0; i < this.
Count
; i++)
650
Debug.Assert(itemBuilder.Count < this.
Count
);
681
return _index < _entry.
Count
;
690
if (this.
Count
== 1)
698
for (int i = 0; i <
Count
; i++)
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (1)
95
for (var i = 0; i < entry.
Count
; i++)