static void vala_slice_expression_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen) { ValaSliceExpression * self; ValaExpression* _tmp0_; ValaExpression* _tmp1_; ValaCodeGenerator* _tmp2_; ValaExpression* _tmp3_; ValaExpression* _tmp4_; ValaCodeGenerator* _tmp5_; ValaExpression* _tmp6_; ValaExpression* _tmp7_; ValaCodeGenerator* _tmp8_; ValaCodeGenerator* _tmp9_; ValaCodeGenerator* _tmp10_; self = (ValaSliceExpression*) base; g_return_if_fail (codegen != NULL); _tmp0_ = vala_slice_expression_get_container (self); _tmp1_ = _tmp0_; _tmp2_ = codegen; vala_code_node_emit ((ValaCodeNode*) _tmp1_, _tmp2_); _tmp3_ = vala_slice_expression_get_start (self); _tmp4_ = _tmp3_; _tmp5_ = codegen; vala_code_node_emit ((ValaCodeNode*) _tmp4_, _tmp5_); _tmp6_ = vala_slice_expression_get_stop (self); _tmp7_ = _tmp6_; _tmp8_ = codegen; vala_code_node_emit ((ValaCodeNode*) _tmp7_, _tmp8_); _tmp9_ = codegen; vala_code_visitor_visit_slice_expression ((ValaCodeVisitor*) _tmp9_, self); _tmp10_ = codegen; vala_code_visitor_visit_expression ((ValaCodeVisitor*) _tmp10_, (ValaExpression*) self); }
static void vala_dova_control_flow_module_real_visit_if_statement (ValaCodeVisitor* base, ValaIfStatement* stmt) { ValaDovaControlFlowModule * self; ValaCCodeFunction* _tmp0_; ValaCCodeFunction* _tmp1_; ValaIfStatement* _tmp2_; ValaExpression* _tmp3_; ValaExpression* _tmp4_; ValaCCodeExpression* _tmp5_ = NULL; ValaCCodeExpression* _tmp6_; ValaIfStatement* _tmp7_; ValaBlock* _tmp8_; ValaBlock* _tmp9_; ValaIfStatement* _tmp10_; ValaBlock* _tmp11_; ValaBlock* _tmp12_; ValaCCodeFunction* _tmp18_; ValaCCodeFunction* _tmp19_; self = (ValaDovaControlFlowModule*) base; g_return_if_fail (stmt != NULL); _tmp0_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp1_ = _tmp0_; _tmp2_ = stmt; _tmp3_ = vala_if_statement_get_condition (_tmp2_); _tmp4_ = _tmp3_; _tmp5_ = vala_dova_base_module_get_cvalue ((ValaDovaBaseModule*) self, _tmp4_); _tmp6_ = _tmp5_; vala_ccode_function_open_if (_tmp1_, _tmp6_); _vala_ccode_node_unref0 (_tmp6_); _tmp7_ = stmt; _tmp8_ = vala_if_statement_get_true_statement (_tmp7_); _tmp9_ = _tmp8_; vala_code_node_emit ((ValaCodeNode*) _tmp9_, (ValaCodeGenerator*) self); _tmp10_ = stmt; _tmp11_ = vala_if_statement_get_false_statement (_tmp10_); _tmp12_ = _tmp11_; if (_tmp12_ != NULL) { ValaCCodeFunction* _tmp13_; ValaCCodeFunction* _tmp14_; ValaIfStatement* _tmp15_; ValaBlock* _tmp16_; ValaBlock* _tmp17_; _tmp13_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp14_ = _tmp13_; vala_ccode_function_add_else (_tmp14_); _tmp15_ = stmt; _tmp16_ = vala_if_statement_get_false_statement (_tmp15_); _tmp17_ = _tmp16_; vala_code_node_emit ((ValaCodeNode*) _tmp17_, (ValaCodeGenerator*) self); } _tmp18_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp19_ = _tmp18_; vala_ccode_function_close (_tmp19_); }
static void vala_dova_control_flow_module_real_visit_loop (ValaCodeVisitor* base, ValaLoop* stmt) { ValaDovaControlFlowModule * self; ValaCCodeFunction* _tmp0_; ValaCCodeFunction* _tmp1_; ValaCCodeConstant* _tmp2_; ValaCCodeConstant* _tmp3_; ValaLoop* _tmp4_; ValaBlock* _tmp5_; ValaBlock* _tmp6_; ValaCCodeFunction* _tmp7_; ValaCCodeFunction* _tmp8_; self = (ValaDovaControlFlowModule*) base; g_return_if_fail (stmt != NULL); _tmp0_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp1_ = _tmp0_; _tmp2_ = vala_ccode_constant_new ("true"); _tmp3_ = _tmp2_; vala_ccode_function_open_while (_tmp1_, (ValaCCodeExpression*) _tmp3_); _vala_ccode_node_unref0 (_tmp3_); _tmp4_ = stmt; _tmp5_ = vala_loop_get_body (_tmp4_); _tmp6_ = _tmp5_; vala_code_node_emit ((ValaCodeNode*) _tmp6_, (ValaCodeGenerator*) self); _tmp7_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp8_ = _tmp7_; vala_ccode_function_close (_tmp8_); }
static void vala_tuple_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen) { ValaTuple * self; ValaCodeGenerator* _tmp13_; ValaCodeGenerator* _tmp14_; self = (ValaTuple*) base; g_return_if_fail (codegen != NULL); { ValaList* _tmp0_; ValaList* _tmp1_; ValaList* _expr_list; ValaList* _tmp2_; gint _tmp3_; gint _tmp4_; gint _expr_size; gint _expr_index; _tmp0_ = self->priv->expression_list; _tmp1_ = _vala_iterable_ref0 (_tmp0_); _expr_list = _tmp1_; _tmp2_ = _expr_list; _tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_); _tmp4_ = _tmp3_; _expr_size = _tmp4_; _expr_index = -1; while (TRUE) { gint _tmp5_; gint _tmp6_; gint _tmp7_; ValaList* _tmp8_; gint _tmp9_; gpointer _tmp10_ = NULL; ValaExpression* expr; ValaExpression* _tmp11_; ValaCodeGenerator* _tmp12_; _tmp5_ = _expr_index; _expr_index = _tmp5_ + 1; _tmp6_ = _expr_index; _tmp7_ = _expr_size; if (!(_tmp6_ < _tmp7_)) { break; } _tmp8_ = _expr_list; _tmp9_ = _expr_index; _tmp10_ = vala_list_get (_tmp8_, _tmp9_); expr = (ValaExpression*) _tmp10_; _tmp11_ = expr; _tmp12_ = codegen; vala_code_node_emit ((ValaCodeNode*) _tmp11_, _tmp12_); _vala_code_node_unref0 (expr); } _vala_iterable_unref0 (_expr_list); } _tmp13_ = codegen; vala_code_visitor_visit_tuple ((ValaCodeVisitor*) _tmp13_, self); _tmp14_ = codegen; vala_code_visitor_visit_expression ((ValaCodeVisitor*) _tmp14_, (ValaExpression*) self); }
static void vala_member_initializer_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen) { ValaMemberInitializer * self; ValaExpression* _tmp0_; ValaExpression* _tmp1_; ValaCodeGenerator* _tmp2_; self = (ValaMemberInitializer*) base; g_return_if_fail (codegen != NULL); _tmp0_ = vala_member_initializer_get_initializer (self); _tmp1_ = _tmp0_; _tmp2_ = codegen; vala_code_node_emit ((ValaCodeNode*) _tmp1_, _tmp2_); }
static void vala_unlock_statement_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen) { ValaUnlockStatement * self; ValaExpression* _tmp0_; ValaCodeGenerator* _tmp1_; ValaCodeGenerator* _tmp2_; self = (ValaUnlockStatement*) base; g_return_if_fail (codegen != NULL); _tmp0_ = self->priv->_resource; _tmp1_ = codegen; vala_code_node_emit ((ValaCodeNode*) _tmp0_, _tmp1_); _tmp2_ = codegen; vala_code_visitor_visit_unlock_statement ((ValaCodeVisitor*) _tmp2_, self); }
static void vala_addressof_expression_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen) { ValaAddressofExpression * self; ValaExpression* _tmp0_; ValaExpression* _tmp1_; ValaCodeGenerator* _tmp2_; ValaCodeGenerator* _tmp3_; ValaCodeGenerator* _tmp4_; self = (ValaAddressofExpression*) base; g_return_if_fail (codegen != NULL); _tmp0_ = vala_addressof_expression_get_inner (self); _tmp1_ = _tmp0_; _tmp2_ = codegen; vala_code_node_emit ((ValaCodeNode*) _tmp1_, _tmp2_); _tmp3_ = codegen; vala_code_visitor_visit_addressof_expression ((ValaCodeVisitor*) _tmp3_, self); _tmp4_ = codegen; vala_code_visitor_visit_expression ((ValaCodeVisitor*) _tmp4_, (ValaExpression*) self); }
static void vala_dova_control_flow_module_real_visit_switch_label (ValaCodeVisitor* base, ValaSwitchLabel* label) { ValaDovaControlFlowModule * self; ValaSwitchLabel* _tmp0_; ValaExpression* _tmp1_; ValaExpression* _tmp2_; self = (ValaDovaControlFlowModule*) base; g_return_if_fail (label != NULL); _tmp0_ = label; _tmp1_ = vala_switch_label_get_expression (_tmp0_); _tmp2_ = _tmp1_; if (_tmp2_ != NULL) { ValaSwitchLabel* _tmp3_; ValaExpression* _tmp4_; ValaExpression* _tmp5_; ValaSwitchLabel* _tmp6_; ValaExpression* _tmp7_; ValaExpression* _tmp8_; ValaCCodeFunction* _tmp9_; ValaCCodeFunction* _tmp10_; ValaSwitchLabel* _tmp11_; ValaExpression* _tmp12_; ValaExpression* _tmp13_; ValaCCodeExpression* _tmp14_ = NULL; ValaCCodeExpression* _tmp15_; _tmp3_ = label; _tmp4_ = vala_switch_label_get_expression (_tmp3_); _tmp5_ = _tmp4_; vala_code_node_emit ((ValaCodeNode*) _tmp5_, (ValaCodeGenerator*) self); _tmp6_ = label; _tmp7_ = vala_switch_label_get_expression (_tmp6_); _tmp8_ = _tmp7_; vala_code_visitor_visit_end_full_expression ((ValaCodeVisitor*) self, _tmp8_); _tmp9_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp10_ = _tmp9_; _tmp11_ = label; _tmp12_ = vala_switch_label_get_expression (_tmp11_); _tmp13_ = _tmp12_; _tmp14_ = vala_dova_base_module_get_cvalue ((ValaDovaBaseModule*) self, _tmp13_); _tmp15_ = _tmp14_; vala_ccode_function_add_case (_tmp10_, _tmp15_); _vala_ccode_node_unref0 (_tmp15_); } }
static void vala_dova_control_flow_module_real_visit_switch_statement (ValaCodeVisitor* base, ValaSwitchStatement* stmt) { ValaDovaControlFlowModule * self; ValaCCodeFunction* _tmp0_; ValaCCodeFunction* _tmp1_; ValaSwitchStatement* _tmp2_; ValaExpression* _tmp3_; ValaExpression* _tmp4_; ValaCCodeExpression* _tmp5_ = NULL; ValaCCodeExpression* _tmp6_; ValaCCodeFunction* _tmp23_; ValaCCodeFunction* _tmp24_; self = (ValaDovaControlFlowModule*) base; g_return_if_fail (stmt != NULL); _tmp0_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp1_ = _tmp0_; _tmp2_ = stmt; _tmp3_ = vala_switch_statement_get_expression (_tmp2_); _tmp4_ = _tmp3_; _tmp5_ = vala_dova_base_module_get_cvalue ((ValaDovaBaseModule*) self, _tmp4_); _tmp6_ = _tmp5_; vala_ccode_function_open_switch (_tmp1_, _tmp6_); _vala_ccode_node_unref0 (_tmp6_); { ValaSwitchStatement* _tmp7_; ValaList* _tmp8_ = NULL; ValaList* _section_list; ValaList* _tmp9_; gint _tmp10_; gint _tmp11_; gint _section_size; gint _section_index; _tmp7_ = stmt; _tmp8_ = vala_switch_statement_get_sections (_tmp7_); _section_list = _tmp8_; _tmp9_ = _section_list; _tmp10_ = vala_collection_get_size ((ValaCollection*) _tmp9_); _tmp11_ = _tmp10_; _section_size = _tmp11_; _section_index = -1; while (TRUE) { gint _tmp12_; gint _tmp13_; gint _tmp14_; ValaList* _tmp15_; gint _tmp16_; gpointer _tmp17_ = NULL; ValaSwitchSection* section; ValaSwitchSection* _tmp18_; gboolean _tmp19_ = FALSE; ValaSwitchSection* _tmp22_; _tmp12_ = _section_index; _section_index = _tmp12_ + 1; _tmp13_ = _section_index; _tmp14_ = _section_size; if (!(_tmp13_ < _tmp14_)) { break; } _tmp15_ = _section_list; _tmp16_ = _section_index; _tmp17_ = vala_list_get (_tmp15_, _tmp16_); section = (ValaSwitchSection*) _tmp17_; _tmp18_ = section; _tmp19_ = vala_switch_section_has_default_label (_tmp18_); if (_tmp19_) { ValaCCodeFunction* _tmp20_; ValaCCodeFunction* _tmp21_; _tmp20_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp21_ = _tmp20_; vala_ccode_function_add_default (_tmp21_); } _tmp22_ = section; vala_code_node_emit ((ValaCodeNode*) _tmp22_, (ValaCodeGenerator*) self); _vala_code_node_unref0 (section); } _vala_iterable_unref0 (_section_list); } _tmp23_ = vala_dova_base_module_get_ccode ((ValaDovaBaseModule*) self); _tmp24_ = _tmp23_; vala_ccode_function_close (_tmp24_); }