コード例 #1
0
        public void SetType(PSwitchCaseType node)
        {
            if (_type_ != null)
            {
                _type_.Parent(null);
            }

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

                node.Parent(this);
            }

            _type_ = node;
        }
コード例 #2
0
 internal override void RemoveChild(Node child)
 {
     if (_type_ == child)
     {
         _type_ = null;
         return;
     }
     if (_block_ == child)
     {
         _block_ = null;
         return;
     }
 }
コード例 #3
0
 public ASwitchCaseStm(
         PSwitchCaseType _type_,
         PBlock _block_
 )
 {
     SetType(_type_);
     SetBlock(_block_);
 }