/* valacontinuestatement.c generated by valac, the Vala compiler
 * generated from valacontinuestatement.vala, do not modify */

/* valacontinuestatement.vala
 *
 * Copyright (C) 2006-2010  Jürg Billeter
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Author:
 * 	Jürg Billeter <j@bitron.ch>
 */

#include <glib.h>
#include <glib-object.h>
#include "vala.h"



static gpointer vala_continue_statement_parent_class = NULL;
static ValaStatementIface * vala_continue_statement_vala_statement_parent_iface = NULL;

static void vala_continue_statement_real_accept (ValaCodeNode* base, ValaCodeVisitor* visitor);
static void vala_continue_statement_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen);


/**
 * Creates a new continue statement.
 *
 * @param source reference to source code
 * @return       newly created continue statement
 */
ValaContinueStatement* vala_continue_statement_construct (GType object_type, ValaSourceReference* source) {
	ValaContinueStatement* self = NULL;
	ValaSourceReference* _tmp0_;
	g_return_val_if_fail (source != NULL, NULL);
	self = (ValaContinueStatement*) vala_code_node_construct (object_type);
	_tmp0_ = source;
	vala_code_node_set_source_reference ((ValaCodeNode*) self, _tmp0_);
	return self;
}


ValaContinueStatement* vala_continue_statement_new (ValaSourceReference* source) {
	return vala_continue_statement_construct (VALA_TYPE_CONTINUE_STATEMENT, source);
}


static void vala_continue_statement_real_accept (ValaCodeNode* base, ValaCodeVisitor* visitor) {
	ValaContinueStatement * self;
	ValaCodeVisitor* _tmp0_;
	self = (ValaContinueStatement*) base;
	g_return_if_fail (visitor != NULL);
	_tmp0_ = visitor;
	vala_code_visitor_visit_continue_statement (_tmp0_, self);
}


static void vala_continue_statement_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen) {
	ValaContinueStatement * self;
	ValaCodeGenerator* _tmp0_;
	self = (ValaContinueStatement*) base;
	g_return_if_fail (codegen != NULL);
	_tmp0_ = codegen;
	vala_code_visitor_visit_continue_statement ((ValaCodeVisitor*) _tmp0_, self);
}


static void vala_continue_statement_class_init (ValaContinueStatementClass * klass) {
	vala_continue_statement_parent_class = g_type_class_peek_parent (klass);
	((ValaCodeNodeClass *) klass)->accept = (void (*) (ValaCodeNode *, ValaCodeVisitor*)) vala_continue_statement_real_accept;
	((ValaCodeNodeClass *) klass)->emit = (void (*) (ValaCodeNode *, ValaCodeGenerator*)) vala_continue_statement_real_emit;
}


static void vala_continue_statement_vala_statement_interface_init (ValaStatementIface * iface) {
	vala_continue_statement_vala_statement_parent_iface = g_type_interface_peek_parent (iface);
}


static void vala_continue_statement_instance_init (ValaContinueStatement * self) {
}


/**
 * Represents a continue statement in the source code.
 */
GType vala_continue_statement_get_type (void) {
	static volatile gsize vala_continue_statement_type_id__volatile = 0;
	if (g_once_init_enter (&vala_continue_statement_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValaContinueStatementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_continue_statement_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaContinueStatement), 0, (GInstanceInitFunc) vala_continue_statement_instance_init, NULL };
		static const GInterfaceInfo vala_statement_info = { (GInterfaceInitFunc) vala_continue_statement_vala_statement_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType vala_continue_statement_type_id;
		vala_continue_statement_type_id = g_type_register_static (VALA_TYPE_CODE_NODE, "ValaContinueStatement", &g_define_type_info, 0);
		g_type_add_interface_static (vala_continue_statement_type_id, VALA_TYPE_STATEMENT, &vala_statement_info);
		g_once_init_leave (&vala_continue_statement_type_id__volatile, vala_continue_statement_type_id);
	}
	return vala_continue_statement_type_id__volatile;
}



