/* 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 "vala.h"
#include <glib.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);
static GType vala_continue_statement_get_type_once (void);

/**
 * 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;
	self = (ValaContinueStatement*) vala_code_node_construct (object_type);
	vala_code_node_set_source_reference ((ValaCodeNode*) self, source);
	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;
	self = (ValaContinueStatement*) base;
	g_return_if_fail (visitor != NULL);
	vala_code_visitor_visit_continue_statement (visitor, self);
}

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

static void
vala_continue_statement_class_init (ValaContinueStatementClass * klass,
                                    gpointer klass_data)
{
	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,
                                                       gpointer iface_data)
{
	vala_continue_statement_vala_statement_parent_iface = g_type_interface_peek_parent (iface);
}

static void
vala_continue_statement_instance_init (ValaContinueStatement * self,
                                       gpointer klass)
{
}

/**
 * Represents a continue statement in the source code.
 */
static GType
vala_continue_statement_get_type_once (void)
{
	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);
	return vala_continue_statement_type_id;
}

GType
vala_continue_statement_get_type (void)
{
	static volatile gsize vala_continue_statement_type_id__once = 0;
	if (g_once_init_enter (&vala_continue_statement_type_id__once)) {
		GType vala_continue_statement_type_id;
		vala_continue_statement_type_id = vala_continue_statement_get_type_once ();
		g_once_init_leave (&vala_continue_statement_type_id__once, vala_continue_statement_type_id);
	}
	return vala_continue_statement_type_id__once;
}

