Exemple #1
0
 /// <summary>
 /// Constructs a new basic block enumerator.
 /// </summary>
 /// <param name="scope">The parent function scope.</param>
 internal Enumerator(Scope scope)
 {
     functionEnumerator = scope.GetEnumerator();
     // There must be at least a single block
     functionEnumerator.MoveNext();
     valueEnumerator = functionEnumerator.Current.GetEnumerator();
 }
Exemple #2
0
 internal Enumerator(CFG parent)
 {
     Parent             = parent;
     functionEnumerator = parent.Scope.GetEnumerator();
 }