public ElseIfBlock(ElseIfBlock rhs) : base(rhs) { Expr = ProtoCore.Utils.NodeUtils.Clone(rhs.Expr); ElseIfBodyPosition = ProtoCore.Utils.NodeUtils.Clone(rhs.ElseIfBodyPosition); Body = new List <ImperativeNode>(); foreach (ImperativeNode iNode in rhs.Body) { ImperativeNode newNode = ProtoCore.Utils.NodeUtils.Clone(iNode); Body.Add(newNode); } }
public ElseIfBlock(ElseIfBlock rhs) : base(rhs) { Expr = ProtoCore.Utils.NodeUtils.Clone(rhs.Expr); ElseIfBodyPosition = ProtoCore.Utils.NodeUtils.Clone(rhs.ElseIfBodyPosition); Body = new List<ImperativeNode>(); foreach (ImperativeNode iNode in rhs.Body) { ImperativeNode newNode = ProtoCore.Utils.NodeUtils.Clone(iNode); Body.Add(newNode); } }