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