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