1 write to _states
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\NodeStateTable.cs (1)
256_states = ArrayBuilder<TableEntry>.GetInstance(tableCapacity ?? previous.GetTotalEntryItemCount());
22 references to _states
Microsoft.CodeAnalysis (22)
SourceGeneration\Nodes\NodeStateTable.cs (22)
266public int Count => _states.Count; 279_states.Add(previousEntries); 292entries = _states[^1].Items; 306_states.Add(previousEntries); 319entry = _states[^1]; 339_states.Add(new TableEntry(OneOrMany.Create(chosen), state)); 361_states.Add(previousEntry); 430_states.Add(builder == null ? previousEntry : builder.ToImmutableAndFree()); 444entry = _states[^1]; 450_states.Add(new TableEntry(OneOrMany.Create(value), state)); 458_states.Add(tableEntry); 468var previousTableEntryIndex = _states.Count - _insertedCount; 481Debug.Assert(_steps.Count + 1 == _states.Count); 483TableEntry outputInfo = _states[^1]; 520Debug.Assert(!TrackIncrementalSteps || _states.Count == _steps.Count); 522if (_states.Count == 0) 524_states.Free(); 532Debug.Assert(_requestedTableCapacity == null || _states.Count <= _requestedTableCapacity); 538if (_states.Count == _previous.Count && _states.SequenceEqual(_previous._states, (e1, e2) => e1.Matches(e2, _equalityComparer))) 541_states.Free(); 547finalStates = _states.ToImmutableAndFree();