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