1 write to _states
Microsoft.CodeAnalysis (1)
SourceGeneration\Nodes\NodeStateTable.cs (1)
72
_states
= states;
18 references to _states
Microsoft.CodeAnalysis (18)
SourceGeneration\Nodes\NodeStateTable.cs (18)
78
public int Count =>
_states
.Length;
85
public bool IsEmpty =>
_states
.IsEmpty;
92
=>
_states
.Sum(static e => e.Count);
115
while (_nextStatesIndex < _stateTable.
_states
.Length)
137
if (_nextStatesIndex < _stateTable.
_states
.Length)
140
_inputEntry = _stateTable.
_states
[_nextStatesIndex];
159
var nonRemovedCount =
_states
.Count(static e => !e.IsRemovedDueToInputRemoval);
162
foreach (var entry in
_states
)
180
Debug.Assert((
_states
.Length == 1 ||
_states
.Length == 2 &&
_states
[0].IsRemovedDueToInputRemoval) &&
_states
[^1].Count == 1);
181
return (
_states
[^1].GetItem(0), HasTrackedSteps ? Steps[^1] : null);
204
foreach (var state in
_states
)
471
var canUsePrevious = _previous.
_states
.Length > previousTableEntryIndex;
472
previousEntry = canUsePrevious ? _previous.
_states
[previousTableEntryIndex] : default;
539
if (_states.Count == _previous.Count && _states.SequenceEqual(_previous.
_states
, (e1, e2) => e1.Matches(e2, _equalityComparer)))
541
finalStates = _previous.
_states
;