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

/* node.vala
 *
 * Copyright (C) 2008-2009	Didier Villevalois
 * Copyright (C) 2007-20012	Florian Brosch
 *
 * 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:
 * 	Didier 'Ptitjes Villevalois <ptitjes@free.fr>
 */

#include <glib.h>
#include <glib-object.h>
#include "valadoc.h"
#include <stdlib.h>
#include <string.h>






gchar* valadoc_api_node_type_to_string (ValadocApiNodeType self) {
	gchar* result = NULL;
	switch (self) {
		case VALADOC_API_NODE_TYPE_CLASS:
		{
			gchar* _tmp0_;
			_tmp0_ = g_strdup ("CLASS");
			result = _tmp0_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_CONSTANT:
		{
			gchar* _tmp1_;
			_tmp1_ = g_strdup ("CONSTANT");
			result = _tmp1_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_CREATION_METHOD:
		{
			gchar* _tmp2_;
			_tmp2_ = g_strdup ("CREATION_METHOD");
			result = _tmp2_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_DELEGATE:
		{
			gchar* _tmp3_;
			_tmp3_ = g_strdup ("DELEGATE");
			result = _tmp3_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_ENUM:
		{
			gchar* _tmp4_;
			_tmp4_ = g_strdup ("ENUM");
			result = _tmp4_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_ENUM_VALUE:
		{
			gchar* _tmp5_;
			_tmp5_ = g_strdup ("ENUM_VALUE");
			result = _tmp5_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_ERROR_CODE:
		{
			gchar* _tmp6_;
			_tmp6_ = g_strdup ("ERROR_CODE");
			result = _tmp6_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_ERROR_DOMAIN:
		{
			gchar* _tmp7_;
			_tmp7_ = g_strdup ("ERROR_DOMAIN");
			result = _tmp7_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_FIELD:
		{
			gchar* _tmp8_;
			_tmp8_ = g_strdup ("FIELD");
			result = _tmp8_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_FORMAL_PARAMETER:
		{
			gchar* _tmp9_;
			_tmp9_ = g_strdup ("FORMAL_PARAMETER");
			result = _tmp9_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_INTERFACE:
		{
			gchar* _tmp10_;
			_tmp10_ = g_strdup ("INTERFACE");
			result = _tmp10_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_METHOD:
		{
			gchar* _tmp11_;
			_tmp11_ = g_strdup ("METHOD");
			result = _tmp11_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_NAMESPACE:
		{
			gchar* _tmp12_;
			_tmp12_ = g_strdup ("NAMESPACE");
			result = _tmp12_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_PACKAGE:
		{
			gchar* _tmp13_;
			_tmp13_ = g_strdup ("PACKAGE");
			result = _tmp13_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_PROPERTY:
		{
			gchar* _tmp14_;
			_tmp14_ = g_strdup ("PROPERTY");
			result = _tmp14_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_PROPERTY_ACCESSOR:
		{
			gchar* _tmp15_;
			_tmp15_ = g_strdup ("PROPERTY_ACCESSOR");
			result = _tmp15_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_SIGNAL:
		{
			gchar* _tmp16_;
			_tmp16_ = g_strdup ("SIGNAL");
			result = _tmp16_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_STATIC_METHOD:
		{
			gchar* _tmp17_;
			_tmp17_ = g_strdup ("STATIC_METHOD");
			result = _tmp17_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_STRUCT:
		{
			gchar* _tmp18_;
			_tmp18_ = g_strdup ("STRUCT");
			result = _tmp18_;
			return result;
		}
		case VALADOC_API_NODE_TYPE_TYPE_PARAMETER:
		{
			gchar* _tmp19_;
			_tmp19_ = g_strdup ("TYPE_PARAMETER");
			result = _tmp19_;
			return result;
		}
		default:
		{
			g_assert_not_reached ();
		}
	}
}


/**
 * Specifies the context of a node.
 */
GType valadoc_api_node_type_get_type (void) {
	static volatile gsize valadoc_api_node_type_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_api_node_type_type_id__volatile)) {
		static const GEnumValue values[] = {{VALADOC_API_NODE_TYPE_CLASS, "VALADOC_API_NODE_TYPE_CLASS", "class"}, {VALADOC_API_NODE_TYPE_CONSTANT, "VALADOC_API_NODE_TYPE_CONSTANT", "constant"}, {VALADOC_API_NODE_TYPE_CREATION_METHOD, "VALADOC_API_NODE_TYPE_CREATION_METHOD", "creation-method"}, {VALADOC_API_NODE_TYPE_DELEGATE, "VALADOC_API_NODE_TYPE_DELEGATE", "delegate"}, {VALADOC_API_NODE_TYPE_ENUM, "VALADOC_API_NODE_TYPE_ENUM", "enum"}, {VALADOC_API_NODE_TYPE_ENUM_VALUE, "VALADOC_API_NODE_TYPE_ENUM_VALUE", "enum-value"}, {VALADOC_API_NODE_TYPE_ERROR_CODE, "VALADOC_API_NODE_TYPE_ERROR_CODE", "error-code"}, {VALADOC_API_NODE_TYPE_ERROR_DOMAIN, "VALADOC_API_NODE_TYPE_ERROR_DOMAIN", "error-domain"}, {VALADOC_API_NODE_TYPE_FIELD, "VALADOC_API_NODE_TYPE_FIELD", "field"}, {VALADOC_API_NODE_TYPE_FORMAL_PARAMETER, "VALADOC_API_NODE_TYPE_FORMAL_PARAMETER", "formal-parameter"}, {VALADOC_API_NODE_TYPE_INTERFACE, "VALADOC_API_NODE_TYPE_INTERFACE", "interface"}, {VALADOC_API_NODE_TYPE_METHOD, "VALADOC_API_NODE_TYPE_METHOD", "method"}, {VALADOC_API_NODE_TYPE_NAMESPACE, "VALADOC_API_NODE_TYPE_NAMESPACE", "namespace"}, {VALADOC_API_NODE_TYPE_PACKAGE, "VALADOC_API_NODE_TYPE_PACKAGE", "package"}, {VALADOC_API_NODE_TYPE_PROPERTY, "VALADOC_API_NODE_TYPE_PROPERTY", "property"}, {VALADOC_API_NODE_TYPE_PROPERTY_ACCESSOR, "VALADOC_API_NODE_TYPE_PROPERTY_ACCESSOR", "property-accessor"}, {VALADOC_API_NODE_TYPE_SIGNAL, "VALADOC_API_NODE_TYPE_SIGNAL", "signal"}, {VALADOC_API_NODE_TYPE_STATIC_METHOD, "VALADOC_API_NODE_TYPE_STATIC_METHOD", "static-method"}, {VALADOC_API_NODE_TYPE_STRUCT, "VALADOC_API_NODE_TYPE_STRUCT", "struct"}, {VALADOC_API_NODE_TYPE_TYPE_PARAMETER, "VALADOC_API_NODE_TYPE_TYPE_PARAMETER", "type-parameter"}, {0, NULL, NULL}};
		GType valadoc_api_node_type_type_id;
		valadoc_api_node_type_type_id = g_enum_register_static ("ValadocApiNodeType", values);
		g_once_init_leave (&valadoc_api_node_type_type_id__volatile, valadoc_api_node_type_type_id);
	}
	return valadoc_api_node_type_type_id__volatile;
}



