internal override void RemoveChild(Node child) { if (_stmt_ == child) { _stmt_ = null; return; } }
public AMultipleStmts( PStmts _stmts_, PStmt _stmt_ ) { SetStmts(_stmts_); SetStmt(_stmt_); }
ArrayList New2() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList1 = (ArrayList)Pop(); PStmt pstmtNode2 = (PStmt)nodeArrayList1[0]; ASingleStmts pstmtsNode1 = new ASingleStmts( pstmtNode2 ); nodeList.Add(pstmtsNode1); return(nodeList); }
ArrayList New1() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList2 = (ArrayList)Pop(); ArrayList nodeArrayList1 = (ArrayList)Pop(); PStmts pstmtsNode2 = (PStmts)nodeArrayList1[0]; PStmt pstmtNode3 = (PStmt)nodeArrayList2[0]; AMultipleStmts pstmtsNode1 = new AMultipleStmts( pstmtsNode2, pstmtNode3 ); nodeList.Add(pstmtsNode1); return(nodeList); }
public void SetStmt(PStmt node) { if (_stmt_ != null) { _stmt_.Parent(null); } if (node != null) { if (node.Parent() != null) { node.Parent().RemoveChild(node); } node.Parent(this); } _stmt_ = node; }
public ASingleStmts( PStmt _stmt_ ) { SetStmt(_stmt_); }