public LithpOpChain(LithpOpChain parent, LithpOpChain body, bool scoped) : base(body.ToArray()) { Closure = new LithpClosure(parent.Closure); Parent = parent; Scoped = scoped; }
/// <summary> /// Create a new closure with the specified parent /// </summary> /// <param name="parent"></param> public LithpClosure(LithpClosure parent) { Parent = parent; TopMost = parent.TopMost ?? this; }
/// <summary> /// Create a new closure with no parent /// </summary> public LithpClosure() { Parent = null; TopMost = this; }
public LithpOpChain(LithpOpChain parent) { Closure = new LithpClosure(parent.Closure); Parent = parent; Scoped = false; }
public LithpOpChain() { Closure = new LithpClosure(); Parent = null; Scoped = false; }