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

/* method.vala
 *
 * Copyright (C) 2008-2011  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:
 * 	Florian Brosch <flo.brosch@gmail.com>
 */

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

enum  {
	VALADOC_API_METHOD_0_PROPERTY,
	VALADOC_API_METHOD_IMPLICIT_ARRAY_LENGTH_CPARAMETER_NAME_PROPERTY,
	VALADOC_API_METHOD_BASE_METHOD_PROPERTY,
	VALADOC_API_METHOD_RETURN_TYPE_PROPERTY,
	VALADOC_API_METHOD_IS_YIELDS_PROPERTY,
	VALADOC_API_METHOD_IS_ABSTRACT_PROPERTY,
	VALADOC_API_METHOD_IS_VIRTUAL_PROPERTY,
	VALADOC_API_METHOD_IS_OVERRIDE_PROPERTY,
	VALADOC_API_METHOD_IS_STATIC_PROPERTY,
	VALADOC_API_METHOD_IS_CONSTRUCTOR_PROPERTY,
	VALADOC_API_METHOD_IS_INLINE_PROPERTY,
	VALADOC_API_METHOD_IS_DBUS_VISIBLE_PROPERTY,
	VALADOC_API_METHOD_NODE_TYPE_PROPERTY,
	VALADOC_API_METHOD_NUM_PROPERTIES
};
static GParamSpec* valadoc_api_method_properties[VALADOC_API_METHOD_NUM_PROPERTIES];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _valadoc_api_signature_builder_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_api_signature_builder_unref (var), NULL)))
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))

struct _ValadocApiMethodPrivate {
	gchar* finish_function_cname;
	gchar* dbus_result_name;
	gchar* dbus_name;
	gchar* cname;
	ValadocMethodBindingType binding_type;
	gchar* _implicit_array_length_cparameter_name;
	ValadocApiMethod* _base_method;
	ValadocApiTypeReference* _return_type;
	gboolean _is_yields;
	gboolean _is_constructor;
	gboolean _is_dbus_visible;
};


static gpointer valadoc_api_method_parent_class = NULL;
static ValadocApiCallableIface * valadoc_api_method_valadoc_api_callable_parent_iface = NULL;

#define VALADOC_API_METHOD_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALADOC_API_TYPE_METHOD, ValadocApiMethodPrivate))
static void valadoc_api_method_set_is_dbus_visible (ValadocApiMethod* self, gboolean value);
static void valadoc_api_method_set_is_constructor (ValadocApiMethod* self, gboolean value);
static void valadoc_api_method_set_is_yields (ValadocApiMethod* self, gboolean value);
static ValadocContentInline* valadoc_api_method_real_build_signature (ValadocApiItem* base);
static void valadoc_api_method_real_accept (ValadocApiNode* base, ValadocApiVisitor* visitor);
static void valadoc_api_method_finalize (GObject * obj);
G_GNUC_INTERNAL const gchar* valadoc_api_callable_get_implicit_array_length_cparameter_name (ValadocApiCallable* self);
static void _vala_valadoc_api_method_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
G_GNUC_INTERNAL void valadoc_api_callable_set_implicit_array_length_cparameter_name (ValadocApiCallable* self, const gchar* value);
static void _vala_valadoc_api_method_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


ValadocApiMethod* valadoc_api_method_construct (GType object_type, ValadocApiNode* parent, ValadocApiSourceFile* file, const gchar* name, ValadocApiSymbolAccessibility accessibility, ValadocApiSourceComment* comment, const gchar* cname, const gchar* dbus_name, const gchar* dbus_result_name, const gchar* finish_function_cname, ValadocMethodBindingType binding_type, gboolean is_yields, gboolean is_dbus_visible, gboolean is_constructor, void* data) {
	ValadocApiMethod * self = NULL;
	ValadocApiNode* _tmp0_;
	ValadocApiSourceFile* _tmp1_;
	const gchar* _tmp2_;
	ValadocApiSymbolAccessibility _tmp3_;
	ValadocApiSourceComment* _tmp4_;
	void* _tmp5_;
	const gchar* _tmp6_;
	gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	const gchar* _tmp10_;
	gchar* _tmp11_;
	const gchar* _tmp12_;
	gchar* _tmp13_;
	ValadocMethodBindingType _tmp14_;
	gboolean _tmp15_;
	gboolean _tmp16_;
	gboolean _tmp17_;
	g_return_val_if_fail (parent != NULL, NULL);
	g_return_val_if_fail (file != NULL, NULL);
	g_return_val_if_fail (name != NULL, NULL);
	_tmp0_ = parent;
	_tmp1_ = file;
	_tmp2_ = name;
	_tmp3_ = accessibility;
	_tmp4_ = comment;
	_tmp5_ = data;
	self = (ValadocApiMethod*) valadoc_api_member_construct (object_type, _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_, _tmp5_);
	_tmp6_ = finish_function_cname;
	_tmp7_ = g_strdup (_tmp6_);
	_g_free0 (self->priv->finish_function_cname);
	self->priv->finish_function_cname = _tmp7_;
	_tmp8_ = dbus_result_name;
	_tmp9_ = g_strdup (_tmp8_);
	_g_free0 (self->priv->dbus_result_name);
	self->priv->dbus_result_name = _tmp9_;
	_tmp10_ = dbus_name;
	_tmp11_ = g_strdup (_tmp10_);
	_g_free0 (self->priv->dbus_name);
	self->priv->dbus_name = _tmp11_;
	_tmp12_ = cname;
	_tmp13_ = g_strdup (_tmp12_);
	_g_free0 (self->priv->cname);
	self->priv->cname = _tmp13_;
	_tmp14_ = binding_type;
	self->priv->binding_type = _tmp14_;
	_tmp15_ = is_dbus_visible;
	valadoc_api_method_set_is_dbus_visible (self, _tmp15_);
	_tmp16_ = is_constructor;
	valadoc_api_method_set_is_constructor (self, _tmp16_);
	_tmp17_ = is_yields;
	valadoc_api_method_set_is_yields (self, _tmp17_);
	return self;
}


ValadocApiMethod* valadoc_api_method_new (ValadocApiNode* parent, ValadocApiSourceFile* file, const gchar* name, ValadocApiSymbolAccessibility accessibility, ValadocApiSourceComment* comment, const gchar* cname, const gchar* dbus_name, const gchar* dbus_result_name, const gchar* finish_function_cname, ValadocMethodBindingType binding_type, gboolean is_yields, gboolean is_dbus_visible, gboolean is_constructor, void* data) {
	return valadoc_api_method_construct (VALADOC_API_TYPE_METHOD, parent, file, name, accessibility, comment, cname, dbus_name, dbus_result_name, finish_function_cname, binding_type, is_yields, is_dbus_visible, is_constructor, data);
}


/**
 * Returns the name of this method as it is used in C.
 */
gchar* valadoc_api_method_get_cname (ValadocApiMethod* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->cname;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the name of the finish function as it is used in C.
 */
gchar* valadoc_api_method_get_finish_function_cname (ValadocApiMethod* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->finish_function_cname;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * Returns the dbus-name.
 */
gchar* valadoc_api_method_get_dbus_name (ValadocApiMethod* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->dbus_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


gchar* valadoc_api_method_get_dbus_result_name (ValadocApiMethod* self) {
	gchar* result = NULL;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->dbus_result_name;
	_tmp1_ = g_strdup (_tmp0_);
	result = _tmp1_;
	return result;
}


/**
 * {@inheritDoc}
 */
static gpointer _vala_iterable_ref0 (gpointer self) {
	return self ? vala_iterable_ref (self) : NULL;
}


static ValadocContentInline* valadoc_api_method_real_build_signature (ValadocApiItem* base) {
	ValadocApiMethod * self;
	ValadocContentInline* result = NULL;
	ValadocApiSignatureBuilder* signature = NULL;
	ValadocApiSignatureBuilder* _tmp0_;
	ValadocApiSignatureBuilder* _tmp1_;
	ValadocApiSymbolAccessibility _tmp2_;
	ValadocApiSymbolAccessibility _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	ValadocApiSignatureBuilder* _tmp6_;
	ValadocApiSignatureBuilder* _tmp7_;
	gboolean _tmp8_;
	ValadocApiSignatureBuilder* _tmp45_;
	ValadocApiSignatureBuilder* _tmp46_;
	ValadocApiSignatureBuilder* _tmp47_;
	ValaList* type_parameters = NULL;
	ValaList* _tmp48_;
	ValaList* _tmp49_;
	gint _tmp50_;
	gint _tmp51_;
	ValadocApiSignatureBuilder* _tmp79_;
	ValadocApiSignatureBuilder* _tmp80_;
	ValadocApiSignatureBuilder* _tmp81_;
	gboolean first = FALSE;
	ValadocApiSignatureBuilder* _tmp103_;
	ValadocApiSignatureBuilder* _tmp104_;
	ValadocApiSignatureBuilder* _tmp105_;
	ValaList* exceptions = NULL;
	ValadocApiNodeType* _tmp106_;
	ValadocApiNodeType* _tmp107_;
	gint _tmp107__length1;
	ValaList* _tmp108_;
	ValaList* _tmp109_;
	ValaList* _tmp110_;
	gint _tmp111_;
	gint _tmp112_;
	ValadocApiSignatureBuilder* _tmp135_;
	ValadocContentRun* _tmp136_;
	self = (ValadocApiMethod*) base;
	_tmp0_ = valadoc_api_signature_builder_new ();
	signature = _tmp0_;
	_tmp1_ = signature;
	_tmp2_ = valadoc_api_symbol_get_accessibility ((ValadocApiSymbol*) self);
	_tmp3_ = _tmp2_;
	_tmp4_ = valadoc_api_symbol_accessibility_to_string (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = valadoc_api_signature_builder_append_keyword (_tmp1_, _tmp5_, TRUE);
	_tmp7_ = _tmp6_;
	_valadoc_api_signature_builder_unref0 (_tmp7_);
	_g_free0 (_tmp5_);
	_tmp8_ = self->priv->_is_constructor;
	if (!_tmp8_) {
		gboolean _tmp9_;
		gboolean _tmp10_;
		gboolean _tmp29_;
		gboolean _tmp30_;
		gboolean _tmp34_;
		ValadocApiSignatureBuilder* _tmp38_;
		ValadocApiTypeReference* _tmp39_;
		ValadocApiTypeReference* _tmp40_;
		ValadocContentInline* _tmp41_;
		ValadocContentInline* _tmp42_;
		ValadocApiSignatureBuilder* _tmp43_;
		ValadocApiSignatureBuilder* _tmp44_;
		_tmp9_ = valadoc_api_method_get_is_static (self);
		_tmp10_ = _tmp9_;
		if (_tmp10_) {
			ValadocApiSignatureBuilder* _tmp11_;
			ValadocApiSignatureBuilder* _tmp12_;
			ValadocApiSignatureBuilder* _tmp13_;
			_tmp11_ = signature;
			_tmp12_ = valadoc_api_signature_builder_append_keyword (_tmp11_, "static", TRUE);
			_tmp13_ = _tmp12_;
			_valadoc_api_signature_builder_unref0 (_tmp13_);
		} else {
			gboolean _tmp14_;
			gboolean _tmp15_;
			_tmp14_ = valadoc_api_method_get_is_abstract (self);
			_tmp15_ = _tmp14_;
			if (_tmp15_) {
				ValadocApiSignatureBuilder* _tmp16_;
				ValadocApiSignatureBuilder* _tmp17_;
				ValadocApiSignatureBuilder* _tmp18_;
				_tmp16_ = signature;
				_tmp17_ = valadoc_api_signature_builder_append_keyword (_tmp16_, "abstract", TRUE);
				_tmp18_ = _tmp17_;
				_valadoc_api_signature_builder_unref0 (_tmp18_);
			} else {
				gboolean _tmp19_;
				gboolean _tmp20_;
				_tmp19_ = valadoc_api_method_get_is_override (self);
				_tmp20_ = _tmp19_;
				if (_tmp20_) {
					ValadocApiSignatureBuilder* _tmp21_;
					ValadocApiSignatureBuilder* _tmp22_;
					ValadocApiSignatureBuilder* _tmp23_;
					_tmp21_ = signature;
					_tmp22_ = valadoc_api_signature_builder_append_keyword (_tmp21_, "override", TRUE);
					_tmp23_ = _tmp22_;
					_valadoc_api_signature_builder_unref0 (_tmp23_);
				} else {
					gboolean _tmp24_;
					gboolean _tmp25_;
					_tmp24_ = valadoc_api_method_get_is_virtual (self);
					_tmp25_ = _tmp24_;
					if (_tmp25_) {
						ValadocApiSignatureBuilder* _tmp26_;
						ValadocApiSignatureBuilder* _tmp27_;
						ValadocApiSignatureBuilder* _tmp28_;
						_tmp26_ = signature;
						_tmp27_ = valadoc_api_signature_builder_append_keyword (_tmp26_, "virtual", TRUE);
						_tmp28_ = _tmp27_;
						_valadoc_api_signature_builder_unref0 (_tmp28_);
					}
				}
			}
		}
		_tmp29_ = valadoc_api_method_get_is_inline (self);
		_tmp30_ = _tmp29_;
		if (_tmp30_) {
			ValadocApiSignatureBuilder* _tmp31_;
			ValadocApiSignatureBuilder* _tmp32_;
			ValadocApiSignatureBuilder* _tmp33_;
			_tmp31_ = signature;
			_tmp32_ = valadoc_api_signature_builder_append_keyword (_tmp31_, "inline", TRUE);
			_tmp33_ = _tmp32_;
			_valadoc_api_signature_builder_unref0 (_tmp33_);
		}
		_tmp34_ = self->priv->_is_yields;
		if (_tmp34_) {
			ValadocApiSignatureBuilder* _tmp35_;
			ValadocApiSignatureBuilder* _tmp36_;
			ValadocApiSignatureBuilder* _tmp37_;
			_tmp35_ = signature;
			_tmp36_ = valadoc_api_signature_builder_append_keyword (_tmp35_, "async", TRUE);
			_tmp37_ = _tmp36_;
			_valadoc_api_signature_builder_unref0 (_tmp37_);
		}
		_tmp38_ = signature;
		_tmp39_ = valadoc_api_callable_get_return_type ((ValadocApiCallable*) self);
		_tmp40_ = _tmp39_;
		_tmp41_ = valadoc_api_item_get_signature ((ValadocApiItem*) _tmp40_);
		_tmp42_ = _tmp41_;
		_tmp43_ = valadoc_api_signature_builder_append_content (_tmp38_, _tmp42_, TRUE);
		_tmp44_ = _tmp43_;
		_valadoc_api_signature_builder_unref0 (_tmp44_);
	}
	_tmp45_ = signature;
	_tmp46_ = valadoc_api_signature_builder_append_symbol (_tmp45_, (ValadocApiNode*) self, TRUE);
	_tmp47_ = _tmp46_;
	_valadoc_api_signature_builder_unref0 (_tmp47_);
	_tmp48_ = valadoc_api_node_get_children_by_type ((ValadocApiNode*) self, VALADOC_API_NODE_TYPE_TYPE_PARAMETER, FALSE);
	type_parameters = _tmp48_;
	_tmp49_ = type_parameters;
	_tmp50_ = vala_collection_get_size ((ValaCollection*) _tmp49_);
	_tmp51_ = _tmp50_;
	if (_tmp51_ > 0) {
		ValadocApiSignatureBuilder* _tmp52_;
		ValadocApiSignatureBuilder* _tmp53_;
		ValadocApiSignatureBuilder* _tmp54_;
		gboolean first = FALSE;
		ValadocApiSignatureBuilder* _tmp76_;
		ValadocApiSignatureBuilder* _tmp77_;
		ValadocApiSignatureBuilder* _tmp78_;
		_tmp52_ = signature;
		_tmp53_ = valadoc_api_signature_builder_append (_tmp52_, "<", FALSE);
		_tmp54_ = _tmp53_;
		_valadoc_api_signature_builder_unref0 (_tmp54_);
		first = TRUE;
		{
			ValaList* _param_list = NULL;
			ValaList* _tmp55_;
			ValaList* _tmp56_;
			gint _param_size = 0;
			ValaList* _tmp57_;
			gint _tmp58_;
			gint _tmp59_;
			gint _param_index = 0;
			_tmp55_ = type_parameters;
			_tmp56_ = _vala_iterable_ref0 (_tmp55_);
			_param_list = _tmp56_;
			_tmp57_ = _param_list;
			_tmp58_ = vala_collection_get_size ((ValaCollection*) _tmp57_);
			_tmp59_ = _tmp58_;
			_param_size = _tmp59_;
			_param_index = -1;
			while (TRUE) {
				gint _tmp60_;
				gint _tmp61_;
				gint _tmp62_;
				ValadocApiItem* param = NULL;
				ValaList* _tmp63_;
				gint _tmp64_;
				gpointer _tmp65_;
				gboolean _tmp66_;
				ValadocApiSignatureBuilder* _tmp70_;
				ValadocApiItem* _tmp71_;
				ValadocContentInline* _tmp72_;
				ValadocContentInline* _tmp73_;
				ValadocApiSignatureBuilder* _tmp74_;
				ValadocApiSignatureBuilder* _tmp75_;
				_tmp60_ = _param_index;
				_param_index = _tmp60_ + 1;
				_tmp61_ = _param_index;
				_tmp62_ = _param_size;
				if (!(_tmp61_ < _tmp62_)) {
					break;
				}
				_tmp63_ = _param_list;
				_tmp64_ = _param_index;
				_tmp65_ = vala_list_get (_tmp63_, _tmp64_);
				param = (ValadocApiItem*) ((ValadocApiNode*) _tmp65_);
				_tmp66_ = first;
				if (!_tmp66_) {
					ValadocApiSignatureBuilder* _tmp67_;
					ValadocApiSignatureBuilder* _tmp68_;
					ValadocApiSignatureBuilder* _tmp69_;
					_tmp67_ = signature;
					_tmp68_ = valadoc_api_signature_builder_append (_tmp67_, ",", FALSE);
					_tmp69_ = _tmp68_;
					_valadoc_api_signature_builder_unref0 (_tmp69_);
				}
				_tmp70_ = signature;
				_tmp71_ = param;
				_tmp72_ = valadoc_api_item_get_signature (_tmp71_);
				_tmp73_ = _tmp72_;
				_tmp74_ = valadoc_api_signature_builder_append_content (_tmp70_, _tmp73_, FALSE);
				_tmp75_ = _tmp74_;
				_valadoc_api_signature_builder_unref0 (_tmp75_);
				first = FALSE;
				_g_object_unref0 (param);
			}
			_vala_iterable_unref0 (_param_list);
		}
		_tmp76_ = signature;
		_tmp77_ = valadoc_api_signature_builder_append (_tmp76_, ">", FALSE);
		_tmp78_ = _tmp77_;
		_valadoc_api_signature_builder_unref0 (_tmp78_);
	}
	_tmp79_ = signature;
	_tmp80_ = valadoc_api_signature_builder_append (_tmp79_, "(", TRUE);
	_tmp81_ = _tmp80_;
	_valadoc_api_signature_builder_unref0 (_tmp81_);
	first = TRUE;
	{
		ValaList* _param_list = NULL;
		ValaList* _tmp82_;
		gint _param_size = 0;
		ValaList* _tmp83_;
		gint _tmp84_;
		gint _tmp85_;
		gint _param_index = 0;
		_tmp82_ = valadoc_api_node_get_children_by_type ((ValadocApiNode*) self, VALADOC_API_NODE_TYPE_FORMAL_PARAMETER, FALSE);
		_param_list = _tmp82_;
		_tmp83_ = _param_list;
		_tmp84_ = vala_collection_get_size ((ValaCollection*) _tmp83_);
		_tmp85_ = _tmp84_;
		_param_size = _tmp85_;
		_param_index = -1;
		while (TRUE) {
			gint _tmp86_;
			gint _tmp87_;
			gint _tmp88_;
			ValadocApiNode* param = NULL;
			ValaList* _tmp89_;
			gint _tmp90_;
			gpointer _tmp91_;
			gboolean _tmp92_;
			ValadocApiSignatureBuilder* _tmp96_;
			ValadocApiNode* _tmp97_;
			ValadocContentInline* _tmp98_;
			ValadocContentInline* _tmp99_;
			gboolean _tmp100_;
			ValadocApiSignatureBuilder* _tmp101_;
			ValadocApiSignatureBuilder* _tmp102_;
			_tmp86_ = _param_index;
			_param_index = _tmp86_ + 1;
			_tmp87_ = _param_index;
			_tmp88_ = _param_size;
			if (!(_tmp87_ < _tmp88_)) {
				break;
			}
			_tmp89_ = _param_list;
			_tmp90_ = _param_index;
			_tmp91_ = vala_list_get (_tmp89_, _tmp90_);
			param = (ValadocApiNode*) _tmp91_;
			_tmp92_ = first;
			if (!_tmp92_) {
				ValadocApiSignatureBuilder* _tmp93_;
				ValadocApiSignatureBuilder* _tmp94_;
				ValadocApiSignatureBuilder* _tmp95_;
				_tmp93_ = signature;
				_tmp94_ = valadoc_api_signature_builder_append (_tmp93_, ",", FALSE);
				_tmp95_ = _tmp94_;
				_valadoc_api_signature_builder_unref0 (_tmp95_);
			}
			_tmp96_ = signature;
			_tmp97_ = param;
			_tmp98_ = valadoc_api_item_get_signature ((ValadocApiItem*) _tmp97_);
			_tmp99_ = _tmp98_;
			_tmp100_ = first;
			_tmp101_ = valadoc_api_signature_builder_append_content (_tmp96_, _tmp99_, !_tmp100_);
			_tmp102_ = _tmp101_;
			_valadoc_api_signature_builder_unref0 (_tmp102_);
			first = FALSE;
			_g_object_unref0 (param);
		}
		_vala_iterable_unref0 (_param_list);
	}
	_tmp103_ = signature;
	_tmp104_ = valadoc_api_signature_builder_append (_tmp103_, ")", FALSE);
	_tmp105_ = _tmp104_;
	_valadoc_api_signature_builder_unref0 (_tmp105_);
	_tmp106_ = g_new0 (ValadocApiNodeType, 2);
	_tmp106_[0] = VALADOC_API_NODE_TYPE_ERROR_DOMAIN;
	_tmp106_[1] = VALADOC_API_NODE_TYPE_CLASS;
	_tmp107_ = _tmp106_;
	_tmp107__length1 = 2;
	_tmp108_ = valadoc_api_node_get_children_by_types ((ValadocApiNode*) self, _tmp107_, 2, TRUE);
	_tmp109_ = _tmp108_;
	_tmp107_ = (g_free (_tmp107_), NULL);
	exceptions = _tmp109_;
	_tmp110_ = exceptions;
	_tmp111_ = vala_collection_get_size ((ValaCollection*) _tmp110_);
	_tmp112_ = _tmp111_;
	if (_tmp112_ > 0) {
		ValadocApiSignatureBuilder* _tmp113_;
		ValadocApiSignatureBuilder* _tmp114_;
		ValadocApiSignatureBuilder* _tmp115_;
		_tmp113_ = signature;
		_tmp114_ = valadoc_api_signature_builder_append_keyword (_tmp113_, "throws", TRUE);
		_tmp115_ = _tmp114_;
		_valadoc_api_signature_builder_unref0 (_tmp115_);
		first = TRUE;
		{
			ValaList* _param_list = NULL;
			ValaList* _tmp116_;
			ValaList* _tmp117_;
			gint _param_size = 0;
			ValaList* _tmp118_;
			gint _tmp119_;
			gint _tmp120_;
			gint _param_index = 0;
			_tmp116_ = exceptions;
			_tmp117_ = _vala_iterable_ref0 (_tmp116_);
			_param_list = _tmp117_;
			_tmp118_ = _param_list;
			_tmp119_ = vala_collection_get_size ((ValaCollection*) _tmp118_);
			_tmp120_ = _tmp119_;
			_param_size = _tmp120_;
			_param_index = -1;
			while (TRUE) {
				gint _tmp121_;
				gint _tmp122_;
				gint _tmp123_;
				ValadocApiNode* param = NULL;
				ValaList* _tmp124_;
				gint _tmp125_;
				gpointer _tmp126_;
				gboolean _tmp127_;
				ValadocApiSignatureBuilder* _tmp131_;
				ValadocApiNode* _tmp132_;
				ValadocApiSignatureBuilder* _tmp133_;
				ValadocApiSignatureBuilder* _tmp134_;
				_tmp121_ = _param_index;
				_param_index = _tmp121_ + 1;
				_tmp122_ = _param_index;
				_tmp123_ = _param_size;
				if (!(_tmp122_ < _tmp123_)) {
					break;
				}
				_tmp124_ = _param_list;
				_tmp125_ = _param_index;
				_tmp126_ = vala_list_get (_tmp124_, _tmp125_);
				param = (ValadocApiNode*) _tmp126_;
				_tmp127_ = first;
				if (!_tmp127_) {
					ValadocApiSignatureBuilder* _tmp128_;
					ValadocApiSignatureBuilder* _tmp129_;
					ValadocApiSignatureBuilder* _tmp130_;
					_tmp128_ = signature;
					_tmp129_ = valadoc_api_signature_builder_append (_tmp128_, ",", FALSE);
					_tmp130_ = _tmp129_;
					_valadoc_api_signature_builder_unref0 (_tmp130_);
				}
				_tmp131_ = signature;
				_tmp132_ = param;
				_tmp133_ = valadoc_api_signature_builder_append_type (_tmp131_, _tmp132_, TRUE);
				_tmp134_ = _tmp133_;
				_valadoc_api_signature_builder_unref0 (_tmp134_);
				first = FALSE;
				_g_object_unref0 (param);
			}
			_vala_iterable_unref0 (_param_list);
		}
	}
	_tmp135_ = signature;
	_tmp136_ = valadoc_api_signature_builder_get (_tmp135_);
	result = (ValadocContentInline*) _tmp136_;
	_vala_iterable_unref0 (exceptions);
	_vala_iterable_unref0 (type_parameters);
	_valadoc_api_signature_builder_unref0 (signature);
	return result;
}


/**
 * {@inheritDoc}
 */
static void valadoc_api_method_real_accept (ValadocApiNode* base, ValadocApiVisitor* visitor) {
	ValadocApiMethod * self;
	ValadocApiVisitor* _tmp0_;
	self = (ValadocApiMethod*) base;
	g_return_if_fail (visitor != NULL);
	_tmp0_ = visitor;
	valadoc_api_visitor_visit_method (_tmp0_, self);
}


static const gchar* valadoc_api_method_real_get_implicit_array_length_cparameter_name (ValadocApiCallable* base) {
	const gchar* result;
	ValadocApiMethod* self;
	const gchar* _tmp0_;
	self = (ValadocApiMethod*) base;
	_tmp0_ = self->priv->_implicit_array_length_cparameter_name;
	result = _tmp0_;
	return result;
}


static void valadoc_api_method_real_set_implicit_array_length_cparameter_name (ValadocApiCallable* base, const gchar* value) {
	ValadocApiMethod* self;
	self = (ValadocApiMethod*) base;
	if (g_strcmp0 (value, valadoc_api_method_real_get_implicit_array_length_cparameter_name (base)) != 0) {
		const gchar* _tmp0_;
		gchar* _tmp1_;
		_tmp0_ = value;
		_tmp1_ = g_strdup (_tmp0_);
		_g_free0 (self->priv->_implicit_array_length_cparameter_name);
		self->priv->_implicit_array_length_cparameter_name = _tmp1_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_method_properties[VALADOC_API_METHOD_IMPLICIT_ARRAY_LENGTH_CPARAMETER_NAME_PROPERTY]);
	}
}


ValadocApiMethod* valadoc_api_method_get_base_method (ValadocApiMethod* self) {
	ValadocApiMethod* result;
	ValadocApiMethod* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_base_method;
	result = _tmp0_;
	return result;
}


void valadoc_api_method_set_base_method (ValadocApiMethod* self, ValadocApiMethod* value) {
	g_return_if_fail (self != NULL);
	if (valadoc_api_method_get_base_method (self) != value) {
		ValadocApiMethod* _tmp0_;
		_tmp0_ = value;
		self->priv->_base_method = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_method_properties[VALADOC_API_METHOD_BASE_METHOD_PROPERTY]);
	}
}


static ValadocApiTypeReference* valadoc_api_method_real_get_return_type (ValadocApiCallable* base) {
	ValadocApiTypeReference* result;
	ValadocApiMethod* self;
	ValadocApiTypeReference* _tmp0_;
	self = (ValadocApiMethod*) base;
	_tmp0_ = self->priv->_return_type;
	result = _tmp0_;
	return result;
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void valadoc_api_method_real_set_return_type (ValadocApiCallable* base, ValadocApiTypeReference* value) {
	ValadocApiMethod* self;
	self = (ValadocApiMethod*) base;
	if (valadoc_api_method_real_get_return_type (base) != value) {
		ValadocApiTypeReference* _tmp0_;
		ValadocApiTypeReference* _tmp1_;
		_tmp0_ = value;
		_tmp1_ = _g_object_ref0 (_tmp0_);
		_g_object_unref0 (self->priv->_return_type);
		self->priv->_return_type = _tmp1_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_method_properties[VALADOC_API_METHOD_RETURN_TYPE_PROPERTY]);
	}
}


gboolean valadoc_api_method_get_is_yields (ValadocApiMethod* self) {
	gboolean result;
	gboolean _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_is_yields;
	result = _tmp0_;
	return result;
}


static void valadoc_api_method_set_is_yields (ValadocApiMethod* self, gboolean value) {
	g_return_if_fail (self != NULL);
	if (valadoc_api_method_get_is_yields (self) != value) {
		gboolean _tmp0_;
		_tmp0_ = value;
		self->priv->_is_yields = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_method_properties[VALADOC_API_METHOD_IS_YIELDS_PROPERTY]);
	}
}


gboolean valadoc_api_method_get_is_abstract (ValadocApiMethod* self) {
	gboolean result;
	ValadocMethodBindingType _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->binding_type;
	result = _tmp0_ == VALADOC_METHOD_BINDING_TYPE_ABSTRACT;
	return result;
}


gboolean valadoc_api_method_get_is_virtual (ValadocApiMethod* self) {
	gboolean result;
	ValadocMethodBindingType _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->binding_type;
	result = _tmp0_ == VALADOC_METHOD_BINDING_TYPE_VIRTUAL;
	return result;
}


gboolean valadoc_api_method_get_is_override (ValadocApiMethod* self) {
	gboolean result;
	ValadocMethodBindingType _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->binding_type;
	result = _tmp0_ == VALADOC_METHOD_BINDING_TYPE_OVERRIDE;
	return result;
}


gboolean valadoc_api_method_get_is_static (ValadocApiMethod* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp2_ = self->priv->_is_constructor;
	if (!_tmp2_) {
		ValadocMethodBindingType _tmp3_;
		_tmp3_ = self->priv->binding_type;
		_tmp1_ = _tmp3_ == VALADOC_METHOD_BINDING_TYPE_STATIC;
	} else {
		_tmp1_ = FALSE;
	}
	if (_tmp1_) {
		ValadocApiItem* _tmp4_;
		ValadocApiItem* _tmp5_;
		_tmp4_ = valadoc_api_item_get_parent ((ValadocApiItem*) self);
		_tmp5_ = _tmp4_;
		_tmp0_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALADOC_API_TYPE_NAMESPACE) == FALSE;
	} else {
		_tmp0_ = FALSE;
	}
	result = _tmp0_;
	return result;
}


gboolean valadoc_api_method_get_is_constructor (ValadocApiMethod* self) {
	gboolean result;
	gboolean _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_is_constructor;
	result = _tmp0_;
	return result;
}


static void valadoc_api_method_set_is_constructor (ValadocApiMethod* self, gboolean value) {
	g_return_if_fail (self != NULL);
	if (valadoc_api_method_get_is_constructor (self) != value) {
		gboolean _tmp0_;
		_tmp0_ = value;
		self->priv->_is_constructor = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_method_properties[VALADOC_API_METHOD_IS_CONSTRUCTOR_PROPERTY]);
	}
}


gboolean valadoc_api_method_get_is_inline (ValadocApiMethod* self) {
	gboolean result;
	ValadocMethodBindingType _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->binding_type;
	result = _tmp0_ == VALADOC_METHOD_BINDING_TYPE_INLINE;
	return result;
}


gboolean valadoc_api_method_get_is_dbus_visible (ValadocApiMethod* self) {
	gboolean result;
	gboolean _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_is_dbus_visible;
	result = _tmp0_;
	return result;
}


static void valadoc_api_method_set_is_dbus_visible (ValadocApiMethod* self, gboolean value) {
	g_return_if_fail (self != NULL);
	if (valadoc_api_method_get_is_dbus_visible (self) != value) {
		gboolean _tmp0_;
		_tmp0_ = value;
		self->priv->_is_dbus_visible = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_api_method_properties[VALADOC_API_METHOD_IS_DBUS_VISIBLE_PROPERTY]);
	}
}


static ValadocApiNodeType valadoc_api_method_real_get_node_type (ValadocApiNode* base) {
	ValadocApiNodeType result;
	ValadocApiMethod* self;
	ValadocApiNodeType _tmp0_ = 0;
	gboolean _tmp1_;
	self = (ValadocApiMethod*) base;
	_tmp1_ = self->priv->_is_constructor;
	if (_tmp1_) {
		_tmp0_ = VALADOC_API_NODE_TYPE_CREATION_METHOD;
	} else {
		ValadocApiNodeType _tmp2_ = 0;
		gboolean _tmp3_;
		gboolean _tmp4_;
		_tmp3_ = valadoc_api_method_get_is_static (self);
		_tmp4_ = _tmp3_;
		if (_tmp4_) {
			_tmp2_ = VALADOC_API_NODE_TYPE_STATIC_METHOD;
		} else {
			_tmp2_ = VALADOC_API_NODE_TYPE_METHOD;
		}
		_tmp0_ = _tmp2_;
	}
	result = _tmp0_;
	return result;
}


static void valadoc_api_method_class_init (ValadocApiMethodClass * klass) {
	valadoc_api_method_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (ValadocApiMethodPrivate));
	((ValadocApiItemClass *) klass)->build_signature = (ValadocContentInline* (*) (ValadocApiItem *)) valadoc_api_method_real_build_signature;
	((ValadocApiNodeClass *) klass)->accept = (void (*) (ValadocApiNode *, ValadocApiVisitor*)) valadoc_api_method_real_accept;
	VALADOC_API_NODE_CLASS (klass)->get_node_type = valadoc_api_method_real_get_node_type;
	G_OBJECT_CLASS (klass)->get_property = _vala_valadoc_api_method_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_valadoc_api_method_set_property;
	G_OBJECT_CLASS (klass)->finalize = valadoc_api_method_finalize;
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IMPLICIT_ARRAY_LENGTH_CPARAMETER_NAME_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IMPLICIT_ARRAY_LENGTH_CPARAMETER_NAME_PROPERTY] = g_param_spec_string ("implicit-array-length-cparameter-name", "implicit-array-length-cparameter-name", "implicit-array-length-cparameter-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * Specifies the virtual or abstract method this method overrides.
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_BASE_METHOD_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_BASE_METHOD_PROPERTY] = g_param_spec_object ("base-method", "base-method", "base-method", VALADOC_API_TYPE_METHOD, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_RETURN_TYPE_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_RETURN_TYPE_PROPERTY] = g_param_spec_object ("return-type", "return-type", "return-type", VALADOC_API_TYPE_TYPEREFERENCE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	/**
	 * Specifies whether this method is asynchronous
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IS_YIELDS_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IS_YIELDS_PROPERTY] = g_param_spec_boolean ("is-yields", "is-yields", "is-yields", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * Specifies whether this method is abstract
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IS_ABSTRACT_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IS_ABSTRACT_PROPERTY] = g_param_spec_boolean ("is-abstract", "is-abstract", "is-abstract", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * Specifies whether this method is virtual
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IS_VIRTUAL_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IS_VIRTUAL_PROPERTY] = g_param_spec_boolean ("is-virtual", "is-virtual", "is-virtual", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * Specifies whether this method overrides another one
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IS_OVERRIDE_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IS_OVERRIDE_PROPERTY] = g_param_spec_boolean ("is-override", "is-override", "is-override", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * Specifies whether this method is static
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IS_STATIC_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IS_STATIC_PROPERTY] = g_param_spec_boolean ("is-static", "is-static", "is-static", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * Specifies whether this method is a creation method
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IS_CONSTRUCTOR_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IS_CONSTRUCTOR_PROPERTY] = g_param_spec_boolean ("is-constructor", "is-constructor", "is-constructor", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * Specifies whether this method is inline
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IS_INLINE_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IS_INLINE_PROPERTY] = g_param_spec_boolean ("is-inline", "is-inline", "is-inline", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * Specifies whether this method is visible for dbus
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_IS_DBUS_VISIBLE_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_IS_DBUS_VISIBLE_PROPERTY] = g_param_spec_boolean ("is-dbus-visible", "is-dbus-visible", "is-dbus-visible", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	/**
	 * {@inheritDoc}
	 */
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_API_METHOD_NODE_TYPE_PROPERTY, valadoc_api_method_properties[VALADOC_API_METHOD_NODE_TYPE_PROPERTY] = g_param_spec_enum ("node-type", "node-type", "node-type", VALADOC_API_TYPE_NODE_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}


static void valadoc_api_method_valadoc_api_callable_interface_init (ValadocApiCallableIface * iface) {
	valadoc_api_method_valadoc_api_callable_parent_iface = g_type_interface_peek_parent (iface);
	iface->get_implicit_array_length_cparameter_name = valadoc_api_method_real_get_implicit_array_length_cparameter_name;
	iface->set_implicit_array_length_cparameter_name = valadoc_api_method_real_set_implicit_array_length_cparameter_name;
	iface->get_return_type = valadoc_api_method_real_get_return_type;
	iface->set_return_type = valadoc_api_method_real_set_return_type;
}


static void valadoc_api_method_instance_init (ValadocApiMethod * self) {
	self->priv = VALADOC_API_METHOD_GET_PRIVATE (self);
}


static void valadoc_api_method_finalize (GObject * obj) {
	ValadocApiMethod * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALADOC_API_TYPE_METHOD, ValadocApiMethod);
	_g_free0 (self->priv->finish_function_cname);
	_g_free0 (self->priv->dbus_result_name);
	_g_free0 (self->priv->dbus_name);
	_g_free0 (self->priv->cname);
	_g_free0 (self->priv->_implicit_array_length_cparameter_name);
	_g_object_unref0 (self->priv->_return_type);
	G_OBJECT_CLASS (valadoc_api_method_parent_class)->finalize (obj);
}


/**
 * Represents a function or a method.
 */
GType valadoc_api_method_get_type (void) {
	static volatile gsize valadoc_api_method_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_api_method_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValadocApiMethodClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_api_method_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValadocApiMethod), 0, (GInstanceInitFunc) valadoc_api_method_instance_init, NULL };
		static const GInterfaceInfo valadoc_api_callable_info = { (GInterfaceInitFunc) valadoc_api_method_valadoc_api_callable_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType valadoc_api_method_type_id;
		valadoc_api_method_type_id = g_type_register_static (VALADOC_API_TYPE_MEMBER, "ValadocApiMethod", &g_define_type_info, 0);
		g_type_add_interface_static (valadoc_api_method_type_id, VALADOC_API_TYPE_CALLABLE, &valadoc_api_callable_info);
		g_once_init_leave (&valadoc_api_method_type_id__volatile, valadoc_api_method_type_id);
	}
	return valadoc_api_method_type_id__volatile;
}


static void _vala_valadoc_api_method_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	ValadocApiMethod * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, VALADOC_API_TYPE_METHOD, ValadocApiMethod);
	switch (property_id) {
		case VALADOC_API_METHOD_IMPLICIT_ARRAY_LENGTH_CPARAMETER_NAME_PROPERTY:
		g_value_set_string (value, valadoc_api_callable_get_implicit_array_length_cparameter_name ((ValadocApiCallable*) self));
		break;
		case VALADOC_API_METHOD_BASE_METHOD_PROPERTY:
		g_value_set_object (value, valadoc_api_method_get_base_method (self));
		break;
		case VALADOC_API_METHOD_RETURN_TYPE_PROPERTY:
		g_value_set_object (value, valadoc_api_callable_get_return_type ((ValadocApiCallable*) self));
		break;
		case VALADOC_API_METHOD_IS_YIELDS_PROPERTY:
		g_value_set_boolean (value, valadoc_api_method_get_is_yields (self));
		break;
		case VALADOC_API_METHOD_IS_ABSTRACT_PROPERTY:
		g_value_set_boolean (value, valadoc_api_method_get_is_abstract (self));
		break;
		case VALADOC_API_METHOD_IS_VIRTUAL_PROPERTY:
		g_value_set_boolean (value, valadoc_api_method_get_is_virtual (self));
		break;
		case VALADOC_API_METHOD_IS_OVERRIDE_PROPERTY:
		g_value_set_boolean (value, valadoc_api_method_get_is_override (self));
		break;
		case VALADOC_API_METHOD_IS_STATIC_PROPERTY:
		g_value_set_boolean (value, valadoc_api_method_get_is_static (self));
		break;
		case VALADOC_API_METHOD_IS_CONSTRUCTOR_PROPERTY:
		g_value_set_boolean (value, valadoc_api_method_get_is_constructor (self));
		break;
		case VALADOC_API_METHOD_IS_INLINE_PROPERTY:
		g_value_set_boolean (value, valadoc_api_method_get_is_inline (self));
		break;
		case VALADOC_API_METHOD_IS_DBUS_VISIBLE_PROPERTY:
		g_value_set_boolean (value, valadoc_api_method_get_is_dbus_visible (self));
		break;
		case VALADOC_API_METHOD_NODE_TYPE_PROPERTY:
		g_value_set_enum (value, valadoc_api_node_get_node_type ((ValadocApiNode*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_valadoc_api_method_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	ValadocApiMethod * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, VALADOC_API_TYPE_METHOD, ValadocApiMethod);
	switch (property_id) {
		case VALADOC_API_METHOD_IMPLICIT_ARRAY_LENGTH_CPARAMETER_NAME_PROPERTY:
		valadoc_api_callable_set_implicit_array_length_cparameter_name ((ValadocApiCallable*) self, g_value_get_string (value));
		break;
		case VALADOC_API_METHOD_BASE_METHOD_PROPERTY:
		valadoc_api_method_set_base_method (self, g_value_get_object (value));
		break;
		case VALADOC_API_METHOD_RETURN_TYPE_PROPERTY:
		valadoc_api_callable_set_return_type ((ValadocApiCallable*) self, g_value_get_object (value));
		break;
		case VALADOC_API_METHOD_IS_YIELDS_PROPERTY:
		valadoc_api_method_set_is_yields (self, g_value_get_boolean (value));
		break;
		case VALADOC_API_METHOD_IS_CONSTRUCTOR_PROPERTY:
		valadoc_api_method_set_is_constructor (self, g_value_get_boolean (value));
		break;
		case VALADOC_API_METHOD_IS_DBUS_VISIBLE_PROPERTY:
		valadoc_api_method_set_is_dbus_visible (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



