1 write to _states
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\NodeStateTable.cs (1)
71
_states
= states;
18 references to _states
Microsoft.CodeAnalysis (18)
SourceGeneration\Nodes\NodeStateTable.cs (18)
77
public int Count =>
_states
.Length;
84
public bool IsEmpty =>
_states
.IsEmpty;
91
=>
_states
.Sum(static e => e.Count);
114
while (_nextStatesIndex < _stateTable.
_states
.Length)
136
if (_nextStatesIndex < _stateTable.
_states
.Length)
139
_inputEntry = _stateTable.
_states
[_nextStatesIndex];
158
var nonRemovedCount =
_states
.Count(static e => !e.IsRemovedDueToInputRemoval);
161
foreach (var entry in
_states
)
179
Debug.Assert((
_states
.Length == 1 ||
_states
.Length == 2 &&
_states
[0].IsRemovedDueToInputRemoval) &&
_states
[^1].Count == 1);
180
return (
_states
[^1].GetItem(0), HasTrackedSteps ? Steps[^1] : null);
203
foreach (var state in
_states
)
470
var canUsePrevious = _previous.
_states
.Length > previousTableEntryIndex;
471
previousEntry = canUsePrevious ? _previous.
_states
[previousTableEntryIndex] : default;
538
if (_states.Count == _previous.Count && _states.SequenceEqual(_previous.
_states
, (e1, e2) => e1.Matches(e2, _equalityComparer)))
540
finalStates = _previous.
_states
;