/// <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(); }
internal Enumerator(CFG parent) { Parent = parent; functionEnumerator = parent.Scope.GetEnumerator(); }