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)
266
public int Count =>
_states
.Count;
279
_states
.Add(previousEntries);
292
entries =
_states
[^1].Items;
306
_states
.Add(previousEntries);
319
entry =
_states
[^1];
339
_states
.Add(new TableEntry(OneOrMany.Create(chosen), state));
361
_states
.Add(previousEntry);
430
_states
.Add(builder == null ? previousEntry : builder.ToImmutableAndFree());
444
entry =
_states
[^1];
450
_states
.Add(new TableEntry(OneOrMany.Create(value), state));
458
_states
.Add(tableEntry);
468
var previousTableEntryIndex =
_states
.Count - _insertedCount;
481
Debug.Assert(_steps.Count + 1 ==
_states
.Count);
483
TableEntry outputInfo =
_states
[^1];
520
Debug.Assert(!TrackIncrementalSteps ||
_states
.Count == _steps.Count);
522
if (
_states
.Count == 0)
524
_states
.Free();
532
Debug.Assert(_requestedTableCapacity == null ||
_states
.Count <= _requestedTableCapacity);
538
if (
_states
.Count == _previous.Count &&
_states
.SequenceEqual(_previous._states, (e1, e2) => e1.Matches(e2, _equalityComparer)))
541
_states
.Free();
547
finalStates =
_states
.ToImmutableAndFree();