17 references to Count
Microsoft.CodeAnalysis (17)
SourceGeneration\Nodes\NodeStateTable.cs (17)
91=> _states.Sum(static e => e.Count); 99for (int j = 0; j < inputEntry.Count; j++) 132Debug.Assert((_states.Length == 1 || _states.Length == 2 && _states[0].IsRemoved) && _states[^1].Count == 1); 256Debug.Assert(_previous._states[_states.Count].Count == 1); 280if (previousEntry.Count == 0 && outputs.Length == 0) 296var totalBuilderItems = Math.Max(previousEntry.Count, outputs.Length); 297var builder = previousEntry.Count == outputs.Length ? null : new TableEntry.Builder(capacity: totalBuilderItems); 299var sharedCount = Math.Min(previousEntry.Count, outputs.Length); 334for (int i = sharedCount; i < previousEntry.Count; i++) 381var stepOutputBuilder = ArrayBuilder<(object, IncrementalStepRunReason)>.GetInstance(outputInfo.Count); 383for (int i = 0; i < outputInfo.Count; i++) 494if (this.Count != entry.Count) 497for (int i = 0, n = this.Count; i < n; i++) 547return _index < _entry.Count; 556if (this.Count == 1) 564for (int i = 0; i < Count; i++)