Esempio n. 1
0
        public ForLoopNode(ForLoopNode rhs) : base(rhs)
        {
            body = new List <ImperativeNode>();
            foreach (ImperativeNode iNode in rhs.body)
            {
                ImperativeNode newNode = ProtoCore.Utils.NodeUtils.Clone(iNode);
                body.Add(newNode);
            }
            loopVar    = ProtoCore.Utils.NodeUtils.Clone(rhs.loopVar);
            expression = ProtoCore.Utils.NodeUtils.Clone(rhs.expression);

            KwForLine = rhs.KwForLine;
            KwForCol  = rhs.KwForCol;
            KwInLine  = rhs.KwInLine;
            KwInCol   = rhs.KwInCol;
        }
Esempio n. 2
0
        public ForLoopNode(ForLoopNode rhs) : base(rhs)
        {
            Body = new List <ImperativeNode>();
            foreach (ImperativeNode iNode in rhs.Body)
            {
                ImperativeNode newNode = NodeUtils.Clone(iNode);
                Body.Add(newNode);
            }
            LoopVariable = NodeUtils.Clone(rhs.LoopVariable);
            Expression   = NodeUtils.Clone(rhs.Expression);

            KwForLine = rhs.KwForLine;
            KwForCol  = rhs.KwForCol;
            KwInLine  = rhs.KwInLine;
            KwInCol   = rhs.KwInCol;
        }
Esempio n. 3
0
        public ForLoopNode(ForLoopNode rhs)
            : base(rhs)
        {
            body = new List<ImperativeNode>();
            foreach (ImperativeNode iNode in rhs.body)
            {
                ImperativeNode newNode = ProtoCore.Utils.NodeUtils.Clone(iNode);
                body.Add(newNode);
            }
            loopVar = ProtoCore.Utils.NodeUtils.Clone(rhs.loopVar);
            expression = ProtoCore.Utils.NodeUtils.Clone(rhs.expression);

            KwForLine = rhs.KwForLine;
            KwForCol = rhs.KwForCol;
            KwInLine = rhs.KwInLine;
            KwInCol = rhs.KwInCol;
        }