Beispiel #1
0
 internal override void RemoveChild(Node child)
 {
     if (_declarestmt_ == child)
     {
         _declarestmt_ = null;
         return;
     }
 }
Beispiel #2
0
        ArrayList New4()
        {
            ArrayList    nodeList          = new ArrayList();
            ArrayList    nodeArrayList1    = (ArrayList)Pop();
            PDeclarestmt pdeclarestmtNode2 = (PDeclarestmt)nodeArrayList1[0];
            ADeclStmt    pstmtNode1        = new ADeclStmt(
                pdeclarestmtNode2
                );

            nodeList.Add(pstmtNode1);
            return(nodeList);
        }
Beispiel #3
0
        public void SetDeclarestmt(PDeclarestmt node)
        {
            if (_declarestmt_ != null)
            {
                _declarestmt_.Parent(null);
            }

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

                node.Parent(this);
            }

            _declarestmt_ = node;
        }
Beispiel #4
0
 public ADeclStmt(
     PDeclarestmt _declarestmt_
     )
 {
     SetDeclarestmt(_declarestmt_);
 }