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

/* run.vala
 *
 * Copyright (C) 2008-2009 Didier Villevalois
 * Copyright (C) 2008-2012 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>
#include <valagee.h>

enum  {
	VALADOC_CONTENT_RUN_0_PROPERTY,
	VALADOC_CONTENT_RUN_STYLE_PROPERTY,
	VALADOC_CONTENT_RUN_NUM_PROPERTIES
};
static GParamSpec* valadoc_content_run_properties[VALADOC_CONTENT_RUN_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _ValadocContentRunPrivate {
	ValadocContentRunStyle _style;
};


static gpointer valadoc_content_run_parent_class = NULL;
static ValadocContentInlineIface * valadoc_content_run_valadoc_content_inline_parent_iface = NULL;

#define VALADOC_CONTENT_RUN_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALADOC_CONTENT_TYPE_RUN, ValadocContentRunPrivate))
static ValadocContentRunStyle* _valadoc_content_run_style_dup (ValadocContentRunStyle* self);
G_GNUC_INTERNAL ValadocContentRun* valadoc_content_run_new (ValadocContentRunStyle style);
G_GNUC_INTERNAL ValadocContentRun* valadoc_content_run_construct (GType object_type, ValadocContentRunStyle style);
G_GNUC_INTERNAL ValadocContentInlineContent* valadoc_content_inline_content_construct (GType object_type);
static void valadoc_content_run_real_check (ValadocContentContentElement* base, ValadocApiTree* api_root, ValadocApiNode* container, const gchar* file_path, ValadocErrorReporter* reporter, ValadocSettings* settings);
static void valadoc_content_run_real_accept (ValadocContentContentElement* base, ValadocContentContentVisitor* visitor);
static ValadocContentContentElement* valadoc_content_run_real_copy (ValadocContentContentElement* base, ValadocContentContentElement* new_parent);
G_GNUC_INTERNAL void valadoc_content_content_element_set_parent (ValadocContentContentElement* self, ValadocContentContentElement* value);
static void valadoc_content_run_finalize (GObject * obj);
static void _vala_valadoc_content_run_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_valadoc_content_run_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


static ValadocContentRunStyle* _valadoc_content_run_style_dup (ValadocContentRunStyle* self) {
	ValadocContentRunStyle* dup;
	dup = g_new0 (ValadocContentRunStyle, 1);
	memcpy (dup, self, sizeof (ValadocContentRunStyle));
	return dup;
}


static gpointer __valadoc_content_run_style_dup0 (gpointer self) {
	return self ? _valadoc_content_run_style_dup (self) : NULL;
}


ValadocContentRunStyle* valadoc_content_run_style_from_string (const gchar* str) {
	ValadocContentRunStyle* result = NULL;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	GQuark _tmp3_ = 0U;
	static GQuark _tmp2_label0 = 0;
	static GQuark _tmp2_label1 = 0;
	static GQuark _tmp2_label2 = 0;
	static GQuark _tmp2_label3 = 0;
	static GQuark _tmp2_label4 = 0;
	static GQuark _tmp2_label5 = 0;
	static GQuark _tmp2_label6 = 0;
	static GQuark _tmp2_label7 = 0;
	static GQuark _tmp2_label8 = 0;
	static GQuark _tmp2_label9 = 0;
	static GQuark _tmp2_label10 = 0;
	static GQuark _tmp2_label11 = 0;
	static GQuark _tmp2_label12 = 0;
	static GQuark _tmp2_label13 = 0;
	static GQuark _tmp2_label14 = 0;
	static GQuark _tmp2_label15 = 0;
	static GQuark _tmp2_label16 = 0;
	static GQuark _tmp2_label17 = 0;
	static GQuark _tmp2_label18 = 0;
	g_return_val_if_fail (str != NULL, NULL);
	_tmp0_ = str;
	_tmp1_ = _tmp0_;
	_tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
	if (_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("none")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp4_;
				ValadocContentRunStyle* _tmp5_;
				_tmp4_ = VALADOC_CONTENT_RUN_STYLE_NONE;
				_tmp5_ = __valadoc_content_run_style_dup0 (&_tmp4_);
				result = _tmp5_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("bold")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp6_;
				ValadocContentRunStyle* _tmp7_;
				_tmp6_ = VALADOC_CONTENT_RUN_STYLE_BOLD;
				_tmp7_ = __valadoc_content_run_style_dup0 (&_tmp6_);
				result = _tmp7_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("italic")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp8_;
				ValadocContentRunStyle* _tmp9_;
				_tmp8_ = VALADOC_CONTENT_RUN_STYLE_ITALIC;
				_tmp9_ = __valadoc_content_run_style_dup0 (&_tmp8_);
				result = _tmp9_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("underlined")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp10_;
				ValadocContentRunStyle* _tmp11_;
				_tmp10_ = VALADOC_CONTENT_RUN_STYLE_UNDERLINED;
				_tmp11_ = __valadoc_content_run_style_dup0 (&_tmp10_);
				result = _tmp11_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("monospaced")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp12_;
				ValadocContentRunStyle* _tmp13_;
				_tmp12_ = VALADOC_CONTENT_RUN_STYLE_MONOSPACED;
				_tmp13_ = __valadoc_content_run_style_dup0 (&_tmp12_);
				result = _tmp13_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label5) ? _tmp2_label5 : (_tmp2_label5 = g_quark_from_static_string ("stroke")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp14_;
				ValadocContentRunStyle* _tmp15_;
				_tmp14_ = VALADOC_CONTENT_RUN_STYLE_STROKE;
				_tmp15_ = __valadoc_content_run_style_dup0 (&_tmp14_);
				result = _tmp15_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label6) ? _tmp2_label6 : (_tmp2_label6 = g_quark_from_static_string ("lang-escape")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp16_;
				ValadocContentRunStyle* _tmp17_;
				_tmp16_ = VALADOC_CONTENT_RUN_STYLE_LANG_ESCAPE;
				_tmp17_ = __valadoc_content_run_style_dup0 (&_tmp16_);
				result = _tmp17_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label7) ? _tmp2_label7 : (_tmp2_label7 = g_quark_from_static_string ("lang-keyword")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp18_;
				ValadocContentRunStyle* _tmp19_;
				_tmp18_ = VALADOC_CONTENT_RUN_STYLE_LANG_KEYWORD;
				_tmp19_ = __valadoc_content_run_style_dup0 (&_tmp18_);
				result = _tmp19_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label8) ? _tmp2_label8 : (_tmp2_label8 = g_quark_from_static_string ("lang-literal")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp20_;
				ValadocContentRunStyle* _tmp21_;
				_tmp20_ = VALADOC_CONTENT_RUN_STYLE_LANG_LITERAL;
				_tmp21_ = __valadoc_content_run_style_dup0 (&_tmp20_);
				result = _tmp21_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label9) ? _tmp2_label9 : (_tmp2_label9 = g_quark_from_static_string ("lang-basic-type")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp22_;
				ValadocContentRunStyle* _tmp23_;
				_tmp22_ = VALADOC_CONTENT_RUN_STYLE_LANG_BASIC_TYPE;
				_tmp23_ = __valadoc_content_run_style_dup0 (&_tmp22_);
				result = _tmp23_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label10) ? _tmp2_label10 : (_tmp2_label10 = g_quark_from_static_string ("lang-type")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp24_;
				ValadocContentRunStyle* _tmp25_;
				_tmp24_ = VALADOC_CONTENT_RUN_STYLE_LANG_TYPE;
				_tmp25_ = __valadoc_content_run_style_dup0 (&_tmp24_);
				result = _tmp25_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label11) ? _tmp2_label11 : (_tmp2_label11 = g_quark_from_static_string ("lang-preprocessor")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp26_;
				ValadocContentRunStyle* _tmp27_;
				_tmp26_ = VALADOC_CONTENT_RUN_STYLE_LANG_PREPROCESSOR;
				_tmp27_ = __valadoc_content_run_style_dup0 (&_tmp26_);
				result = _tmp27_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label12) ? _tmp2_label12 : (_tmp2_label12 = g_quark_from_static_string ("lang-comment")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp28_;
				ValadocContentRunStyle* _tmp29_;
				_tmp28_ = VALADOC_CONTENT_RUN_STYLE_LANG_COMMENT;
				_tmp29_ = __valadoc_content_run_style_dup0 (&_tmp28_);
				result = _tmp29_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label13) ? _tmp2_label13 : (_tmp2_label13 = g_quark_from_static_string ("xml-escape")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp30_;
				ValadocContentRunStyle* _tmp31_;
				_tmp30_ = VALADOC_CONTENT_RUN_STYLE_XML_ESCAPE;
				_tmp31_ = __valadoc_content_run_style_dup0 (&_tmp30_);
				result = _tmp31_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label14) ? _tmp2_label14 : (_tmp2_label14 = g_quark_from_static_string ("xml-element")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp32_;
				ValadocContentRunStyle* _tmp33_;
				_tmp32_ = VALADOC_CONTENT_RUN_STYLE_XML_ELEMENT;
				_tmp33_ = __valadoc_content_run_style_dup0 (&_tmp32_);
				result = _tmp33_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label15) ? _tmp2_label15 : (_tmp2_label15 = g_quark_from_static_string ("xml-attribute")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp34_;
				ValadocContentRunStyle* _tmp35_;
				_tmp34_ = VALADOC_CONTENT_RUN_STYLE_XML_ATTRIBUTE;
				_tmp35_ = __valadoc_content_run_style_dup0 (&_tmp34_);
				result = _tmp35_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label16) ? _tmp2_label16 : (_tmp2_label16 = g_quark_from_static_string ("xml-attribute-value")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp36_;
				ValadocContentRunStyle* _tmp37_;
				_tmp36_ = VALADOC_CONTENT_RUN_STYLE_XML_ATTRIBUTE_VALUE;
				_tmp37_ = __valadoc_content_run_style_dup0 (&_tmp36_);
				result = _tmp37_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label17) ? _tmp2_label17 : (_tmp2_label17 = g_quark_from_static_string ("xml-comment")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp38_;
				ValadocContentRunStyle* _tmp39_;
				_tmp38_ = VALADOC_CONTENT_RUN_STYLE_XML_COMMENT;
				_tmp39_ = __valadoc_content_run_style_dup0 (&_tmp38_);
				result = _tmp39_;
				return result;
			}
		}
	} else if (_tmp3_ == ((0 != _tmp2_label18) ? _tmp2_label18 : (_tmp2_label18 = g_quark_from_static_string ("xml-cdata")))) {
		switch (0) {
			default:
			{
				ValadocContentRunStyle _tmp40_;
				ValadocContentRunStyle* _tmp41_;
				_tmp40_ = VALADOC_CONTENT_RUN_STYLE_XML_CDATA;
				_tmp41_ = __valadoc_content_run_style_dup0 (&_tmp40_);
				result = _tmp41_;
				return result;
			}
		}
	}
	result = NULL;
	return result;
}


const gchar* valadoc_content_run_style_to_string (ValadocContentRunStyle self) {
	const gchar* result = NULL;
	switch (self) {
		case VALADOC_CONTENT_RUN_STYLE_NONE:
		{
			result = "none";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_BOLD:
		{
			result = "bold";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_ITALIC:
		{
			result = "italic";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_UNDERLINED:
		{
			result = "underlined";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_MONOSPACED:
		{
			result = "monospaced";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_STROKE:
		{
			result = "stroke";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_LANG_ESCAPE:
		{
			result = "lang-escape";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_LANG_KEYWORD:
		{
			result = "lang-keyword";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_LANG_LITERAL:
		{
			result = "lang-literal";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_LANG_BASIC_TYPE:
		{
			result = "lang-basic-type";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_LANG_TYPE:
		{
			result = "lang-type";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_LANG_PREPROCESSOR:
		{
			result = "lang-preprocessor";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_LANG_COMMENT:
		{
			result = "lang-comment";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_XML_ESCAPE:
		{
			result = "xml-escape";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_XML_ELEMENT:
		{
			result = "xml-element";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_XML_ATTRIBUTE:
		{
			result = "xml-attribute";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_XML_ATTRIBUTE_VALUE:
		{
			result = "xml-attribute-value";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_XML_COMMENT:
		{
			result = "xml-comment";
			return result;
		}
		case VALADOC_CONTENT_RUN_STYLE_XML_CDATA:
		{
			result = "xml-cdata";
			return result;
		}
		default:
		break;
	}
	_vala_assert (TRUE, "true");
	result = "";
	return result;
}


GType valadoc_content_run_style_get_type (void) {
	static volatile gsize valadoc_content_run_style_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_content_run_style_type_id__volatile)) {
		static const GEnumValue values[] = {{VALADOC_CONTENT_RUN_STYLE_NONE, "VALADOC_CONTENT_RUN_STYLE_NONE", "none"}, {VALADOC_CONTENT_RUN_STYLE_BOLD, "VALADOC_CONTENT_RUN_STYLE_BOLD", "bold"}, {VALADOC_CONTENT_RUN_STYLE_ITALIC, "VALADOC_CONTENT_RUN_STYLE_ITALIC", "italic"}, {VALADOC_CONTENT_RUN_STYLE_UNDERLINED, "VALADOC_CONTENT_RUN_STYLE_UNDERLINED", "underlined"}, {VALADOC_CONTENT_RUN_STYLE_MONOSPACED, "VALADOC_CONTENT_RUN_STYLE_MONOSPACED", "monospaced"}, {VALADOC_CONTENT_RUN_STYLE_STROKE, "VALADOC_CONTENT_RUN_STYLE_STROKE", "stroke"}, {VALADOC_CONTENT_RUN_STYLE_LANG_KEYWORD, "VALADOC_CONTENT_RUN_STYLE_LANG_KEYWORD", "lang-keyword"}, {VALADOC_CONTENT_RUN_STYLE_LANG_LITERAL, "VALADOC_CONTENT_RUN_STYLE_LANG_LITERAL", "lang-literal"}, {VALADOC_CONTENT_RUN_STYLE_LANG_BASIC_TYPE, "VALADOC_CONTENT_RUN_STYLE_LANG_BASIC_TYPE", "lang-basic-type"}, {VALADOC_CONTENT_RUN_STYLE_LANG_TYPE, "VALADOC_CONTENT_RUN_STYLE_LANG_TYPE", "lang-type"}, {VALADOC_CONTENT_RUN_STYLE_LANG_PREPROCESSOR, "VALADOC_CONTENT_RUN_STYLE_LANG_PREPROCESSOR", "lang-preprocessor"}, {VALADOC_CONTENT_RUN_STYLE_LANG_COMMENT, "VALADOC_CONTENT_RUN_STYLE_LANG_COMMENT", "lang-comment"}, {VALADOC_CONTENT_RUN_STYLE_LANG_ESCAPE, "VALADOC_CONTENT_RUN_STYLE_LANG_ESCAPE", "lang-escape"}, {VALADOC_CONTENT_RUN_STYLE_XML_ESCAPE, "VALADOC_CONTENT_RUN_STYLE_XML_ESCAPE", "xml-escape"}, {VALADOC_CONTENT_RUN_STYLE_XML_ELEMENT, "VALADOC_CONTENT_RUN_STYLE_XML_ELEMENT", "xml-element"}, {VALADOC_CONTENT_RUN_STYLE_XML_ATTRIBUTE, "VALADOC_CONTENT_RUN_STYLE_XML_ATTRIBUTE", "xml-attribute"}, {VALADOC_CONTENT_RUN_STYLE_XML_ATTRIBUTE_VALUE, "VALADOC_CONTENT_RUN_STYLE_XML_ATTRIBUTE_VALUE", "xml-attribute-value"}, {VALADOC_CONTENT_RUN_STYLE_XML_COMMENT, "VALADOC_CONTENT_RUN_STYLE_XML_COMMENT", "xml-comment"}, {VALADOC_CONTENT_RUN_STYLE_XML_CDATA, "VALADOC_CONTENT_RUN_STYLE_XML_CDATA", "xml-cdata"}, {0, NULL, NULL}};
		GType valadoc_content_run_style_type_id;
		valadoc_content_run_style_type_id = g_enum_register_static ("ValadocContentRunStyle", values);
		g_once_init_leave (&valadoc_content_run_style_type_id__volatile, valadoc_content_run_style_type_id);
	}
	return valadoc_content_run_style_type_id__volatile;
}


G_GNUC_INTERNAL ValadocContentRun* valadoc_content_run_construct (GType object_type, ValadocContentRunStyle style) {
	ValadocContentRun * self = NULL;
	ValadocContentRunStyle _tmp0_;
	self = (ValadocContentRun*) valadoc_content_inline_content_construct (object_type);
	_tmp0_ = style;
	self->priv->_style = _tmp0_;
	return self;
}


G_GNUC_INTERNAL ValadocContentRun* valadoc_content_run_new (ValadocContentRunStyle style) {
	return valadoc_content_run_construct (VALADOC_CONTENT_TYPE_RUN, style);
}


static void valadoc_content_run_real_check (ValadocContentContentElement* base, ValadocApiTree* api_root, ValadocApiNode* container, const gchar* file_path, ValadocErrorReporter* reporter, ValadocSettings* settings) {
	ValadocContentRun * self;
	ValadocApiTree* _tmp0_;
	ValadocApiNode* _tmp1_;
	const gchar* _tmp2_;
	ValadocErrorReporter* _tmp3_;
	ValadocSettings* _tmp4_;
	self = (ValadocContentRun*) base;
	g_return_if_fail (api_root != NULL);
	g_return_if_fail (container != NULL);
	g_return_if_fail (file_path != NULL);
	g_return_if_fail (reporter != NULL);
	g_return_if_fail (settings != NULL);
	_tmp0_ = api_root;
	_tmp1_ = container;
	_tmp2_ = file_path;
	_tmp3_ = reporter;
	_tmp4_ = settings;
	VALADOC_CONTENT_CONTENT_ELEMENT_CLASS (valadoc_content_run_parent_class)->check ((ValadocContentContentElement*) G_TYPE_CHECK_INSTANCE_CAST (self, VALADOC_CONTENT_TYPE_INLINE_CONTENT, ValadocContentInlineContent), _tmp0_, _tmp1_, _tmp2_, _tmp3_, _tmp4_);
}


static void valadoc_content_run_real_accept (ValadocContentContentElement* base, ValadocContentContentVisitor* visitor) {
	ValadocContentRun * self;
	ValadocContentContentVisitor* _tmp0_;
	self = (ValadocContentRun*) base;
	g_return_if_fail (visitor != NULL);
	_tmp0_ = visitor;
	valadoc_content_content_visitor_visit_run (_tmp0_, self);
}


static gpointer _vala_iterable_ref0 (gpointer self) {
	return self ? vala_iterable_ref (self) : NULL;
}


static ValadocContentContentElement* valadoc_content_run_real_copy (ValadocContentContentElement* base, ValadocContentContentElement* new_parent) {
	ValadocContentRun * self;
	ValadocContentContentElement* result = NULL;
	ValadocContentRun* run = NULL;
	ValadocContentRunStyle _tmp0_;
	ValadocContentRun* _tmp1_;
	ValadocContentRun* _tmp2_;
	ValadocContentContentElement* _tmp3_;
	self = (ValadocContentRun*) base;
	_tmp0_ = self->priv->_style;
	_tmp1_ = valadoc_content_run_new (_tmp0_);
	run = _tmp1_;
	_tmp2_ = run;
	_tmp3_ = new_parent;
	valadoc_content_content_element_set_parent ((ValadocContentContentElement*) _tmp2_, _tmp3_);
	{
		ValaList* _element_list = NULL;
		ValaList* _tmp4_;
		ValaList* _tmp5_;
		ValaList* _tmp6_;
		gint _element_size = 0;
		ValaList* _tmp7_;
		gint _tmp8_;
		gint _tmp9_;
		gint _element_index = 0;
		_tmp4_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) self);
		_tmp5_ = _tmp4_;
		_tmp6_ = _vala_iterable_ref0 (_tmp5_);
		_element_list = _tmp6_;
		_tmp7_ = _element_list;
		_tmp8_ = vala_collection_get_size ((ValaCollection*) _tmp7_);
		_tmp9_ = _tmp8_;
		_element_size = _tmp9_;
		_element_index = -1;
		while (TRUE) {
			gint _tmp10_;
			gint _tmp11_;
			gint _tmp12_;
			ValadocContentInline* element = NULL;
			ValaList* _tmp13_;
			gint _tmp14_;
			gpointer _tmp15_;
			ValadocContentInline* copy = NULL;
			ValadocContentInline* _tmp16_;
			ValadocContentRun* _tmp17_;
			ValadocContentContentElement* _tmp18_;
			ValadocContentInline* _tmp19_;
			ValadocContentRun* _tmp20_;
			ValaList* _tmp21_;
			ValaList* _tmp22_;
			ValadocContentInline* _tmp23_;
			_tmp10_ = _element_index;
			_element_index = _tmp10_ + 1;
			_tmp11_ = _element_index;
			_tmp12_ = _element_size;
			if (!(_tmp11_ < _tmp12_)) {
				break;
			}
			_tmp13_ = _element_list;
			_tmp14_ = _element_index;
			_tmp15_ = vala_list_get (_tmp13_, _tmp14_);
			element = (ValadocContentInline*) _tmp15_;
			_tmp16_ = element;
			_tmp17_ = run;
			_tmp18_ = valadoc_content_content_element_copy ((ValadocContentContentElement*) _tmp16_, (ValadocContentContentElement*) _tmp17_);
			_tmp19_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, VALADOC_CONTENT_TYPE_INLINE) ? ((ValadocContentInline*) _tmp18_) : NULL;
			if (_tmp19_ == NULL) {
				_g_object_unref0 (_tmp18_);
			}
			copy = _tmp19_;
			_tmp20_ = run;
			_tmp21_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp20_);
			_tmp22_ = _tmp21_;
			_tmp23_ = copy;
			vala_collection_add ((ValaCollection*) _tmp22_, _tmp23_);
			_g_object_unref0 (copy);
			_g_object_unref0 (element);
		}
		_vala_iterable_unref0 (_element_list);
	}
	result = (ValadocContentContentElement*) run;
	return result;
}


ValadocContentRunStyle valadoc_content_run_get_style (ValadocContentRun* self) {
	ValadocContentRunStyle result;
	ValadocContentRunStyle _tmp0_;
	g_return_val_if_fail (self != NULL, 0);
	_tmp0_ = self->priv->_style;
	result = _tmp0_;
	return result;
}


void valadoc_content_run_set_style (ValadocContentRun* self, ValadocContentRunStyle value) {
	g_return_if_fail (self != NULL);
	if (valadoc_content_run_get_style (self) != value) {
		ValadocContentRunStyle _tmp0_;
		_tmp0_ = value;
		self->priv->_style = _tmp0_;
		g_object_notify_by_pspec ((GObject *) self, valadoc_content_run_properties[VALADOC_CONTENT_RUN_STYLE_PROPERTY]);
	}
}


static void valadoc_content_run_class_init (ValadocContentRunClass * klass) {
	valadoc_content_run_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (ValadocContentRunPrivate));
	((ValadocContentContentElementClass *) klass)->check = (void (*) (ValadocContentContentElement *, ValadocApiTree*, ValadocApiNode*, const gchar*, ValadocErrorReporter*, ValadocSettings*)) valadoc_content_run_real_check;
	((ValadocContentContentElementClass *) klass)->accept = (void (*) (ValadocContentContentElement *, ValadocContentContentVisitor*)) valadoc_content_run_real_accept;
	((ValadocContentContentElementClass *) klass)->copy = (ValadocContentContentElement* (*) (ValadocContentContentElement *, ValadocContentContentElement*)) valadoc_content_run_real_copy;
	G_OBJECT_CLASS (klass)->get_property = _vala_valadoc_content_run_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_valadoc_content_run_set_property;
	G_OBJECT_CLASS (klass)->finalize = valadoc_content_run_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), VALADOC_CONTENT_RUN_STYLE_PROPERTY, valadoc_content_run_properties[VALADOC_CONTENT_RUN_STYLE_PROPERTY] = g_param_spec_enum ("style", "style", "style", VALADOC_CONTENT_RUN_TYPE_STYLE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void valadoc_content_run_valadoc_content_inline_interface_init (ValadocContentInlineIface * iface) {
	valadoc_content_run_valadoc_content_inline_parent_iface = g_type_interface_peek_parent (iface);
}


static void valadoc_content_run_instance_init (ValadocContentRun * self) {
	self->priv = VALADOC_CONTENT_RUN_GET_PRIVATE (self);
}


static void valadoc_content_run_finalize (GObject * obj) {
	ValadocContentRun * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
	G_OBJECT_CLASS (valadoc_content_run_parent_class)->finalize (obj);
}


GType valadoc_content_run_get_type (void) {
	static volatile gsize valadoc_content_run_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_content_run_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValadocContentRunClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_content_run_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValadocContentRun), 0, (GInstanceInitFunc) valadoc_content_run_instance_init, NULL };
		static const GInterfaceInfo valadoc_content_inline_info = { (GInterfaceInitFunc) valadoc_content_run_valadoc_content_inline_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType valadoc_content_run_type_id;
		valadoc_content_run_type_id = g_type_register_static (VALADOC_CONTENT_TYPE_INLINE_CONTENT, "ValadocContentRun", &g_define_type_info, 0);
		g_type_add_interface_static (valadoc_content_run_type_id, VALADOC_CONTENT_TYPE_INLINE, &valadoc_content_inline_info);
		g_once_init_leave (&valadoc_content_run_type_id__volatile, valadoc_content_run_type_id);
	}
	return valadoc_content_run_type_id__volatile;
}


static void _vala_valadoc_content_run_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	ValadocContentRun * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
	switch (property_id) {
		case VALADOC_CONTENT_RUN_STYLE_PROPERTY:
		g_value_set_enum (value, valadoc_content_run_get_style (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_valadoc_content_run_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	ValadocContentRun * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
	switch (property_id) {
		case VALADOC_CONTENT_RUN_STYLE_PROPERTY:
		valadoc_content_run_set_style (self, g_value_get_enum (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



