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