Пример #1
0
        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);
            }
        }
Пример #2
0
        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);
            }
        }