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

/* valaemptystatement.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_empty_statement_parent_class = NULL;
static ValaStatementIface * vala_empty_statement_vala_statement_parent_iface = NULL;

static void vala_empty_statement_real_accept (ValaCodeNode* base, ValaCodeVisitor* visitor);
static void vala_empty_statement_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen);


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


ValaEmptyStatement* vala_empty_statement_new (ValaSourceReference* source) {
	return vala_empty_statement_construct (VALA_TYPE_EMPTY_STATEMENT, source);
}


static void vala_empty_statement_real_accept (ValaCodeNode* base, ValaCodeVisitor* visitor) {
	ValaEmptyStatement * self;
	ValaCodeVisitor* _tmp0_;
	self = (ValaEmptyStatement*) base;
	g_return_if_fail (visitor != NULL);
	_tmp0_ = visitor;
	vala_code_visitor_visit_empty_statement (_tmp0_, self);
}


static void vala_empty_statement_real_emit (ValaCodeNode* base, ValaCodeGenerator* codegen) {
	ValaEmptyStatement * self;
	ValaCodeGenerator* _tmp0_;
	self = (ValaEmptyStatement*) base;
	g_return_if_fail (codegen != NULL);
	_tmp0_ = codegen;
	vala_code_visitor_visit_empty_statement ((ValaCodeVisitor*) _tmp0_, self);
}


static void vala_empty_statement_class_init (ValaEmptyStatementClass * klass) {
	vala_empty_statement_parent_class = g_type_class_peek_parent (klass);
	((ValaCodeNodeClass *) klass)->accept = (void (*) (ValaCodeNode *, ValaCodeVisitor*)) vala_empty_statement_real_accept;
	((ValaCodeNodeClass *) klass)->emit = (void (*) (ValaCodeNode *, ValaCodeGenerator*)) vala_empty_statement_real_emit;
}


static void vala_empty_statement_vala_statement_interface_init (ValaStatementIface * iface) {
	vala_empty_statement_vala_statement_parent_iface = g_type_interface_peek_parent (iface);
}


static void vala_empty_statement_instance_init (ValaEmptyStatement * self) {
}


/**
 * An empty statement.
 */
GType vala_empty_statement_get_type (void) {
	static volatile gsize vala_empty_statement_type_id__volatile = 0;
	if (g_once_init_enter (&vala_empty_statement_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValaEmptyStatementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_empty_statement_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaEmptyStatement), 0, (GInstanceInitFunc) vala_empty_statement_instance_init, NULL };
		static const GInterfaceInfo vala_statement_info = { (GInterfaceInitFunc) vala_empty_statement_vala_statement_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType vala_empty_statement_type_id;
		vala_empty_statement_type_id = g_type_register_static (VALA_TYPE_CODE_NODE, "ValaEmptyStatement", &g_define_type_info, 0);
		g_type_add_interface_static (vala_empty_statement_type_id, VALA_TYPE_STATEMENT, &vala_statement_info);
		g_once_init_leave (&vala_empty_statement_type_id__volatile, vala_empty_statement_type_id);
	}
	return vala_empty_statement_type_id__volatile;
}



