public ReturnStatementNode loadReturnStmt(string path) { ExprNode expr = loadExpression(path + ".expr"); ReturnStatementNode snode = new ReturnStatementNode(expr); return(snode); }
public void saveReturnStmt(string path, ReturnStatementNode stmt) { oilcan.setStringValue(path + ".type", "ret-stmt"); if (stmt.retval != null) { saveExpression(path + ".expr", stmt.retval); } }