23 references to Count
Microsoft.CodeAnalysis (23)
SourceGeneration\Nodes\NodeStateTable.cs (22)
92
=> _states.Sum(static e => e.
Count
);
117
if (_nextInputEntryIndex < _inputEntry.
Count
)
180
Debug.Assert((_states.Length == 1 || _states.Length == 2 && _states[0].IsRemovedDueToInputRemoval) && _states[^1].
Count
== 1);
206
for (int i = 0; i < state.
Count
; i++)
332
if (previousEntry.
Count
== 0)
338
Debug.Assert(previousEntry.
Count
== 1);
360
if (previousEntry.
Count
== 0 && outputs.Length == 0)
376
var totalBuilderItems = Math.Max(previousEntry.
Count
, outputs.Length);
377
var builder = previousEntry.
Count
== outputs.Length ? null : new TableEntry.Builder(capacity: totalBuilderItems);
379
var sharedCount = Math.Min(previousEntry.
Count
, outputs.Length);
414
for (int i = sharedCount; i < previousEntry.
Count
; i++)
486
var stepOutputBuilder = ArrayBuilder<(object, IncrementalStepRunReason)>.GetInstance(outputInfo.
Count
);
488
for (int i = 0; i < outputInfo.
Count
; i++)
555
isCached: finalStates.All(static s => s.IsCached) && _previous.GetTotalEntryItemCount() == finalStates.Sum(static s => s.
Count
));
611
if (this.
Count
!= entry.
Count
)
614
for (int i = 0, n = this.
Count
; i < n; i++)
643
for (int i = 0; i < this.
Count
; i++)
651
Debug.Assert(itemBuilder.Count < this.
Count
);
682
return _index < _entry.
Count
;
691
if (this.
Count
== 1)
699
for (int i = 0; i <
Count
; i++)
SourceGeneration\Nodes\PredicateSyntaxStrategy.cs (1)
95
for (var i = 0; i < entry.
Count
; i++)