예제 #1
0
        public void SetIncDecOp(PIncDecOp node)
        {
            if (_inc_dec_op_ != null)
            {
                _inc_dec_op_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _inc_dec_op_ = node;
        }
예제 #2
0
 internal override void RemoveChild(Node child)
 {
     if (_lvalue_ == child)
     {
         _lvalue_ = null;
         return;
     }
     if (_inc_dec_op_ == child)
     {
         _inc_dec_op_ = null;
         return;
     }
 }
예제 #3
0
 public AIncDecExp(
         PLvalue _lvalue_,
         PIncDecOp _inc_dec_op_
 )
 {
     SetLvalue(_lvalue_);
     SetIncDecOp(_inc_dec_op_);
 }