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

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