예제 #1
0
        public ReturnStatementNode loadReturnStmt(string path)
        {
            ExprNode            expr  = loadExpression(path + ".expr");
            ReturnStatementNode snode = new ReturnStatementNode(expr);

            return(snode);
        }
예제 #2
0
 public void saveReturnStmt(string path, ReturnStatementNode stmt)
 {
     oilcan.setStringValue(path + ".type", "ret-stmt");
     if (stmt.retval != null)
     {
         saveExpression(path + ".expr", stmt.retval);
     }
 }