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