public bool MoveNext() { while (!_enumerator.MoveNext()) { _currentIdentifierScope = (ParentedIdentifierScope)_currentIdentifierScope?.Parent; if (null == _currentIdentifierScope) { return(false); } _enumerator = _currentIdentifierScope._locals.GetEnumerator(); } return(true); }
public void Reset() { _currentIdentifierScope = (ParentedIdentifierScope)_startIdentifierScope; _enumerator = _currentIdentifierScope._locals.GetEnumerator(); }