Logo Search packages:      
Sourcecode: vala-0.14 version File versions  Download package

valastruct.c

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

/* valastruct.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 <stdlib.h>
#include <string.h>
#include <valagee.h>


#define VALA_TYPE_CODE_NODE (vala_code_node_get_type ())
#define VALA_CODE_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CODE_NODE, ValaCodeNode))
#define VALA_CODE_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CODE_NODE, ValaCodeNodeClass))
#define VALA_IS_CODE_NODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CODE_NODE))
#define VALA_IS_CODE_NODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CODE_NODE))
#define VALA_CODE_NODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CODE_NODE, ValaCodeNodeClass))

typedef struct _ValaCodeNode ValaCodeNode;
typedef struct _ValaCodeNodeClass ValaCodeNodeClass;
typedef struct _ValaCodeNodePrivate ValaCodeNodePrivate;

#define VALA_TYPE_CODE_VISITOR (vala_code_visitor_get_type ())
#define VALA_CODE_VISITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CODE_VISITOR, ValaCodeVisitor))
#define VALA_CODE_VISITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CODE_VISITOR, ValaCodeVisitorClass))
#define VALA_IS_CODE_VISITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CODE_VISITOR))
#define VALA_IS_CODE_VISITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CODE_VISITOR))
#define VALA_CODE_VISITOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CODE_VISITOR, ValaCodeVisitorClass))

typedef struct _ValaCodeVisitor ValaCodeVisitor;
typedef struct _ValaCodeVisitorClass ValaCodeVisitorClass;

#define VALA_TYPE_CODE_CONTEXT (vala_code_context_get_type ())
#define VALA_CODE_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CODE_CONTEXT, ValaCodeContext))
#define VALA_CODE_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CODE_CONTEXT, ValaCodeContextClass))
#define VALA_IS_CODE_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CODE_CONTEXT))
#define VALA_IS_CODE_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CODE_CONTEXT))
#define VALA_CODE_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CODE_CONTEXT, ValaCodeContextClass))

typedef struct _ValaCodeContext ValaCodeContext;
typedef struct _ValaCodeContextClass ValaCodeContextClass;

#define VALA_TYPE_CODE_GENERATOR (vala_code_generator_get_type ())
#define VALA_CODE_GENERATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CODE_GENERATOR, ValaCodeGenerator))
#define VALA_CODE_GENERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CODE_GENERATOR, ValaCodeGeneratorClass))
#define VALA_IS_CODE_GENERATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CODE_GENERATOR))
#define VALA_IS_CODE_GENERATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CODE_GENERATOR))
#define VALA_CODE_GENERATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CODE_GENERATOR, ValaCodeGeneratorClass))

typedef struct _ValaCodeGenerator ValaCodeGenerator;
typedef struct _ValaCodeGeneratorClass ValaCodeGeneratorClass;

#define VALA_TYPE_DATA_TYPE (vala_data_type_get_type ())
#define VALA_DATA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_DATA_TYPE, ValaDataType))
#define VALA_DATA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_DATA_TYPE, ValaDataTypeClass))
#define VALA_IS_DATA_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_DATA_TYPE))
#define VALA_IS_DATA_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_DATA_TYPE))
#define VALA_DATA_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_DATA_TYPE, ValaDataTypeClass))

typedef struct _ValaDataType ValaDataType;
typedef struct _ValaDataTypeClass ValaDataTypeClass;

#define VALA_TYPE_EXPRESSION (vala_expression_get_type ())
#define VALA_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_EXPRESSION, ValaExpression))
#define VALA_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_EXPRESSION, ValaExpressionClass))
#define VALA_IS_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_EXPRESSION))
#define VALA_IS_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_EXPRESSION))
#define VALA_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_EXPRESSION, ValaExpressionClass))

typedef struct _ValaExpression ValaExpression;
typedef struct _ValaExpressionClass ValaExpressionClass;

#define VALA_TYPE_SYMBOL (vala_symbol_get_type ())
#define VALA_SYMBOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SYMBOL, ValaSymbol))
#define VALA_SYMBOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SYMBOL, ValaSymbolClass))
#define VALA_IS_SYMBOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SYMBOL))
#define VALA_IS_SYMBOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SYMBOL))
#define VALA_SYMBOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SYMBOL, ValaSymbolClass))

typedef struct _ValaSymbol ValaSymbol;
typedef struct _ValaSymbolClass ValaSymbolClass;

#define VALA_TYPE_VARIABLE (vala_variable_get_type ())
#define VALA_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_VARIABLE, ValaVariable))
#define VALA_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_VARIABLE, ValaVariableClass))
#define VALA_IS_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_VARIABLE))
#define VALA_IS_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_VARIABLE))
#define VALA_VARIABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_VARIABLE, ValaVariableClass))

typedef struct _ValaVariable ValaVariable;
typedef struct _ValaVariableClass ValaVariableClass;

#define VALA_TYPE_LOCAL_VARIABLE (vala_local_variable_get_type ())
#define VALA_LOCAL_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_LOCAL_VARIABLE, ValaLocalVariable))
#define VALA_LOCAL_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_LOCAL_VARIABLE, ValaLocalVariableClass))
#define VALA_IS_LOCAL_VARIABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_LOCAL_VARIABLE))
#define VALA_IS_LOCAL_VARIABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_LOCAL_VARIABLE))
#define VALA_LOCAL_VARIABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_LOCAL_VARIABLE, ValaLocalVariableClass))

typedef struct _ValaLocalVariable ValaLocalVariable;
typedef struct _ValaLocalVariableClass ValaLocalVariableClass;

#define VALA_TYPE_ATTRIBUTE (vala_attribute_get_type ())
#define VALA_ATTRIBUTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ATTRIBUTE, ValaAttribute))
#define VALA_ATTRIBUTE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ATTRIBUTE, ValaAttributeClass))
#define VALA_IS_ATTRIBUTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ATTRIBUTE))
#define VALA_IS_ATTRIBUTE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ATTRIBUTE))
#define VALA_ATTRIBUTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ATTRIBUTE, ValaAttributeClass))

typedef struct _ValaAttribute ValaAttribute;
typedef struct _ValaAttributeClass ValaAttributeClass;
typedef struct _ValaSymbolPrivate ValaSymbolPrivate;

#define VALA_TYPE_NAMESPACE (vala_namespace_get_type ())
#define VALA_NAMESPACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_NAMESPACE, ValaNamespace))
#define VALA_NAMESPACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_NAMESPACE, ValaNamespaceClass))
#define VALA_IS_NAMESPACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_NAMESPACE))
#define VALA_IS_NAMESPACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_NAMESPACE))
#define VALA_NAMESPACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_NAMESPACE, ValaNamespaceClass))

typedef struct _ValaNamespace ValaNamespace;
typedef struct _ValaNamespaceClass ValaNamespaceClass;

#define VALA_TYPE_TYPESYMBOL (vala_typesymbol_get_type ())
#define VALA_TYPESYMBOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TYPESYMBOL, ValaTypeSymbol))
#define VALA_TYPESYMBOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TYPESYMBOL, ValaTypeSymbolClass))
#define VALA_IS_TYPESYMBOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TYPESYMBOL))
#define VALA_IS_TYPESYMBOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TYPESYMBOL))
#define VALA_TYPESYMBOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TYPESYMBOL, ValaTypeSymbolClass))

typedef struct _ValaTypeSymbol ValaTypeSymbol;
typedef struct _ValaTypeSymbolClass ValaTypeSymbolClass;

#define VALA_TYPE_OBJECT_TYPE_SYMBOL (vala_object_type_symbol_get_type ())
#define VALA_OBJECT_TYPE_SYMBOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbol))
#define VALA_OBJECT_TYPE_SYMBOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbolClass))
#define VALA_IS_OBJECT_TYPE_SYMBOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_OBJECT_TYPE_SYMBOL))
#define VALA_IS_OBJECT_TYPE_SYMBOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_OBJECT_TYPE_SYMBOL))
#define VALA_OBJECT_TYPE_SYMBOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbolClass))

typedef struct _ValaObjectTypeSymbol ValaObjectTypeSymbol;
typedef struct _ValaObjectTypeSymbolClass ValaObjectTypeSymbolClass;

#define VALA_TYPE_CLASS (vala_class_get_type ())
#define VALA_CLASS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CLASS, ValaClass))
#define VALA_CLASS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CLASS, ValaClassClass))
#define VALA_IS_CLASS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CLASS))
#define VALA_IS_CLASS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CLASS))
#define VALA_CLASS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CLASS, ValaClassClass))

typedef struct _ValaClass ValaClass;
typedef struct _ValaClassClass ValaClassClass;

#define VALA_TYPE_INTERFACE (vala_interface_get_type ())
#define VALA_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_INTERFACE, ValaInterface))
#define VALA_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_INTERFACE, ValaInterfaceClass))
#define VALA_IS_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_INTERFACE))
#define VALA_IS_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_INTERFACE))
#define VALA_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_INTERFACE, ValaInterfaceClass))

typedef struct _ValaInterface ValaInterface;
typedef struct _ValaInterfaceClass ValaInterfaceClass;

#define VALA_TYPE_STRUCT (vala_struct_get_type ())
#define VALA_STRUCT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_STRUCT, ValaStruct))
#define VALA_STRUCT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_STRUCT, ValaStructClass))
#define VALA_IS_STRUCT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_STRUCT))
#define VALA_IS_STRUCT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_STRUCT))
#define VALA_STRUCT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_STRUCT, ValaStructClass))

typedef struct _ValaStruct ValaStruct;
typedef struct _ValaStructClass ValaStructClass;

#define VALA_TYPE_ENUM (vala_enum_get_type ())
#define VALA_ENUM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ENUM, ValaEnum))
#define VALA_ENUM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ENUM, ValaEnumClass))
#define VALA_IS_ENUM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ENUM))
#define VALA_IS_ENUM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ENUM))
#define VALA_ENUM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ENUM, ValaEnumClass))

typedef struct _ValaEnum ValaEnum;
typedef struct _ValaEnumClass ValaEnumClass;

#define VALA_TYPE_ERROR_DOMAIN (vala_error_domain_get_type ())
#define VALA_ERROR_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ERROR_DOMAIN, ValaErrorDomain))
#define VALA_ERROR_DOMAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ERROR_DOMAIN, ValaErrorDomainClass))
#define VALA_IS_ERROR_DOMAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ERROR_DOMAIN))
#define VALA_IS_ERROR_DOMAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ERROR_DOMAIN))
#define VALA_ERROR_DOMAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ERROR_DOMAIN, ValaErrorDomainClass))

typedef struct _ValaErrorDomain ValaErrorDomain;
typedef struct _ValaErrorDomainClass ValaErrorDomainClass;

#define VALA_TYPE_DELEGATE (vala_delegate_get_type ())
#define VALA_DELEGATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_DELEGATE, ValaDelegate))
#define VALA_DELEGATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_DELEGATE, ValaDelegateClass))
#define VALA_IS_DELEGATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_DELEGATE))
#define VALA_IS_DELEGATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_DELEGATE))
#define VALA_DELEGATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_DELEGATE, ValaDelegateClass))

typedef struct _ValaDelegate ValaDelegate;
typedef struct _ValaDelegateClass ValaDelegateClass;

#define VALA_TYPE_CONSTANT (vala_constant_get_type ())
#define VALA_CONSTANT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CONSTANT, ValaConstant))
#define VALA_CONSTANT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CONSTANT, ValaConstantClass))
#define VALA_IS_CONSTANT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CONSTANT))
#define VALA_IS_CONSTANT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CONSTANT))
#define VALA_CONSTANT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CONSTANT, ValaConstantClass))

typedef struct _ValaConstant ValaConstant;
typedef struct _ValaConstantClass ValaConstantClass;

#define VALA_TYPE_FIELD (vala_field_get_type ())
#define VALA_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_FIELD, ValaField))
#define VALA_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_FIELD, ValaFieldClass))
#define VALA_IS_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_FIELD))
#define VALA_IS_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_FIELD))
#define VALA_FIELD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_FIELD, ValaFieldClass))

typedef struct _ValaField ValaField;
typedef struct _ValaFieldClass ValaFieldClass;

#define VALA_TYPE_SUBROUTINE (vala_subroutine_get_type ())
#define VALA_SUBROUTINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SUBROUTINE, ValaSubroutine))
#define VALA_SUBROUTINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SUBROUTINE, ValaSubroutineClass))
#define VALA_IS_SUBROUTINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SUBROUTINE))
#define VALA_IS_SUBROUTINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SUBROUTINE))
#define VALA_SUBROUTINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SUBROUTINE, ValaSubroutineClass))

typedef struct _ValaSubroutine ValaSubroutine;
typedef struct _ValaSubroutineClass ValaSubroutineClass;

#define VALA_TYPE_METHOD (vala_method_get_type ())
#define VALA_METHOD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_METHOD, ValaMethod))
#define VALA_METHOD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_METHOD, ValaMethodClass))
#define VALA_IS_METHOD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_METHOD))
#define VALA_IS_METHOD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_METHOD))
#define VALA_METHOD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_METHOD, ValaMethodClass))

typedef struct _ValaMethod ValaMethod;
typedef struct _ValaMethodClass ValaMethodClass;

#define VALA_TYPE_PROPERTY (vala_property_get_type ())
#define VALA_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_PROPERTY, ValaProperty))
#define VALA_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_PROPERTY, ValaPropertyClass))
#define VALA_IS_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_PROPERTY))
#define VALA_IS_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_PROPERTY))
#define VALA_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_PROPERTY, ValaPropertyClass))

typedef struct _ValaProperty ValaProperty;
typedef struct _ValaPropertyClass ValaPropertyClass;

#define VALA_TYPE_SIGNAL (vala_signal_get_type ())
#define VALA_SIGNAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SIGNAL, ValaSignal))
#define VALA_SIGNAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SIGNAL, ValaSignalClass))
#define VALA_IS_SIGNAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SIGNAL))
#define VALA_IS_SIGNAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SIGNAL))
#define VALA_SIGNAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SIGNAL, ValaSignalClass))

typedef struct _ValaSignal ValaSignal;
typedef struct _ValaSignalClass ValaSignalClass;

#define VALA_TYPE_CONSTRUCTOR (vala_constructor_get_type ())
#define VALA_CONSTRUCTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CONSTRUCTOR, ValaConstructor))
#define VALA_CONSTRUCTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CONSTRUCTOR, ValaConstructorClass))
#define VALA_IS_CONSTRUCTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CONSTRUCTOR))
#define VALA_IS_CONSTRUCTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CONSTRUCTOR))
#define VALA_CONSTRUCTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CONSTRUCTOR, ValaConstructorClass))

typedef struct _ValaConstructor ValaConstructor;
typedef struct _ValaConstructorClass ValaConstructorClass;

#define VALA_TYPE_DESTRUCTOR (vala_destructor_get_type ())
#define VALA_DESTRUCTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_DESTRUCTOR, ValaDestructor))
#define VALA_DESTRUCTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_DESTRUCTOR, ValaDestructorClass))
#define VALA_IS_DESTRUCTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_DESTRUCTOR))
#define VALA_IS_DESTRUCTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_DESTRUCTOR))
#define VALA_DESTRUCTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_DESTRUCTOR, ValaDestructorClass))

typedef struct _ValaDestructor ValaDestructor;
typedef struct _ValaDestructorClass ValaDestructorClass;
typedef struct _ValaTypeSymbolPrivate ValaTypeSymbolPrivate;
typedef struct _ValaStructPrivate ValaStructPrivate;

#define VALA_TYPE_TYPEPARAMETER (vala_typeparameter_get_type ())
#define VALA_TYPEPARAMETER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TYPEPARAMETER, ValaTypeParameter))
#define VALA_TYPEPARAMETER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TYPEPARAMETER, ValaTypeParameterClass))
#define VALA_IS_TYPEPARAMETER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TYPEPARAMETER))
#define VALA_IS_TYPEPARAMETER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TYPEPARAMETER))
#define VALA_TYPEPARAMETER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TYPEPARAMETER, ValaTypeParameterClass))

typedef struct _ValaTypeParameter ValaTypeParameter;
typedef struct _ValaTypeParameterClass ValaTypeParameterClass;
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define VALA_TYPE_SOURCE_REFERENCE (vala_source_reference_get_type ())
#define VALA_SOURCE_REFERENCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SOURCE_REFERENCE, ValaSourceReference))
#define VALA_SOURCE_REFERENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SOURCE_REFERENCE, ValaSourceReferenceClass))
#define VALA_IS_SOURCE_REFERENCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SOURCE_REFERENCE))
#define VALA_IS_SOURCE_REFERENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SOURCE_REFERENCE))
#define VALA_SOURCE_REFERENCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SOURCE_REFERENCE, ValaSourceReferenceClass))

typedef struct _ValaSourceReference ValaSourceReference;
typedef struct _ValaSourceReferenceClass ValaSourceReferenceClass;

#define VALA_TYPE_COMMENT (vala_comment_get_type ())
#define VALA_COMMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_COMMENT, ValaComment))
#define VALA_COMMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_COMMENT, ValaCommentClass))
#define VALA_IS_COMMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_COMMENT))
#define VALA_IS_COMMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_COMMENT))
#define VALA_COMMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_COMMENT, ValaCommentClass))

typedef struct _ValaComment ValaComment;
typedef struct _ValaCommentClass ValaCommentClass;

#define VALA_TYPE_SCOPE (vala_scope_get_type ())
#define VALA_SCOPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SCOPE, ValaScope))
#define VALA_SCOPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SCOPE, ValaScopeClass))
#define VALA_IS_SCOPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SCOPE))
#define VALA_IS_SCOPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SCOPE))
#define VALA_SCOPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SCOPE, ValaScopeClass))

typedef struct _ValaScope ValaScope;
typedef struct _ValaScopeClass ValaScopeClass;

#define VALA_TYPE_SYMBOL_ACCESSIBILITY (vala_symbol_accessibility_get_type ())

#define VALA_TYPE_MEMBER_BINDING (vala_member_binding_get_type ())

#define VALA_TYPE_CREATION_METHOD (vala_creation_method_get_type ())
#define VALA_CREATION_METHOD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CREATION_METHOD, ValaCreationMethod))
#define VALA_CREATION_METHOD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CREATION_METHOD, ValaCreationMethodClass))
#define VALA_IS_CREATION_METHOD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CREATION_METHOD))
#define VALA_IS_CREATION_METHOD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CREATION_METHOD))
#define VALA_CREATION_METHOD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CREATION_METHOD, ValaCreationMethodClass))

typedef struct _ValaCreationMethod ValaCreationMethod;
typedef struct _ValaCreationMethodClass ValaCreationMethodClass;

#define VALA_TYPE_PARAMETER (vala_parameter_get_type ())
#define VALA_PARAMETER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_PARAMETER, ValaParameter))
#define VALA_PARAMETER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_PARAMETER, ValaParameterClass))
#define VALA_IS_PARAMETER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_PARAMETER))
#define VALA_IS_PARAMETER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_PARAMETER))
#define VALA_PARAMETER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_PARAMETER, ValaParameterClass))

typedef struct _ValaParameter ValaParameter;
typedef struct _ValaParameterClass ValaParameterClass;

#define VALA_TYPE_VOID_TYPE (vala_void_type_get_type ())
#define VALA_VOID_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_VOID_TYPE, ValaVoidType))
#define VALA_VOID_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_VOID_TYPE, ValaVoidTypeClass))
#define VALA_IS_VOID_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_VOID_TYPE))
#define VALA_IS_VOID_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_VOID_TYPE))
#define VALA_VOID_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_VOID_TYPE, ValaVoidTypeClass))

typedef struct _ValaVoidType ValaVoidType;
typedef struct _ValaVoidTypeClass ValaVoidTypeClass;

#define VALA_TYPE_PROFILE (vala_profile_get_type ())
#define _vala_code_context_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_context_unref (var), NULL)))

#define VALA_TYPE_VALUE_TYPE (vala_value_type_get_type ())
#define VALA_VALUE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_VALUE_TYPE, ValaValueType))
#define VALA_VALUE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_VALUE_TYPE, ValaValueTypeClass))
#define VALA_IS_VALUE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_VALUE_TYPE))
#define VALA_IS_VALUE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_VALUE_TYPE))
#define VALA_VALUE_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_VALUE_TYPE, ValaValueTypeClass))

typedef struct _ValaValueType ValaValueType;
typedef struct _ValaValueTypeClass ValaValueTypeClass;

#define VALA_TYPE_STRUCT_VALUE_TYPE (vala_struct_value_type_get_type ())
#define VALA_STRUCT_VALUE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_STRUCT_VALUE_TYPE, ValaStructValueType))
#define VALA_STRUCT_VALUE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_STRUCT_VALUE_TYPE, ValaStructValueTypeClass))
#define VALA_IS_STRUCT_VALUE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_STRUCT_VALUE_TYPE))
#define VALA_IS_STRUCT_VALUE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_STRUCT_VALUE_TYPE))
#define VALA_STRUCT_VALUE_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_STRUCT_VALUE_TYPE, ValaStructValueTypeClass))

typedef struct _ValaStructValueType ValaStructValueType;
typedef struct _ValaStructValueTypeClass ValaStructValueTypeClass;

#define VALA_TYPE_SEMANTIC_ANALYZER (vala_semantic_analyzer_get_type ())
#define VALA_SEMANTIC_ANALYZER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SEMANTIC_ANALYZER, ValaSemanticAnalyzer))
#define VALA_SEMANTIC_ANALYZER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SEMANTIC_ANALYZER, ValaSemanticAnalyzerClass))
#define VALA_IS_SEMANTIC_ANALYZER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SEMANTIC_ANALYZER))
#define VALA_IS_SEMANTIC_ANALYZER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SEMANTIC_ANALYZER))
#define VALA_SEMANTIC_ANALYZER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SEMANTIC_ANALYZER, ValaSemanticAnalyzerClass))

typedef struct _ValaSemanticAnalyzer ValaSemanticAnalyzer;
typedef struct _ValaSemanticAnalyzerClass ValaSemanticAnalyzerClass;

#define VALA_TYPE_SOURCE_FILE (vala_source_file_get_type ())
#define VALA_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SOURCE_FILE, ValaSourceFile))
#define VALA_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SOURCE_FILE, ValaSourceFileClass))
#define VALA_IS_SOURCE_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SOURCE_FILE))
#define VALA_IS_SOURCE_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SOURCE_FILE))
#define VALA_SOURCE_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SOURCE_FILE, ValaSourceFileClass))

typedef struct _ValaSourceFile ValaSourceFile;
typedef struct _ValaSourceFileClass ValaSourceFileClass;
#define _vala_source_file_unref0(var) ((var == NULL) ? NULL : (var = (vala_source_file_unref (var), NULL)))

struct _ValaCodeNode {
      GTypeInstance parent_instance;
      volatile int ref_count;
      ValaCodeNodePrivate * priv;
      GList* attributes;
};

struct _ValaCodeNodeClass {
      GTypeClass parent_class;
      void (*finalize) (ValaCodeNode *self);
      void (*accept) (ValaCodeNode* self, ValaCodeVisitor* visitor);
      void (*accept_children) (ValaCodeNode* self, ValaCodeVisitor* visitor);
      gboolean (*check) (ValaCodeNode* self, ValaCodeContext* context);
      void (*emit) (ValaCodeNode* self, ValaCodeGenerator* codegen);
      void (*replace_type) (ValaCodeNode* self, ValaDataType* old_type, ValaDataType* new_type);
      void (*replace_expression) (ValaCodeNode* self, ValaExpression* old_node, ValaExpression* new_node);
      gchar* (*to_string) (ValaCodeNode* self);
      void (*get_defined_variables) (ValaCodeNode* self, ValaCollection* collection);
      void (*get_used_variables) (ValaCodeNode* self, ValaCollection* collection);
};

struct _ValaSymbol {
      ValaCodeNode parent_instance;
      ValaSymbolPrivate * priv;
};

struct _ValaSymbolClass {
      ValaCodeNodeClass parent_class;
      gchar* (*get_cprefix) (ValaSymbol* self);
      gchar* (*get_lower_case_cname) (ValaSymbol* self, const gchar* infix);
      gchar* (*get_lower_case_cprefix) (ValaSymbol* self);
      ValaList* (*get_cheader_filenames) (ValaSymbol* self);
      gboolean (*is_instance_member) (ValaSymbol* self);
      gboolean (*is_class_member) (ValaSymbol* self);
      void (*process_deprecated_attribute) (ValaSymbol* self, ValaAttribute* attr);
      void (*process_experimental_attribute) (ValaSymbol* self, ValaAttribute* attr);
      void (*add_namespace) (ValaSymbol* self, ValaNamespace* ns);
      void (*add_class) (ValaSymbol* self, ValaClass* cl);
      void (*add_interface) (ValaSymbol* self, ValaInterface* iface);
      void (*add_struct) (ValaSymbol* self, ValaStruct* st);
      void (*add_enum) (ValaSymbol* self, ValaEnum* en);
      void (*add_error_domain) (ValaSymbol* self, ValaErrorDomain* edomain);
      void (*add_delegate) (ValaSymbol* self, ValaDelegate* d);
      void (*add_constant) (ValaSymbol* self, ValaConstant* constant);
      void (*add_field) (ValaSymbol* self, ValaField* f);
      void (*add_method) (ValaSymbol* self, ValaMethod* m);
      void (*add_property) (ValaSymbol* self, ValaProperty* prop);
      void (*add_signal) (ValaSymbol* self, ValaSignal* sig);
      void (*add_constructor) (ValaSymbol* self, ValaConstructor* c);
      void (*add_destructor) (ValaSymbol* self, ValaDestructor* d);
};

struct _ValaTypeSymbol {
      ValaSymbol parent_instance;
      ValaTypeSymbolPrivate * priv;
};

struct _ValaTypeSymbolClass {
      ValaSymbolClass parent_class;
      gchar* (*get_cname) (ValaTypeSymbol* self, gboolean const_type);
      gboolean (*is_reference_type) (ValaTypeSymbol* self);
      gchar* (*get_dup_function) (ValaTypeSymbol* self);
      gchar* (*get_free_function) (ValaTypeSymbol* self);
      gchar* (*get_copy_function) (ValaTypeSymbol* self);
      gchar* (*get_destroy_function) (ValaTypeSymbol* self);
      gboolean (*is_reference_counting) (ValaTypeSymbol* self);
      gchar* (*get_ref_function) (ValaTypeSymbol* self);
      gchar* (*get_unref_function) (ValaTypeSymbol* self);
      gchar* (*get_ref_sink_function) (ValaTypeSymbol* self);
      gchar* (*get_type_id) (ValaTypeSymbol* self);
      gchar* (*get_marshaller_type_name) (ValaTypeSymbol* self);
      gchar* (*get_param_spec_function) (ValaTypeSymbol* self);
      gchar* (*get_get_value_function) (ValaTypeSymbol* self);
      gchar* (*get_set_value_function) (ValaTypeSymbol* self);
      gchar* (*get_take_value_function) (ValaTypeSymbol* self);
      gchar* (*get_upper_case_cname) (ValaTypeSymbol* self, const gchar* infix);
      gchar* (*get_default_value) (ValaTypeSymbol* self);
      gboolean (*is_subtype_of) (ValaTypeSymbol* self, ValaTypeSymbol* t);
      gint (*get_type_parameter_index) (ValaTypeSymbol* self, const gchar* name);
};

struct _ValaStruct {
      ValaTypeSymbol parent_instance;
      ValaStructPrivate * priv;
};

struct _ValaStructClass {
      ValaTypeSymbolClass parent_class;
};

00518 struct _ValaStructPrivate {
      ValaList* type_parameters;
      ValaList* constants;
      ValaList* fields;
      ValaList* methods;
      ValaList* properties;
      ValaDataType* _base_type;
      gchar* cname;
      gchar* const_cname;
      gchar* type_id;
      gchar* lower_case_cprefix;
      gchar* lower_case_csuffix;
      gboolean boolean_type;
      gboolean integer_type;
      gboolean floating_type;
      gboolean decimal_floating_type;
      gint rank;
      gchar* marshaller_type_name;
      gchar* get_value_function;
      gchar* set_value_function;
      gchar* take_value_function;
      gchar* default_value;
      gchar* copy_function;
      gchar* destroy_function;
      ValaMethod* _default_construction_method;
      gboolean _is_immutable;
      gboolean _has_type_id;
      gint _width;
      gboolean _signed;
      gboolean _has_copy_function;
      gboolean _has_destroy_function;
};

typedef enum  {
      VALA_SYMBOL_ACCESSIBILITY_PRIVATE,
      VALA_SYMBOL_ACCESSIBILITY_INTERNAL,
      VALA_SYMBOL_ACCESSIBILITY_PROTECTED,
      VALA_SYMBOL_ACCESSIBILITY_PUBLIC
} ValaSymbolAccessibility;

typedef enum  {
      VALA_MEMBER_BINDING_INSTANCE,
      VALA_MEMBER_BINDING_CLASS,
      VALA_MEMBER_BINDING_STATIC
} ValaMemberBinding;

typedef enum  {
      VALA_PROFILE_POSIX,
      VALA_PROFILE_GOBJECT,
      VALA_PROFILE_DOVA
} ValaProfile;


static gpointer vala_struct_parent_class = NULL;

gpointer vala_code_node_ref (gpointer instance);
void vala_code_node_unref (gpointer instance);
GParamSpec* vala_param_spec_code_node (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_value_set_code_node (GValue* value, gpointer v_object);
void vala_value_take_code_node (GValue* value, gpointer v_object);
gpointer vala_value_get_code_node (const GValue* value);
GType vala_code_node_get_type (void) G_GNUC_CONST;
gpointer vala_code_visitor_ref (gpointer instance);
void vala_code_visitor_unref (gpointer instance);
GParamSpec* vala_param_spec_code_visitor (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_value_set_code_visitor (GValue* value, gpointer v_object);
void vala_value_take_code_visitor (GValue* value, gpointer v_object);
gpointer vala_value_get_code_visitor (const GValue* value);
GType vala_code_visitor_get_type (void) G_GNUC_CONST;
gpointer vala_code_context_ref (gpointer instance);
void vala_code_context_unref (gpointer instance);
GParamSpec* vala_param_spec_code_context (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_value_set_code_context (GValue* value, gpointer v_object);
void vala_value_take_code_context (GValue* value, gpointer v_object);
gpointer vala_value_get_code_context (const GValue* value);
GType vala_code_context_get_type (void) G_GNUC_CONST;
GType vala_code_generator_get_type (void) G_GNUC_CONST;
GType vala_data_type_get_type (void) G_GNUC_CONST;
GType vala_expression_get_type (void) G_GNUC_CONST;
GType vala_symbol_get_type (void) G_GNUC_CONST;
GType vala_variable_get_type (void) G_GNUC_CONST;
GType vala_local_variable_get_type (void) G_GNUC_CONST;
GType vala_attribute_get_type (void) G_GNUC_CONST;
GType vala_namespace_get_type (void) G_GNUC_CONST;
GType vala_typesymbol_get_type (void) G_GNUC_CONST;
GType vala_object_type_symbol_get_type (void) G_GNUC_CONST;
GType vala_class_get_type (void) G_GNUC_CONST;
GType vala_interface_get_type (void) G_GNUC_CONST;
GType vala_struct_get_type (void) G_GNUC_CONST;
GType vala_enum_get_type (void) G_GNUC_CONST;
GType vala_error_domain_get_type (void) G_GNUC_CONST;
GType vala_delegate_get_type (void) G_GNUC_CONST;
GType vala_constant_get_type (void) G_GNUC_CONST;
GType vala_field_get_type (void) G_GNUC_CONST;
GType vala_subroutine_get_type (void) G_GNUC_CONST;
GType vala_method_get_type (void) G_GNUC_CONST;
GType vala_property_get_type (void) G_GNUC_CONST;
GType vala_signal_get_type (void) G_GNUC_CONST;
GType vala_constructor_get_type (void) G_GNUC_CONST;
GType vala_destructor_get_type (void) G_GNUC_CONST;
GType vala_typeparameter_get_type (void) G_GNUC_CONST;
#define VALA_STRUCT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALA_TYPE_STRUCT, ValaStructPrivate))
enum  {
      VALA_STRUCT_DUMMY_PROPERTY
};
gpointer vala_source_reference_ref (gpointer instance);
void vala_source_reference_unref (gpointer instance);
GParamSpec* vala_param_spec_source_reference (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_value_set_source_reference (GValue* value, gpointer v_object);
void vala_value_take_source_reference (GValue* value, gpointer v_object);
gpointer vala_value_get_source_reference (const GValue* value);
GType vala_source_reference_get_type (void) G_GNUC_CONST;
gpointer vala_comment_ref (gpointer instance);
void vala_comment_unref (gpointer instance);
GParamSpec* vala_param_spec_comment (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_value_set_comment (GValue* value, gpointer v_object);
void vala_value_take_comment (GValue* value, gpointer v_object);
gpointer vala_value_get_comment (const GValue* value);
GType vala_comment_get_type (void) G_GNUC_CONST;
ValaStruct* vala_struct_new (const gchar* name, ValaSourceReference* source_reference, ValaComment* comment);
ValaStruct* vala_struct_construct (GType object_type, const gchar* name, ValaSourceReference* source_reference, ValaComment* comment);
ValaTypeSymbol* vala_typesymbol_construct (GType object_type, const gchar* name, ValaSourceReference* source_reference, ValaComment* comment);
void vala_struct_add_type_parameter (ValaStruct* self, ValaTypeParameter* p);
gpointer vala_scope_ref (gpointer instance);
void vala_scope_unref (gpointer instance);
GParamSpec* vala_param_spec_scope (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_value_set_scope (GValue* value, gpointer v_object);
void vala_value_take_scope (GValue* value, gpointer v_object);
gpointer vala_value_get_scope (const GValue* value);
GType vala_scope_get_type (void) G_GNUC_CONST;
ValaScope* vala_symbol_get_scope (ValaSymbol* self);
void vala_scope_add (ValaScope* self, const gchar* name, ValaSymbol* sym);
const gchar* vala_symbol_get_name (ValaSymbol* self);
ValaList* vala_struct_get_type_parameters (ValaStruct* self);
static void vala_struct_real_add_constant (ValaSymbol* base, ValaConstant* c);
static void vala_struct_real_add_field (ValaSymbol* base, ValaField* f);
GType vala_symbol_accessibility_get_type (void) G_GNUC_CONST;
void vala_symbol_set_access (ValaSymbol* self, ValaSymbolAccessibility value);
ValaList* vala_struct_get_fields (ValaStruct* self);
ValaList* vala_struct_get_constants (ValaStruct* self);
static void vala_struct_real_add_method (ValaSymbol* base, ValaMethod* m);
GType vala_member_binding_get_type (void) G_GNUC_CONST;
ValaMemberBinding vala_method_get_binding (ValaMethod* self);
GType vala_creation_method_get_type (void) G_GNUC_CONST;
ValaDataType* vala_semantic_analyzer_get_data_type_for_symbol (ValaTypeSymbol* sym);
ValaParameter* vala_parameter_new (const gchar* name, ValaDataType* variable_type, ValaSourceReference* source_reference);
ValaParameter* vala_parameter_construct (GType object_type, const gchar* name, ValaDataType* variable_type, ValaSourceReference* source_reference);
GType vala_parameter_get_type (void) G_GNUC_CONST;
void vala_method_set_this_parameter (ValaMethod* self, ValaParameter* value);
ValaParameter* vala_method_get_this_parameter (ValaMethod* self);
ValaDataType* vala_method_get_return_type (ValaMethod* self);
GType vala_void_type_get_type (void) G_GNUC_CONST;
ValaCodeContext* vala_code_context_get (void);
GType vala_profile_get_type (void) G_GNUC_CONST;
ValaProfile vala_code_context_get_profile (ValaCodeContext* self);
ValaList* vala_method_get_postconditions (ValaMethod* self);
ValaDataType* vala_data_type_copy (ValaDataType* self);
ValaSourceReference* vala_code_node_get_source_reference (ValaCodeNode* self);
ValaLocalVariable* vala_local_variable_new (ValaDataType* variable_type, const gchar* name, ValaExpression* initializer, ValaSourceReference* source_reference);
ValaLocalVariable* vala_local_variable_construct (GType object_type, ValaDataType* variable_type, const gchar* name, ValaExpression* initializer, ValaSourceReference* source_reference);
void vala_subroutine_set_result_var (ValaSubroutine* self, ValaLocalVariable* value);
ValaLocalVariable* vala_subroutine_get_result_var (ValaSubroutine* self);
void vala_local_variable_set_is_result (ValaLocalVariable* self, gboolean value);
void vala_struct_set_default_construction_method (ValaStruct* self, ValaMethod* value);
void vala_symbol_set_name (ValaSymbol* self, const gchar* value);
const gchar* vala_creation_method_get_class_name (ValaCreationMethod* self);
void vala_report_error (ValaSourceReference* source, const gchar* message);
gchar* vala_symbol_get_full_name (ValaSymbol* self);
void vala_code_node_set_error (ValaCodeNode* self, gboolean value);
ValaList* vala_struct_get_methods (ValaStruct* self);
static void vala_struct_real_add_property (ValaSymbol* base, ValaProperty* prop);
void vala_property_set_this_parameter (ValaProperty* self, ValaParameter* value);
ValaParameter* vala_property_get_this_parameter (ValaProperty* self);
ValaField* vala_property_get_field (ValaProperty* self);
void vala_symbol_add_field (ValaSymbol* self, ValaField* f);
ValaList* vala_struct_get_properties (ValaStruct* self);
static void vala_struct_real_accept (ValaCodeNode* base, ValaCodeVisitor* visitor);
void vala_code_visitor_visit_struct (ValaCodeVisitor* self, ValaStruct* st);
static void vala_struct_real_accept_children (ValaCodeNode* base, ValaCodeVisitor* visitor);
ValaDataType* vala_struct_get_base_type (ValaStruct* self);
void vala_code_node_accept (ValaCodeNode* self, ValaCodeVisitor* visitor);
static gchar* vala_struct_real_get_cname (ValaTypeSymbol* base, gboolean const_type);
ValaAttribute* vala_code_node_get_attribute (ValaCodeNode* self, const gchar* name);
gchar* vala_attribute_get_string (ValaAttribute* self, const gchar* name);
gchar* vala_struct_get_default_cname (ValaStruct* self);
void vala_struct_set_cname (ValaStruct* self, const gchar* cname);
ValaSymbol* vala_symbol_get_parent_symbol (ValaSymbol* self);
gchar* vala_symbol_get_cprefix (ValaSymbol* self);
static void vala_struct_set_const_cname (ValaStruct* self, const gchar* cname);
static gchar* vala_struct_real_get_lower_case_cprefix (ValaSymbol* base);
gchar* vala_symbol_get_lower_case_cname (ValaSymbol* self, const gchar* infix);
static gchar* vala_struct_get_lower_case_csuffix (ValaStruct* self);
gchar* vala_symbol_camel_case_to_lower_case (const gchar* camel_case);
static gchar* vala_struct_real_get_lower_case_cname (ValaSymbol* base, const gchar* infix);
gchar* vala_symbol_get_lower_case_cprefix (ValaSymbol* self);
static gchar* vala_struct_real_get_upper_case_cname (ValaTypeSymbol* base, const gchar* infix);
gboolean vala_struct_is_boolean_type (ValaStruct* self);
ValaStruct* vala_struct_get_base_struct (ValaStruct* self);
gboolean vala_struct_is_integer_type (ValaStruct* self);
gboolean vala_struct_is_floating_type (ValaStruct* self);
gboolean vala_struct_is_decimal_floating_type (ValaStruct* self);
gint vala_struct_get_rank (ValaStruct* self);
void vala_struct_set_rank (ValaStruct* self, gint rank);
static void vala_struct_process_gir_attribute (ValaStruct* self, ValaAttribute* a);
gboolean vala_attribute_has_argument (ValaAttribute* self, const gchar* name);
void vala_symbol_set_gir_name (ValaSymbol* self, const gchar* value);
static void vala_struct_process_ccode_attribute (ValaStruct* self, ValaAttribute* a);
void vala_symbol_add_cheader_filename (ValaSymbol* self, const gchar* filename);
gboolean vala_attribute_get_bool (ValaAttribute* self, const gchar* name);
void vala_struct_set_has_type_id (ValaStruct* self, gboolean value);
void vala_struct_set_type_id (ValaStruct* self, const gchar* name);
static void vala_struct_set_marshaller_type_name (ValaStruct* self, const gchar* name);
static void vala_struct_set_get_value_function (ValaStruct* self, const gchar* function);
static void vala_struct_set_set_value_function (ValaStruct* self, const gchar* function);
static void vala_struct_set_take_value_function (ValaStruct* self, const gchar* function);
static void vala_struct_set_default_value (ValaStruct* self, const gchar* value);
void vala_struct_set_copy_function (ValaStruct* self, const gchar* name);
void vala_struct_set_has_copy_function (ValaStruct* self, gboolean value);
void vala_struct_set_destroy_function (ValaStruct* self, const gchar* name);
void vala_struct_set_has_destroy_function (ValaStruct* self, gboolean value);
static void vala_struct_process_boolean_type_attribute (ValaStruct* self, ValaAttribute* a);
static void vala_struct_process_integer_type_attribute (ValaStruct* self, ValaAttribute* a);
gint vala_attribute_get_integer (ValaAttribute* self, const gchar* name);
void vala_struct_set_width (ValaStruct* self, gint value);
void vala_struct_set_signed (ValaStruct* self, gboolean value);
static void vala_struct_process_floating_type_attribute (ValaStruct* self, ValaAttribute* a);
void vala_struct_process_attributes (ValaStruct* self);
const gchar* vala_attribute_get_name (ValaAttribute* self);
void vala_struct_set_is_immutable (ValaStruct* self, gboolean value);
void vala_symbol_process_deprecated_attribute (ValaSymbol* self, ValaAttribute* attr);
void vala_symbol_process_experimental_attribute (ValaSymbol* self, ValaAttribute* attr);
static gchar* vala_struct_real_get_type_id (ValaTypeSymbol* base);
gboolean vala_struct_get_has_type_id (ValaStruct* self);
gchar* vala_typesymbol_get_type_id (ValaTypeSymbol* self);
gboolean vala_struct_is_simple_type (ValaStruct* self);
gchar* vala_typesymbol_get_upper_case_cname (ValaTypeSymbol* self, const gchar* infix);
static gchar* vala_struct_real_get_marshaller_type_name (ValaTypeSymbol* base);
gchar* vala_typesymbol_get_marshaller_type_name (ValaTypeSymbol* self);
static gchar* vala_struct_real_get_get_value_function (ValaTypeSymbol* base);
gchar* vala_typesymbol_get_get_value_function (ValaTypeSymbol* self);
static gchar* vala_struct_real_get_set_value_function (ValaTypeSymbol* base);
gchar* vala_typesymbol_get_set_value_function (ValaTypeSymbol* self);
static gchar* vala_struct_real_get_take_value_function (ValaTypeSymbol* base);
gchar* vala_typesymbol_get_take_value_function (ValaTypeSymbol* self);
static gchar* vala_struct_real_get_default_value (ValaTypeSymbol* base);
gchar* vala_typesymbol_get_default_value (ValaTypeSymbol* self);
static gint vala_struct_real_get_type_parameter_index (ValaTypeSymbol* base, const gchar* name);
void vala_struct_set_simple_type (ValaStruct* self, gboolean simple_type);
ValaAttribute* vala_attribute_new (const gchar* name, ValaSourceReference* source_reference);
ValaAttribute* vala_attribute_construct (GType object_type, const gchar* name, ValaSourceReference* source_reference);
static void vala_struct_real_replace_type (ValaCodeNode* base, ValaDataType* old_type, ValaDataType* new_type);
void vala_struct_set_base_type (ValaStruct* self, ValaDataType* value);
static gboolean vala_struct_real_is_subtype_of (ValaTypeSymbol* base, ValaTypeSymbol* t);
ValaTypeSymbol* vala_data_type_get_data_type (ValaDataType* self);
gboolean vala_typesymbol_is_subtype_of (ValaTypeSymbol* self, ValaTypeSymbol* t);
static gchar* vala_struct_real_get_dup_function (ValaTypeSymbol* base);
gboolean vala_symbol_get_external_package (ValaSymbol* self);
static gchar* vala_struct_real_get_free_function (ValaTypeSymbol* base);
gchar* vala_struct_get_default_copy_function (ValaStruct* self);
static gchar* vala_struct_real_get_copy_function (ValaTypeSymbol* base);
gchar* vala_struct_get_default_destroy_function (ValaStruct* self);
static gchar* vala_struct_real_get_destroy_function (ValaTypeSymbol* base);
gboolean vala_struct_is_disposable (ValaStruct* self);
ValaMemberBinding vala_field_get_binding (ValaField* self);
ValaDataType* vala_variable_get_variable_type (ValaVariable* self);
gboolean vala_data_type_is_disposable (ValaDataType* self);
static gboolean vala_struct_is_recursive_value_type (ValaStruct* self, ValaDataType* type);
GType vala_value_type_get_type (void) G_GNUC_CONST;
GType vala_struct_value_type_get_type (void) G_GNUC_CONST;
gboolean vala_data_type_get_nullable (ValaDataType* self);
ValaTypeSymbol* vala_value_type_get_type_symbol (ValaValueType* self);
static gboolean vala_struct_real_check (ValaCodeNode* base, ValaCodeContext* context);
gboolean vala_code_node_get_checked (ValaCodeNode* self);
gboolean vala_code_node_get_error (ValaCodeNode* self);
void vala_code_node_set_checked (ValaCodeNode* self, gboolean value);
GType vala_semantic_analyzer_get_type (void) G_GNUC_CONST;
ValaSemanticAnalyzer* vala_code_context_get_analyzer (ValaCodeContext* self);
gpointer vala_source_file_ref (gpointer instance);
void vala_source_file_unref (gpointer instance);
GParamSpec* vala_param_spec_source_file (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_value_set_source_file (GValue* value, gpointer v_object);
void vala_value_take_source_file (GValue* value, gpointer v_object);
gpointer vala_value_get_source_file (const GValue* value);
GType vala_source_file_get_type (void) G_GNUC_CONST;
ValaSourceFile* vala_semantic_analyzer_get_current_source_file (ValaSemanticAnalyzer* self);
ValaSymbol* vala_semantic_analyzer_get_current_symbol (ValaSemanticAnalyzer* self);
ValaSourceFile* vala_source_reference_get_file (ValaSourceReference* self);
void vala_semantic_analyzer_set_current_source_file (ValaSemanticAnalyzer* self, ValaSourceFile* value);
void vala_semantic_analyzer_set_current_symbol (ValaSemanticAnalyzer* self, ValaSymbol* value);
gboolean vala_code_node_check (ValaCodeNode* self, ValaCodeContext* context);
gchar* vala_code_node_to_string (ValaCodeNode* self);
ValaExpression* vala_variable_get_initializer (ValaVariable* self);
gboolean vala_symbol_get_external (ValaSymbol* self);
void vala_code_node_set_parent_node (ValaCodeNode* self, ValaCodeNode* value);
ValaMethod* vala_struct_get_default_construction_method (ValaStruct* self);
gboolean vala_struct_get_is_immutable (ValaStruct* self);
gint vala_struct_get_width (ValaStruct* self);
gboolean vala_struct_get_signed (ValaStruct* self);
gboolean vala_struct_get_has_copy_function (ValaStruct* self);
gboolean vala_struct_get_has_destroy_function (ValaStruct* self);
static void vala_struct_finalize (ValaCodeNode* obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);
static gint _vala_array_length (gpointer array);


/**
 * Creates a new struct.
 *
 * @param name             type name
 * @param source_reference reference to source code
 * @return                 newly created struct
 */
ValaStruct* vala_struct_construct (GType object_type, const gchar* name, ValaSourceReference* source_reference, ValaComment* comment) {
      ValaStruct* self = NULL;
      g_return_val_if_fail (name != NULL, NULL);
      self = (ValaStruct*) vala_typesymbol_construct (object_type, name, source_reference, comment);
      return self;
}


ValaStruct* vala_struct_new (const gchar* name, ValaSourceReference* source_reference, ValaComment* comment) {
      return vala_struct_construct (VALA_TYPE_STRUCT, name, source_reference, comment);
}


/**
 * Appends the specified parameter to the list of type parameters.
 *
 * @param p a type parameter
 */
void vala_struct_add_type_parameter (ValaStruct* self, ValaTypeParameter* p) {
      ValaScope* _tmp0_ = NULL;
      const gchar* _tmp1_ = NULL;
      g_return_if_fail (self != NULL);
      g_return_if_fail (p != NULL);
      vala_collection_add ((ValaCollection*) self->priv->type_parameters, p);
      _tmp0_ = vala_symbol_get_scope ((ValaSymbol*) self);
      _tmp1_ = vala_symbol_get_name ((ValaSymbol*) p);
      vala_scope_add (_tmp0_, _tmp1_, (ValaSymbol*) p);
}


/**
 * Returns a copy of the type parameter list.
 *
 * @return list of type parameters
 */
static gpointer _vala_iterable_ref0 (gpointer self) {
      return self ? vala_iterable_ref (self) : NULL;
}


ValaList* vala_struct_get_type_parameters (ValaStruct* self) {
      ValaList* result = NULL;
      ValaList* _tmp0_;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = _vala_iterable_ref0 (self->priv->type_parameters);
      result = _tmp0_;
      return result;
}


/**
 * Adds the specified constant as a member to this struct.
 *
 * @param c a constant
 */
static void vala_struct_real_add_constant (ValaSymbol* base, ValaConstant* c) {
      ValaStruct * self;
      ValaScope* _tmp0_ = NULL;
      const gchar* _tmp1_ = NULL;
      self = (ValaStruct*) base;
      g_return_if_fail (c != NULL);
      vala_collection_add ((ValaCollection*) self->priv->constants, c);
      _tmp0_ = vala_symbol_get_scope ((ValaSymbol*) self);
      _tmp1_ = vala_symbol_get_name ((ValaSymbol*) c);
      vala_scope_add (_tmp0_, _tmp1_, (ValaSymbol*) c);
}


/**
 * Adds the specified field as a member to this struct.
 *
 * @param f a field
 */
static void vala_struct_real_add_field (ValaSymbol* base, ValaField* f) {
      ValaStruct * self;
      ValaScope* _tmp0_ = NULL;
      const gchar* _tmp1_ = NULL;
      self = (ValaStruct*) base;
      g_return_if_fail (f != NULL);
      vala_symbol_set_access ((ValaSymbol*) f, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
      vala_collection_add ((ValaCollection*) self->priv->fields, f);
      _tmp0_ = vala_symbol_get_scope ((ValaSymbol*) self);
      _tmp1_ = vala_symbol_get_name ((ValaSymbol*) f);
      vala_scope_add (_tmp0_, _tmp1_, (ValaSymbol*) f);
}


/**
 * Returns a copy of the list of fields.
 *
 * @return list of fields
 */
ValaList* vala_struct_get_fields (ValaStruct* self) {
      ValaList* result = NULL;
      ValaList* _tmp0_;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = _vala_iterable_ref0 (self->priv->fields);
      result = _tmp0_;
      return result;
}


/**
 * Returns a copy of the list of constants.
 *
 * @return list of constants
 */
ValaList* vala_struct_get_constants (ValaStruct* self) {
      ValaList* result = NULL;
      ValaList* _tmp0_;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = _vala_iterable_ref0 (self->priv->constants);
      result = _tmp0_;
      return result;
}


/**
 * Adds the specified method as a member to this struct.
 *
 * @param m a method
 */
static gpointer _vala_code_node_ref0 (gpointer self) {
      return self ? vala_code_node_ref (self) : NULL;
}


static void vala_struct_real_add_method (ValaSymbol* base, ValaMethod* m) {
      ValaStruct * self;
      gboolean _tmp0_ = FALSE;
      ValaMemberBinding _tmp1_;
      gboolean _tmp10_ = FALSE;
      ValaDataType* _tmp11_ = NULL;
      ValaScope* _tmp39_ = NULL;
      const gchar* _tmp40_ = NULL;
      self = (ValaStruct*) base;
      g_return_if_fail (m != NULL);
      g_return_if_fail (m != NULL);
      _tmp1_ = vala_method_get_binding (m);
      if (_tmp1_ == VALA_MEMBER_BINDING_INSTANCE) {
            _tmp0_ = TRUE;
      } else {
            _tmp0_ = VALA_IS_CREATION_METHOD (m);
      }
      if (_tmp0_) {
            ValaDataType* _tmp2_ = NULL;
            ValaDataType* _tmp3_;
            ValaParameter* _tmp4_ = NULL;
            ValaParameter* _tmp5_;
            ValaScope* _tmp6_ = NULL;
            ValaParameter* _tmp7_ = NULL;
            const gchar* _tmp8_ = NULL;
            ValaParameter* _tmp9_ = NULL;
            _tmp2_ = vala_semantic_analyzer_get_data_type_for_symbol ((ValaTypeSymbol*) self);
            _tmp3_ = _tmp2_;
            _tmp4_ = vala_parameter_new ("this", _tmp3_, NULL);
            _tmp5_ = _tmp4_;
            vala_method_set_this_parameter (m, _tmp5_);
            _vala_code_node_unref0 (_tmp5_);
            _vala_code_node_unref0 (_tmp3_);
            _tmp6_ = vala_symbol_get_scope ((ValaSymbol*) m);
            _tmp7_ = vala_method_get_this_parameter (m);
            _tmp8_ = vala_symbol_get_name ((ValaSymbol*) _tmp7_);
            _tmp9_ = vala_method_get_this_parameter (m);
            vala_scope_add (_tmp6_, _tmp8_, (ValaSymbol*) _tmp9_);
      }
      _tmp11_ = vala_method_get_return_type (m);
      if (!VALA_IS_VOID_TYPE (_tmp11_)) {
            gboolean _tmp12_ = FALSE;
            ValaCodeContext* _tmp13_ = NULL;
            ValaCodeContext* _tmp14_;
            ValaProfile _tmp15_;
            gboolean _tmp16_;
            _tmp13_ = vala_code_context_get ();
            _tmp14_ = _tmp13_;
            _tmp15_ = vala_code_context_get_profile (_tmp14_);
            _tmp16_ = _tmp15_ == VALA_PROFILE_DOVA;
            _vala_code_context_unref0 (_tmp14_);
            if (_tmp16_) {
                  _tmp12_ = TRUE;
            } else {
                  ValaList* _tmp17_ = NULL;
                  ValaList* _tmp18_;
                  gint _tmp19_;
                  _tmp17_ = vala_method_get_postconditions (m);
                  _tmp18_ = _tmp17_;
                  _tmp19_ = vala_collection_get_size ((ValaCollection*) _tmp18_);
                  _tmp12_ = _tmp19_ > 0;
                  _vala_iterable_unref0 (_tmp18_);
            }
            _tmp10_ = _tmp12_;
      } else {
            _tmp10_ = FALSE;
      }
      if (_tmp10_) {
            ValaDataType* _tmp20_ = NULL;
            ValaDataType* _tmp21_ = NULL;
            ValaDataType* _tmp22_;
            ValaSourceReference* _tmp23_ = NULL;
            ValaLocalVariable* _tmp24_ = NULL;
            ValaLocalVariable* _tmp25_;
            ValaLocalVariable* _tmp26_ = NULL;
            _tmp20_ = vala_method_get_return_type (m);
            _tmp21_ = vala_data_type_copy (_tmp20_);
            _tmp22_ = _tmp21_;
            _tmp23_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
            _tmp24_ = vala_local_variable_new (_tmp22_, "result", NULL, _tmp23_);
            _tmp25_ = _tmp24_;
            vala_subroutine_set_result_var ((ValaSubroutine*) m, _tmp25_);
            _vala_code_node_unref0 (_tmp25_);
            _vala_code_node_unref0 (_tmp22_);
            _tmp26_ = vala_subroutine_get_result_var ((ValaSubroutine*) m);
            vala_local_variable_set_is_result (_tmp26_, TRUE);
      }
      if (VALA_IS_CREATION_METHOD (m)) {
            const gchar* _tmp27_ = NULL;
            ValaCreationMethod* _tmp28_;
            ValaCreationMethod* cm;
            gboolean _tmp29_ = FALSE;
            const gchar* _tmp30_ = NULL;
            _tmp27_ = vala_symbol_get_name ((ValaSymbol*) m);
            if (_tmp27_ == NULL) {
                  vala_struct_set_default_construction_method (self, m);
                  vala_symbol_set_name ((ValaSymbol*) m, ".new");
            }
            _tmp28_ = _vala_code_node_ref0 (VALA_CREATION_METHOD (m));
            cm = _tmp28_;
            _tmp30_ = vala_creation_method_get_class_name (cm);
            if (_tmp30_ != NULL) {
                  const gchar* _tmp31_ = NULL;
                  const gchar* _tmp32_ = NULL;
                  _tmp31_ = vala_creation_method_get_class_name (cm);
                  _tmp32_ = vala_symbol_get_name ((ValaSymbol*) self);
                  _tmp29_ = g_strcmp0 (_tmp31_, _tmp32_) != 0;
            } else {
                  _tmp29_ = FALSE;
            }
            if (_tmp29_) {
                  ValaSourceReference* _tmp33_ = NULL;
                  gchar* _tmp34_ = NULL;
                  gchar* _tmp35_;
                  const gchar* _tmp36_ = NULL;
                  gchar* _tmp37_ = NULL;
                  gchar* _tmp38_;
                  _tmp33_ = vala_code_node_get_source_reference ((ValaCodeNode*) m);
                  _tmp34_ = vala_symbol_get_full_name ((ValaSymbol*) self);
                  _tmp35_ = _tmp34_;
                  _tmp36_ = vala_creation_method_get_class_name (cm);
                  _tmp37_ = g_strdup_printf ("missing return type in method `%s.%s´", _tmp35_, _tmp36_);
                  _tmp38_ = _tmp37_;
                  vala_report_error (_tmp33_, _tmp38_);
                  _g_free0 (_tmp38_);
                  _g_free0 (_tmp35_);
                  vala_code_node_set_error ((ValaCodeNode*) m, TRUE);
                  _vala_code_node_unref0 (cm);
                  return;
            }
            _vala_code_node_unref0 (cm);
      }
      vala_collection_add ((ValaCollection*) self->priv->methods, m);
      _tmp39_ = vala_symbol_get_scope ((ValaSymbol*) self);
      _tmp40_ = vala_symbol_get_name ((ValaSymbol*) m);
      vala_scope_add (_tmp39_, _tmp40_, (ValaSymbol*) m);
}


/**
 * Returns a copy of the list of methods.
 *
 * @return list of methods
 */
ValaList* vala_struct_get_methods (ValaStruct* self) {
      ValaList* result = NULL;
      ValaList* _tmp0_;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = _vala_iterable_ref0 (self->priv->methods);
      result = _tmp0_;
      return result;
}


/**
 * Adds the specified property as a member to this struct.
 *
 * @param prop a property
 */
static void vala_struct_real_add_property (ValaSymbol* base, ValaProperty* prop) {
      ValaStruct * self;
      ValaScope* _tmp0_ = NULL;
      const gchar* _tmp1_ = NULL;
      ValaDataType* _tmp2_ = NULL;
      ValaDataType* _tmp3_;
      ValaParameter* _tmp4_ = NULL;
      ValaParameter* _tmp5_;
      ValaScope* _tmp6_ = NULL;
      ValaParameter* _tmp7_ = NULL;
      const gchar* _tmp8_ = NULL;
      ValaParameter* _tmp9_ = NULL;
      ValaField* _tmp10_ = NULL;
      self = (ValaStruct*) base;
      g_return_if_fail (prop != NULL);
      vala_collection_add ((ValaCollection*) self->priv->properties, prop);
      _tmp0_ = vala_symbol_get_scope ((ValaSymbol*) self);
      _tmp1_ = vala_symbol_get_name ((ValaSymbol*) prop);
      vala_scope_add (_tmp0_, _tmp1_, (ValaSymbol*) prop);
      _tmp2_ = vala_semantic_analyzer_get_data_type_for_symbol ((ValaTypeSymbol*) self);
      _tmp3_ = _tmp2_;
      _tmp4_ = vala_parameter_new ("this", _tmp3_, NULL);
      _tmp5_ = _tmp4_;
      vala_property_set_this_parameter (prop, _tmp5_);
      _vala_code_node_unref0 (_tmp5_);
      _vala_code_node_unref0 (_tmp3_);
      _tmp6_ = vala_symbol_get_scope ((ValaSymbol*) prop);
      _tmp7_ = vala_property_get_this_parameter (prop);
      _tmp8_ = vala_symbol_get_name ((ValaSymbol*) _tmp7_);
      _tmp9_ = vala_property_get_this_parameter (prop);
      vala_scope_add (_tmp6_, _tmp8_, (ValaSymbol*) _tmp9_);
      _tmp10_ = vala_property_get_field (prop);
      if (_tmp10_ != NULL) {
            ValaField* _tmp11_ = NULL;
            _tmp11_ = vala_property_get_field (prop);
            vala_symbol_add_field ((ValaSymbol*) self, _tmp11_);
      }
}


/**
 * Returns a copy of the list of properties.
 *
 * @return list of properties
 */
ValaList* vala_struct_get_properties (ValaStruct* self) {
      ValaList* result = NULL;
      ValaList* _tmp0_;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = _vala_iterable_ref0 (self->priv->properties);
      result = _tmp0_;
      return result;
}


static void vala_struct_real_accept (ValaCodeNode* base, ValaCodeVisitor* visitor) {
      ValaStruct * self;
      self = (ValaStruct*) base;
      g_return_if_fail (visitor != NULL);
      vala_code_visitor_visit_struct (visitor, self);
}


static void vala_struct_real_accept_children (ValaCodeNode* base, ValaCodeVisitor* visitor) {
      ValaStruct * self;
      ValaDataType* _tmp0_ = NULL;
      self = (ValaStruct*) base;
      g_return_if_fail (visitor != NULL);
      _tmp0_ = vala_struct_get_base_type (self);
      if (_tmp0_ != NULL) {
            ValaDataType* _tmp1_ = NULL;
            _tmp1_ = vala_struct_get_base_type (self);
            vala_code_node_accept ((ValaCodeNode*) _tmp1_, visitor);
      }
      {
            ValaList* _tmp2_;
            ValaList* _p_list;
            gint _tmp3_;
            gint _p_size;
            gint _p_index;
            _tmp2_ = _vala_iterable_ref0 (self->priv->type_parameters);
            _p_list = _tmp2_;
            _tmp3_ = vala_collection_get_size ((ValaCollection*) _p_list);
            _p_size = _tmp3_;
            _p_index = -1;
            while (TRUE) {
                  gpointer _tmp4_ = NULL;
                  ValaTypeParameter* p;
                  _p_index = _p_index + 1;
                  if (!(_p_index < _p_size)) {
                        break;
                  }
                  _tmp4_ = vala_list_get (_p_list, _p_index);
                  p = (ValaTypeParameter*) _tmp4_;
                  vala_code_node_accept ((ValaCodeNode*) p, visitor);
                  _vala_code_node_unref0 (p);
            }
            _vala_iterable_unref0 (_p_list);
      }
      {
            ValaList* _tmp5_;
            ValaList* _f_list;
            gint _tmp6_;
            gint _f_size;
            gint _f_index;
            _tmp5_ = _vala_iterable_ref0 (self->priv->fields);
            _f_list = _tmp5_;
            _tmp6_ = vala_collection_get_size ((ValaCollection*) _f_list);
            _f_size = _tmp6_;
            _f_index = -1;
            while (TRUE) {
                  gpointer _tmp7_ = NULL;
                  ValaField* f;
                  _f_index = _f_index + 1;
                  if (!(_f_index < _f_size)) {
                        break;
                  }
                  _tmp7_ = vala_list_get (_f_list, _f_index);
                  f = (ValaField*) _tmp7_;
                  vala_code_node_accept ((ValaCodeNode*) f, visitor);
                  _vala_code_node_unref0 (f);
            }
            _vala_iterable_unref0 (_f_list);
      }
      {
            ValaList* _tmp8_;
            ValaList* _c_list;
            gint _tmp9_;
            gint _c_size;
            gint _c_index;
            _tmp8_ = _vala_iterable_ref0 (self->priv->constants);
            _c_list = _tmp8_;
            _tmp9_ = vala_collection_get_size ((ValaCollection*) _c_list);
            _c_size = _tmp9_;
            _c_index = -1;
            while (TRUE) {
                  gpointer _tmp10_ = NULL;
                  ValaConstant* c;
                  _c_index = _c_index + 1;
                  if (!(_c_index < _c_size)) {
                        break;
                  }
                  _tmp10_ = vala_list_get (_c_list, _c_index);
                  c = (ValaConstant*) _tmp10_;
                  vala_code_node_accept ((ValaCodeNode*) c, visitor);
                  _vala_code_node_unref0 (c);
            }
            _vala_iterable_unref0 (_c_list);
      }
      {
            ValaList* _tmp11_;
            ValaList* _m_list;
            gint _tmp12_;
            gint _m_size;
            gint _m_index;
            _tmp11_ = _vala_iterable_ref0 (self->priv->methods);
            _m_list = _tmp11_;
            _tmp12_ = vala_collection_get_size ((ValaCollection*) _m_list);
            _m_size = _tmp12_;
            _m_index = -1;
            while (TRUE) {
                  gpointer _tmp13_ = NULL;
                  ValaMethod* m;
                  _m_index = _m_index + 1;
                  if (!(_m_index < _m_size)) {
                        break;
                  }
                  _tmp13_ = vala_list_get (_m_list, _m_index);
                  m = (ValaMethod*) _tmp13_;
                  vala_code_node_accept ((ValaCodeNode*) m, visitor);
                  _vala_code_node_unref0 (m);
            }
            _vala_iterable_unref0 (_m_list);
      }
      {
            ValaList* _tmp14_;
            ValaList* _prop_list;
            gint _tmp15_;
            gint _prop_size;
            gint _prop_index;
            _tmp14_ = _vala_iterable_ref0 (self->priv->properties);
            _prop_list = _tmp14_;
            _tmp15_ = vala_collection_get_size ((ValaCollection*) _prop_list);
            _prop_size = _tmp15_;
            _prop_index = -1;
            while (TRUE) {
                  gpointer _tmp16_ = NULL;
                  ValaProperty* prop;
                  _prop_index = _prop_index + 1;
                  if (!(_prop_index < _prop_size)) {
                        break;
                  }
                  _tmp16_ = vala_list_get (_prop_list, _prop_index);
                  prop = (ValaProperty*) _tmp16_;
                  vala_code_node_accept ((ValaCodeNode*) prop, visitor);
                  _vala_code_node_unref0 (prop);
            }
            _vala_iterable_unref0 (_prop_list);
      }
}


static gchar* vala_struct_real_get_cname (ValaTypeSymbol* base, gboolean const_type) {
      ValaStruct * self;
      gchar* result = NULL;
      gboolean _tmp0_ = FALSE;
      gchar* _tmp5_;
      self = (ValaStruct*) base;
      if (const_type) {
            _tmp0_ = self->priv->const_cname != NULL;
      } else {
            _tmp0_ = FALSE;
      }
      if (_tmp0_) {
            gchar* _tmp1_;
            _tmp1_ = g_strdup (self->priv->const_cname);
            result = _tmp1_;
            return result;
      }
      if (self->priv->cname == NULL) {
            ValaAttribute* _tmp2_ = NULL;
            ValaAttribute* attr;
            _tmp2_ = vala_code_node_get_attribute ((ValaCodeNode*) self, "CCode");
            attr = _tmp2_;
            if (attr != NULL) {
                  gchar* _tmp3_ = NULL;
                  _tmp3_ = vala_attribute_get_string (attr, "cname");
                  _g_free0 (self->priv->cname);
                  self->priv->cname = _tmp3_;
            }
            if (self->priv->cname == NULL) {
                  gchar* _tmp4_ = NULL;
                  _tmp4_ = vala_struct_get_default_cname (self);
                  _g_free0 (self->priv->cname);
                  self->priv->cname = _tmp4_;
            }
            _vala_code_node_unref0 (attr);
      }
      _tmp5_ = g_strdup (self->priv->cname);
      result = _tmp5_;
      return result;
}


void vala_struct_set_cname (ValaStruct* self, const gchar* cname) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (cname != NULL);
      _tmp0_ = g_strdup (cname);
      _g_free0 (self->priv->cname);
      self->priv->cname = _tmp0_;
}


/**
 * Returns the default name of this struct as it is used in C code.
 *
 * @return the name to be used in C code by default
 */
gchar* vala_struct_get_default_cname (ValaStruct* self) {
      gchar* result = NULL;
      ValaSymbol* _tmp0_ = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = vala_symbol_get_parent_symbol ((ValaSymbol*) self);
      if (_tmp0_ != NULL) {
            ValaSymbol* _tmp1_ = NULL;
            gchar* _tmp2_ = NULL;
            gchar* _tmp3_;
            const gchar* _tmp4_ = NULL;
            gchar* _tmp5_ = NULL;
            gchar* _tmp6_;
            _tmp1_ = vala_symbol_get_parent_symbol ((ValaSymbol*) self);
            _tmp2_ = vala_symbol_get_cprefix (_tmp1_);
            _tmp3_ = _tmp2_;
            _tmp4_ = vala_symbol_get_name ((ValaSymbol*) self);
            _tmp5_ = g_strdup_printf ("%s%s", _tmp3_, _tmp4_);
            _tmp6_ = _tmp5_;
            _g_free0 (_tmp3_);
            result = _tmp6_;
            return result;
      } else {
            const gchar* _tmp7_ = NULL;
            gchar* _tmp8_;
            _tmp7_ = vala_symbol_get_name ((ValaSymbol*) self);
            _tmp8_ = g_strdup (_tmp7_);
            result = _tmp8_;
            return result;
      }
}


static void vala_struct_set_const_cname (ValaStruct* self, const gchar* cname) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (cname != NULL);
      _tmp0_ = g_strdup (cname);
      _g_free0 (self->priv->const_cname);
      self->priv->const_cname = _tmp0_;
}


static gchar* vala_struct_real_get_lower_case_cprefix (ValaSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      gchar* _tmp3_;
      self = (ValaStruct*) base;
      if (self->priv->lower_case_cprefix == NULL) {
            gchar* _tmp0_ = NULL;
            gchar* _tmp1_;
            gchar* _tmp2_ = NULL;
            _tmp0_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) self, NULL);
            _tmp1_ = _tmp0_;
            _tmp2_ = g_strdup_printf ("%s_", _tmp1_);
            _g_free0 (self->priv->lower_case_cprefix);
            self->priv->lower_case_cprefix = _tmp2_;
            _g_free0 (_tmp1_);
      }
      _tmp3_ = g_strdup (self->priv->lower_case_cprefix);
      result = _tmp3_;
      return result;
}


static gchar* vala_struct_get_lower_case_csuffix (ValaStruct* self) {
      gchar* result = NULL;
      gchar* _tmp2_;
      g_return_val_if_fail (self != NULL, NULL);
      if (self->priv->lower_case_csuffix == NULL) {
            const gchar* _tmp0_ = NULL;
            gchar* _tmp1_ = NULL;
            _tmp0_ = vala_symbol_get_name ((ValaSymbol*) self);
            _tmp1_ = vala_symbol_camel_case_to_lower_case (_tmp0_);
            _g_free0 (self->priv->lower_case_csuffix);
            self->priv->lower_case_csuffix = _tmp1_;
      }
      _tmp2_ = g_strdup (self->priv->lower_case_csuffix);
      result = _tmp2_;
      return result;
}


static gchar* vala_struct_real_get_lower_case_cname (ValaSymbol* base, const gchar* infix) {
      ValaStruct * self;
      gchar* result = NULL;
      ValaSymbol* _tmp0_ = NULL;
      gchar* _tmp1_ = NULL;
      gchar* _tmp2_;
      gchar* _tmp3_ = NULL;
      gchar* _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* _tmp6_;
      self = (ValaStruct*) base;
      if (infix == NULL) {
            infix = "";
      }
      _tmp0_ = vala_symbol_get_parent_symbol ((ValaSymbol*) self);
      _tmp1_ = vala_symbol_get_lower_case_cprefix (_tmp0_);
      _tmp2_ = _tmp1_;
      _tmp3_ = vala_struct_get_lower_case_csuffix (self);
      _tmp4_ = _tmp3_;
      _tmp5_ = g_strdup_printf ("%s%s%s", _tmp2_, infix, _tmp4_);
      _tmp6_ = _tmp5_;
      _g_free0 (_tmp4_);
      _g_free0 (_tmp2_);
      result = _tmp6_;
      return result;
}


static gchar* vala_struct_real_get_upper_case_cname (ValaTypeSymbol* base, const gchar* infix) {
      ValaStruct * self;
      gchar* result = NULL;
      gchar* _tmp0_ = NULL;
      gchar* _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      self = (ValaStruct*) base;
      _tmp0_ = vala_symbol_get_lower_case_cname ((ValaSymbol*) self, infix);
      _tmp1_ = _tmp0_;
      _tmp2_ = g_utf8_strup (_tmp1_, (gssize) (-1));
      _tmp3_ = _tmp2_;
      _g_free0 (_tmp1_);
      result = _tmp3_;
      return result;
}


/**
 * Returns whether this is a boolean type.
 *
 * @return true if this is a boolean type, false otherwise
 */
gboolean vala_struct_is_boolean_type (ValaStruct* self) {
      gboolean result = FALSE;
      ValaDataType* _tmp0_ = NULL;
      g_return_val_if_fail (self != NULL, FALSE);
      _tmp0_ = vala_struct_get_base_type (self);
      if (_tmp0_ != NULL) {
            ValaStruct* _tmp1_ = NULL;
            ValaStruct* _tmp2_;
            ValaStruct* st;
            gboolean _tmp3_ = FALSE;
            _tmp1_ = vala_struct_get_base_struct (self);
            _tmp2_ = _vala_code_node_ref0 (_tmp1_);
            st = _tmp2_;
            if (st != NULL) {
                  gboolean _tmp4_;
                  _tmp4_ = vala_struct_is_boolean_type (st);
                  _tmp3_ = _tmp4_;
            } else {
                  _tmp3_ = FALSE;
            }
            if (_tmp3_) {
                  result = TRUE;
                  _vala_code_node_unref0 (st);
                  return result;
            }
            _vala_code_node_unref0 (st);
      }
      result = self->priv->boolean_type;
      return result;
}


/**
 * Returns whether this is an integer type.
 *
 * @return true if this is an integer type, false otherwise
 */
gboolean vala_struct_is_integer_type (ValaStruct* self) {
      gboolean result = FALSE;
      ValaDataType* _tmp0_ = NULL;
      g_return_val_if_fail (self != NULL, FALSE);
      _tmp0_ = vala_struct_get_base_type (self);
      if (_tmp0_ != NULL) {
            ValaStruct* _tmp1_ = NULL;
            ValaStruct* _tmp2_;
            ValaStruct* st;
            gboolean _tmp3_ = FALSE;
            _tmp1_ = vala_struct_get_base_struct (self);
            _tmp2_ = _vala_code_node_ref0 (_tmp1_);
            st = _tmp2_;
            if (st != NULL) {
                  gboolean _tmp4_;
                  _tmp4_ = vala_struct_is_integer_type (st);
                  _tmp3_ = _tmp4_;
            } else {
                  _tmp3_ = FALSE;
            }
            if (_tmp3_) {
                  result = TRUE;
                  _vala_code_node_unref0 (st);
                  return result;
            }
            _vala_code_node_unref0 (st);
      }
      result = self->priv->integer_type;
      return result;
}


/**
 * Returns whether this is a floating point type.
 *
 * @return true if this is a floating point type, false otherwise
 */
gboolean vala_struct_is_floating_type (ValaStruct* self) {
      gboolean result = FALSE;
      ValaDataType* _tmp0_ = NULL;
      g_return_val_if_fail (self != NULL, FALSE);
      _tmp0_ = vala_struct_get_base_type (self);
      if (_tmp0_ != NULL) {
            ValaStruct* _tmp1_ = NULL;
            ValaStruct* _tmp2_;
            ValaStruct* st;
            gboolean _tmp3_ = FALSE;
            _tmp1_ = vala_struct_get_base_struct (self);
            _tmp2_ = _vala_code_node_ref0 (_tmp1_);
            st = _tmp2_;
            if (st != NULL) {
                  gboolean _tmp4_;
                  _tmp4_ = vala_struct_is_floating_type (st);
                  _tmp3_ = _tmp4_;
            } else {
                  _tmp3_ = FALSE;
            }
            if (_tmp3_) {
                  result = TRUE;
                  _vala_code_node_unref0 (st);
                  return result;
            }
            _vala_code_node_unref0 (st);
      }
      result = self->priv->floating_type;
      return result;
}


gboolean vala_struct_is_decimal_floating_type (ValaStruct* self) {
      gboolean result = FALSE;
      ValaDataType* _tmp0_ = NULL;
      g_return_val_if_fail (self != NULL, FALSE);
      _tmp0_ = vala_struct_get_base_type (self);
      if (_tmp0_ != NULL) {
            ValaStruct* _tmp1_ = NULL;
            ValaStruct* _tmp2_;
            ValaStruct* st;
            gboolean _tmp3_ = FALSE;
            _tmp1_ = vala_struct_get_base_struct (self);
            _tmp2_ = _vala_code_node_ref0 (_tmp1_);
            st = _tmp2_;
            if (st != NULL) {
                  gboolean _tmp4_;
                  _tmp4_ = vala_struct_is_decimal_floating_type (st);
                  _tmp3_ = _tmp4_;
            } else {
                  _tmp3_ = FALSE;
            }
            if (_tmp3_) {
                  result = TRUE;
                  _vala_code_node_unref0 (st);
                  return result;
            }
            _vala_code_node_unref0 (st);
      }
      result = self->priv->decimal_floating_type;
      return result;
}


/**
 * Returns the rank of this integer or floating point type.
 *
 * @return the rank if this is an integer or floating point type
 */
gint vala_struct_get_rank (ValaStruct* self) {
      gint result = 0;
      g_return_val_if_fail (self != NULL, 0);
      result = self->priv->rank;
      return result;
}


/**
 * Sets the rank of this integer or floating point type.
 *
 * @return the rank if this is an integer or floating point type
 */
void vala_struct_set_rank (ValaStruct* self, gint rank) {
      g_return_if_fail (self != NULL);
      self->priv->rank = rank;
}


static void vala_struct_process_gir_attribute (ValaStruct* self, ValaAttribute* a) {
      gboolean _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (a != NULL);
      _tmp0_ = vala_attribute_has_argument (a, "name");
      if (_tmp0_) {
            gchar* _tmp1_ = NULL;
            gchar* _tmp2_;
            _tmp1_ = vala_attribute_get_string (a, "name");
            _tmp2_ = _tmp1_;
            vala_symbol_set_gir_name ((ValaSymbol*) self, _tmp2_);
            _g_free0 (_tmp2_);
      }
}


static void vala_struct_process_ccode_attribute (ValaStruct* self, ValaAttribute* a) {
      gboolean _tmp0_;
      gboolean _tmp3_;
      gboolean _tmp5_;
      gboolean _tmp10_;
      gboolean _tmp12_;
      gboolean _tmp15_;
      gboolean _tmp18_;
      gboolean _tmp21_;
      gboolean _tmp24_;
      gboolean _tmp27_;
      gboolean _tmp30_;
      gboolean _tmp33_;
      gboolean _tmp35_;
      gboolean _tmp38_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (a != NULL);
      _tmp0_ = vala_attribute_has_argument (a, "const_cname");
      if (_tmp0_) {
            gchar* _tmp1_ = NULL;
            gchar* _tmp2_;
            _tmp1_ = vala_attribute_get_string (a, "const_cname");
            _tmp2_ = _tmp1_;
            vala_struct_set_const_cname (self, _tmp2_);
            _g_free0 (_tmp2_);
      }
      _tmp3_ = vala_attribute_has_argument (a, "cprefix");
      if (_tmp3_) {
            gchar* _tmp4_ = NULL;
            _tmp4_ = vala_attribute_get_string (a, "cprefix");
            _g_free0 (self->priv->lower_case_cprefix);
            self->priv->lower_case_cprefix = _tmp4_;
      }
      _tmp5_ = vala_attribute_has_argument (a, "cheader_filename");
      if (_tmp5_) {
            gchar* _tmp6_ = NULL;
            gchar* val;
            gchar** _tmp7_;
            gchar** _tmp8_ = NULL;
            _tmp6_ = vala_attribute_get_string (a, "cheader_filename");
            val = _tmp6_;
            _tmp8_ = _tmp7_ = g_strsplit (val, ",", 0);
            {
                  gchar** filename_collection = NULL;
                  gint filename_collection_length1 = 0;
                  gint _filename_collection_size_ = 0;
                  gint filename_it;
                  filename_collection = _tmp8_;
                  filename_collection_length1 = _vala_array_length (_tmp7_);
                  for (filename_it = 0; filename_it < _vala_array_length (_tmp7_); filename_it = filename_it + 1) {
                        gchar* _tmp9_;
                        gchar* filename = NULL;
                        _tmp9_ = g_strdup (filename_collection[filename_it]);
                        filename = _tmp9_;
                        {
                              vala_symbol_add_cheader_filename ((ValaSymbol*) self, filename);
                              _g_free0 (filename);
                        }
                  }
                  filename_collection = (_vala_array_free (filename_collection, filename_collection_length1, (GDestroyNotify) g_free), NULL);
            }
            _g_free0 (val);
      }
      _tmp10_ = vala_attribute_has_argument (a, "has_type_id");
      if (_tmp10_) {
            gboolean _tmp11_;
            _tmp11_ = vala_attribute_get_bool (a, "has_type_id");
            vala_struct_set_has_type_id (self, _tmp11_);
      }
      _tmp12_ = vala_attribute_has_argument (a, "type_id");
      if (_tmp12_) {
            gchar* _tmp13_ = NULL;
            gchar* _tmp14_;
            _tmp13_ = vala_attribute_get_string (a, "type_id");
            _tmp14_ = _tmp13_;
            vala_struct_set_type_id (self, _tmp14_);
            _g_free0 (_tmp14_);
      }
      _tmp15_ = vala_attribute_has_argument (a, "marshaller_type_name");
      if (_tmp15_) {
            gchar* _tmp16_ = NULL;
            gchar* _tmp17_;
            _tmp16_ = vala_attribute_get_string (a, "marshaller_type_name");
            _tmp17_ = _tmp16_;
            vala_struct_set_marshaller_type_name (self, _tmp17_);
            _g_free0 (_tmp17_);
      }
      _tmp18_ = vala_attribute_has_argument (a, "get_value_function");
      if (_tmp18_) {
            gchar* _tmp19_ = NULL;
            gchar* _tmp20_;
            _tmp19_ = vala_attribute_get_string (a, "get_value_function");
            _tmp20_ = _tmp19_;
            vala_struct_set_get_value_function (self, _tmp20_);
            _g_free0 (_tmp20_);
      }
      _tmp21_ = vala_attribute_has_argument (a, "set_value_function");
      if (_tmp21_) {
            gchar* _tmp22_ = NULL;
            gchar* _tmp23_;
            _tmp22_ = vala_attribute_get_string (a, "set_value_function");
            _tmp23_ = _tmp22_;
            vala_struct_set_set_value_function (self, _tmp23_);
            _g_free0 (_tmp23_);
      }
      _tmp24_ = vala_attribute_has_argument (a, "take_value_function");
      if (_tmp24_) {
            gchar* _tmp25_ = NULL;
            gchar* _tmp26_;
            _tmp25_ = vala_attribute_get_string (a, "take_value_function");
            _tmp26_ = _tmp25_;
            vala_struct_set_take_value_function (self, _tmp26_);
            _g_free0 (_tmp26_);
      }
      _tmp27_ = vala_attribute_has_argument (a, "default_value");
      if (_tmp27_) {
            gchar* _tmp28_ = NULL;
            gchar* _tmp29_;
            _tmp28_ = vala_attribute_get_string (a, "default_value");
            _tmp29_ = _tmp28_;
            vala_struct_set_default_value (self, _tmp29_);
            _g_free0 (_tmp29_);
      }
      _tmp30_ = vala_attribute_has_argument (a, "copy_function");
      if (_tmp30_) {
            gchar* _tmp31_ = NULL;
            gchar* _tmp32_;
            _tmp31_ = vala_attribute_get_string (a, "copy_function");
            _tmp32_ = _tmp31_;
            vala_struct_set_copy_function (self, _tmp32_);
            _g_free0 (_tmp32_);
      }
      _tmp33_ = vala_attribute_has_argument (a, "has_copy_function");
      if (_tmp33_) {
            gboolean _tmp34_;
            _tmp34_ = vala_attribute_get_bool (a, "has_copy_function");
            vala_struct_set_has_copy_function (self, _tmp34_);
      }
      _tmp35_ = vala_attribute_has_argument (a, "destroy_function");
      if (_tmp35_) {
            gchar* _tmp36_ = NULL;
            gchar* _tmp37_;
            _tmp36_ = vala_attribute_get_string (a, "destroy_function");
            _tmp37_ = _tmp36_;
            vala_struct_set_destroy_function (self, _tmp37_);
            _g_free0 (_tmp37_);
      }
      _tmp38_ = vala_attribute_has_argument (a, "has_destroy_function");
      if (_tmp38_) {
            gboolean _tmp39_;
            _tmp39_ = vala_attribute_get_bool (a, "has_destroy_function");
            vala_struct_set_has_destroy_function (self, _tmp39_);
      }
}


static void vala_struct_process_boolean_type_attribute (ValaStruct* self, ValaAttribute* a) {
      g_return_if_fail (self != NULL);
      g_return_if_fail (a != NULL);
      self->priv->boolean_type = TRUE;
}


static void vala_struct_process_integer_type_attribute (ValaStruct* self, ValaAttribute* a) {
      gboolean _tmp0_;
      gboolean _tmp2_;
      gboolean _tmp4_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (a != NULL);
      self->priv->integer_type = TRUE;
      _tmp0_ = vala_attribute_has_argument (a, "rank");
      if (_tmp0_) {
            gint _tmp1_;
            _tmp1_ = vala_attribute_get_integer (a, "rank");
            self->priv->rank = _tmp1_;
      }
      _tmp2_ = vala_attribute_has_argument (a, "width");
      if (_tmp2_) {
            gint _tmp3_;
            _tmp3_ = vala_attribute_get_integer (a, "width");
            vala_struct_set_width (self, _tmp3_);
      }
      _tmp4_ = vala_attribute_has_argument (a, "signed");
      if (_tmp4_) {
            gboolean _tmp5_;
            _tmp5_ = vala_attribute_get_bool (a, "signed");
            vala_struct_set_signed (self, _tmp5_);
      }
}


static void vala_struct_process_floating_type_attribute (ValaStruct* self, ValaAttribute* a) {
      gboolean _tmp0_;
      gboolean _tmp2_;
      gboolean _tmp4_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (a != NULL);
      self->priv->floating_type = TRUE;
      _tmp0_ = vala_attribute_has_argument (a, "rank");
      if (_tmp0_) {
            gint _tmp1_;
            _tmp1_ = vala_attribute_get_integer (a, "rank");
            self->priv->rank = _tmp1_;
      }
      _tmp2_ = vala_attribute_has_argument (a, "decimal");
      if (_tmp2_) {
            gboolean _tmp3_;
            _tmp3_ = vala_attribute_get_bool (a, "decimal");
            self->priv->decimal_floating_type = _tmp3_;
      }
      _tmp4_ = vala_attribute_has_argument (a, "width");
      if (_tmp4_) {
            gint _tmp5_;
            _tmp5_ = vala_attribute_get_integer (a, "width");
            vala_struct_set_width (self, _tmp5_);
      }
}


/**
 * Process all associated attributes.
 */
void vala_struct_process_attributes (ValaStruct* self) {
      g_return_if_fail (self != NULL);
      {
            GList* a_collection = NULL;
            GList* a_it = NULL;
            a_collection = ((ValaCodeNode*) self)->attributes;
            for (a_it = a_collection; a_it != NULL; a_it = a_it->next) {
                  ValaAttribute* _tmp0_;
                  ValaAttribute* a = NULL;
                  _tmp0_ = _vala_code_node_ref0 ((ValaAttribute*) a_it->data);
                  a = _tmp0_;
                  {
                        const gchar* _tmp1_ = NULL;
                        _tmp1_ = vala_attribute_get_name (a);
                        if (g_strcmp0 (_tmp1_, "CCode") == 0) {
                              vala_struct_process_ccode_attribute (self, a);
                        } else {
                              const gchar* _tmp2_ = NULL;
                              _tmp2_ = vala_attribute_get_name (a);
                              if (g_strcmp0 (_tmp2_, "BooleanType") == 0) {
                                    vala_struct_process_boolean_type_attribute (self, a);
                              } else {
                                    const gchar* _tmp3_ = NULL;
                                    _tmp3_ = vala_attribute_get_name (a);
                                    if (g_strcmp0 (_tmp3_, "IntegerType") == 0) {
                                          vala_struct_process_integer_type_attribute (self, a);
                                    } else {
                                          const gchar* _tmp4_ = NULL;
                                          _tmp4_ = vala_attribute_get_name (a);
                                          if (g_strcmp0 (_tmp4_, "FloatingType") == 0) {
                                                vala_struct_process_floating_type_attribute (self, a);
                                          } else {
                                                const gchar* _tmp5_ = NULL;
                                                _tmp5_ = vala_attribute_get_name (a);
                                                if (g_strcmp0 (_tmp5_, "Immutable") == 0) {
                                                      vala_struct_set_is_immutable (self, TRUE);
                                                } else {
                                                      const gchar* _tmp6_ = NULL;
                                                      _tmp6_ = vala_attribute_get_name (a);
                                                      if (g_strcmp0 (_tmp6_, "Deprecated") == 0) {
                                                            vala_symbol_process_deprecated_attribute ((ValaSymbol*) self, a);
                                                      } else {
                                                            const gchar* _tmp7_ = NULL;
                                                            _tmp7_ = vala_attribute_get_name (a);
                                                            if (g_strcmp0 (_tmp7_, "GIR") == 0) {
                                                                  vala_struct_process_gir_attribute (self, a);
                                                            } else {
                                                                  const gchar* _tmp8_ = NULL;
                                                                  _tmp8_ = vala_attribute_get_name (a);
                                                                  if (g_strcmp0 (_tmp8_, "Experimental") == 0) {
                                                                        vala_symbol_process_experimental_attribute ((ValaSymbol*) self, a);
                                                                  }
                                                            }
                                                      }
                                                }
                                          }
                                    }
                              }
                        }
                        _vala_code_node_unref0 (a);
                  }
            }
      }
}


static gchar* vala_struct_real_get_type_id (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      gchar* _tmp7_;
      self = (ValaStruct*) base;
      if (self->priv->type_id == NULL) {
            if (!self->priv->_has_type_id) {
                  ValaDataType* _tmp0_ = NULL;
                  gboolean _tmp4_;
                  _tmp0_ = vala_struct_get_base_type (self);
                  if (_tmp0_ != NULL) {
                        ValaStruct* _tmp1_ = NULL;
                        ValaStruct* _tmp2_;
                        ValaStruct* st;
                        _tmp1_ = vala_struct_get_base_struct (self);
                        _tmp2_ = _vala_code_node_ref0 (_tmp1_);
                        st = _tmp2_;
                        if (st != NULL) {
                              gchar* _tmp3_ = NULL;
                              _tmp3_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) st);
                              result = _tmp3_;
                              _vala_code_node_unref0 (st);
                              return result;
                        }
                        _vala_code_node_unref0 (st);
                  }
                  _tmp4_ = vala_struct_is_simple_type (self);
                  if (_tmp4_) {
                        result = NULL;
                        return result;
                  } else {
                        gchar* _tmp5_;
                        _tmp5_ = g_strdup ("G_TYPE_POINTER");
                        result = _tmp5_;
                        return result;
                  }
            } else {
                  gchar* _tmp6_ = NULL;
                  _tmp6_ = vala_typesymbol_get_upper_case_cname ((ValaTypeSymbol*) self, "TYPE_");
                  _g_free0 (self->priv->type_id);
                  self->priv->type_id = _tmp6_;
            }
      }
      _tmp7_ = g_strdup (self->priv->type_id);
      result = _tmp7_;
      return result;
}


void vala_struct_set_type_id (ValaStruct* self, const gchar* name) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      _tmp0_ = g_strdup (name);
      _g_free0 (self->priv->type_id);
      self->priv->type_id = _tmp0_;
}


static gchar* vala_struct_real_get_marshaller_type_name (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      gchar* _tmp14_;
      self = (ValaStruct*) base;
      if (self->priv->marshaller_type_name == NULL) {
            ValaDataType* _tmp0_ = NULL;
            gboolean _tmp4_;
            _tmp0_ = vala_struct_get_base_type (self);
            if (_tmp0_ != NULL) {
                  ValaStruct* _tmp1_ = NULL;
                  ValaStruct* _tmp2_;
                  ValaStruct* st;
                  _tmp1_ = vala_struct_get_base_struct (self);
                  _tmp2_ = _vala_code_node_ref0 (_tmp1_);
                  st = _tmp2_;
                  if (st != NULL) {
                        gchar* _tmp3_ = NULL;
                        _tmp3_ = vala_typesymbol_get_marshaller_type_name ((ValaTypeSymbol*) st);
                        result = _tmp3_;
                        _vala_code_node_unref0 (st);
                        return result;
                  }
                  _vala_code_node_unref0 (st);
            }
            _tmp4_ = vala_struct_is_simple_type (self);
            if (_tmp4_) {
                  ValaSourceReference* _tmp5_ = NULL;
                  gchar* _tmp6_ = NULL;
                  gchar* _tmp7_;
                  gchar* _tmp8_ = NULL;
                  gchar* _tmp9_;
                  gchar* _tmp10_;
                  gchar* _tmp11_;
                  _tmp5_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
                  _tmp6_ = vala_symbol_get_full_name ((ValaSymbol*) self);
                  _tmp7_ = _tmp6_;
                  _tmp8_ = g_strdup_printf ("The type `%s` doesn't declare a marshaller type name", _tmp7_);
                  _tmp9_ = _tmp8_;
                  vala_report_error (_tmp5_, _tmp9_);
                  _g_free0 (_tmp9_);
                  _g_free0 (_tmp7_);
                  _tmp10_ = g_strdup ("");
                  _g_free0 (self->priv->marshaller_type_name);
                  self->priv->marshaller_type_name = _tmp10_;
                  _tmp11_ = g_strdup ("");
                  result = _tmp11_;
                  return result;
            } else {
                  if (self->priv->_has_type_id) {
                        gchar* _tmp12_;
                        _tmp12_ = g_strdup ("BOXED");
                        result = _tmp12_;
                        return result;
                  } else {
                        gchar* _tmp13_;
                        _tmp13_ = g_strdup ("POINTER");
                        result = _tmp13_;
                        return result;
                  }
            }
      }
      _tmp14_ = g_strdup (self->priv->marshaller_type_name);
      result = _tmp14_;
      return result;
}


static void vala_struct_set_marshaller_type_name (ValaStruct* self, const gchar* name) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      _tmp0_ = g_strdup (name);
      _g_free0 (self->priv->marshaller_type_name);
      self->priv->marshaller_type_name = _tmp0_;
}


static gchar* vala_struct_real_get_get_value_function (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      self = (ValaStruct*) base;
      if (self->priv->get_value_function == NULL) {
            ValaDataType* _tmp0_ = NULL;
            gboolean _tmp4_;
            _tmp0_ = vala_struct_get_base_type (self);
            if (_tmp0_ != NULL) {
                  ValaStruct* _tmp1_ = NULL;
                  ValaStruct* _tmp2_;
                  ValaStruct* st;
                  _tmp1_ = vala_struct_get_base_struct (self);
                  _tmp2_ = _vala_code_node_ref0 (_tmp1_);
                  st = _tmp2_;
                  if (st != NULL) {
                        gchar* _tmp3_ = NULL;
                        _tmp3_ = vala_typesymbol_get_get_value_function ((ValaTypeSymbol*) st);
                        result = _tmp3_;
                        _vala_code_node_unref0 (st);
                        return result;
                  }
                  _vala_code_node_unref0 (st);
            }
            _tmp4_ = vala_struct_is_simple_type (self);
            if (_tmp4_) {
                  ValaSourceReference* _tmp5_ = NULL;
                  gchar* _tmp6_ = NULL;
                  gchar* _tmp7_;
                  gchar* _tmp8_ = NULL;
                  gchar* _tmp9_;
                  gchar* _tmp10_;
                  gchar* _tmp11_;
                  _tmp5_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
                  _tmp6_ = vala_symbol_get_full_name ((ValaSymbol*) self);
                  _tmp7_ = _tmp6_;
                  _tmp8_ = g_strdup_printf ("The value type `%s` doesn't declare a GValue get function", _tmp7_);
                  _tmp9_ = _tmp8_;
                  vala_report_error (_tmp5_, _tmp9_);
                  _g_free0 (_tmp9_);
                  _g_free0 (_tmp7_);
                  _tmp10_ = g_strdup ("");
                  _g_free0 (self->priv->get_value_function);
                  self->priv->get_value_function = _tmp10_;
                  _tmp11_ = g_strdup ("");
                  result = _tmp11_;
                  return result;
            } else {
                  if (self->priv->_has_type_id) {
                        gchar* _tmp12_;
                        _tmp12_ = g_strdup ("g_value_get_boxed");
                        result = _tmp12_;
                        return result;
                  } else {
                        gchar* _tmp13_;
                        _tmp13_ = g_strdup ("g_value_get_pointer");
                        result = _tmp13_;
                        return result;
                  }
            }
      } else {
            gchar* _tmp14_;
            _tmp14_ = g_strdup (self->priv->get_value_function);
            result = _tmp14_;
            return result;
      }
}


static gchar* vala_struct_real_get_set_value_function (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      self = (ValaStruct*) base;
      if (self->priv->set_value_function == NULL) {
            ValaDataType* _tmp0_ = NULL;
            gboolean _tmp4_;
            _tmp0_ = vala_struct_get_base_type (self);
            if (_tmp0_ != NULL) {
                  ValaStruct* _tmp1_ = NULL;
                  ValaStruct* _tmp2_;
                  ValaStruct* st;
                  _tmp1_ = vala_struct_get_base_struct (self);
                  _tmp2_ = _vala_code_node_ref0 (_tmp1_);
                  st = _tmp2_;
                  if (st != NULL) {
                        gchar* _tmp3_ = NULL;
                        _tmp3_ = vala_typesymbol_get_set_value_function ((ValaTypeSymbol*) st);
                        result = _tmp3_;
                        _vala_code_node_unref0 (st);
                        return result;
                  }
                  _vala_code_node_unref0 (st);
            }
            _tmp4_ = vala_struct_is_simple_type (self);
            if (_tmp4_) {
                  ValaSourceReference* _tmp5_ = NULL;
                  gchar* _tmp6_ = NULL;
                  gchar* _tmp7_;
                  gchar* _tmp8_ = NULL;
                  gchar* _tmp9_;
                  gchar* _tmp10_;
                  gchar* _tmp11_;
                  _tmp5_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
                  _tmp6_ = vala_symbol_get_full_name ((ValaSymbol*) self);
                  _tmp7_ = _tmp6_;
                  _tmp8_ = g_strdup_printf ("The value type `%s` doesn't declare a GValue set function", _tmp7_);
                  _tmp9_ = _tmp8_;
                  vala_report_error (_tmp5_, _tmp9_);
                  _g_free0 (_tmp9_);
                  _g_free0 (_tmp7_);
                  _tmp10_ = g_strdup ("");
                  _g_free0 (self->priv->set_value_function);
                  self->priv->set_value_function = _tmp10_;
                  _tmp11_ = g_strdup ("");
                  result = _tmp11_;
                  return result;
            } else {
                  if (self->priv->_has_type_id) {
                        gchar* _tmp12_;
                        _tmp12_ = g_strdup ("g_value_set_boxed");
                        result = _tmp12_;
                        return result;
                  } else {
                        gchar* _tmp13_;
                        _tmp13_ = g_strdup ("g_value_set_pointer");
                        result = _tmp13_;
                        return result;
                  }
            }
      } else {
            gchar* _tmp14_;
            _tmp14_ = g_strdup (self->priv->set_value_function);
            result = _tmp14_;
            return result;
      }
}


static gchar* vala_struct_real_get_take_value_function (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      self = (ValaStruct*) base;
      if (self->priv->take_value_function == NULL) {
            ValaDataType* _tmp0_ = NULL;
            gboolean _tmp4_;
            _tmp0_ = vala_struct_get_base_type (self);
            if (_tmp0_ != NULL) {
                  ValaStruct* _tmp1_ = NULL;
                  ValaStruct* _tmp2_;
                  ValaStruct* st;
                  _tmp1_ = vala_struct_get_base_struct (self);
                  _tmp2_ = _vala_code_node_ref0 (_tmp1_);
                  st = _tmp2_;
                  if (st != NULL) {
                        gchar* _tmp3_ = NULL;
                        _tmp3_ = vala_typesymbol_get_take_value_function ((ValaTypeSymbol*) st);
                        result = _tmp3_;
                        _vala_code_node_unref0 (st);
                        return result;
                  }
                  _vala_code_node_unref0 (st);
            }
            _tmp4_ = vala_struct_is_simple_type (self);
            if (_tmp4_) {
                  ValaSourceReference* _tmp5_ = NULL;
                  gchar* _tmp6_ = NULL;
                  gchar* _tmp7_;
                  gchar* _tmp8_ = NULL;
                  gchar* _tmp9_;
                  gchar* _tmp10_;
                  gchar* _tmp11_;
                  _tmp5_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
                  _tmp6_ = vala_symbol_get_full_name ((ValaSymbol*) self);
                  _tmp7_ = _tmp6_;
                  _tmp8_ = g_strdup_printf ("The value type `%s` doesn't declare a GValue take function", _tmp7_);
                  _tmp9_ = _tmp8_;
                  vala_report_error (_tmp5_, _tmp9_);
                  _g_free0 (_tmp9_);
                  _g_free0 (_tmp7_);
                  _tmp10_ = g_strdup ("");
                  _g_free0 (self->priv->take_value_function);
                  self->priv->take_value_function = _tmp10_;
                  _tmp11_ = g_strdup ("");
                  result = _tmp11_;
                  return result;
            } else {
                  if (self->priv->_has_type_id) {
                        gchar* _tmp12_;
                        _tmp12_ = g_strdup ("g_value_take_boxed");
                        result = _tmp12_;
                        return result;
                  } else {
                        gchar* _tmp13_;
                        _tmp13_ = g_strdup ("g_value_take_pointer");
                        result = _tmp13_;
                        return result;
                  }
            }
      } else {
            gchar* _tmp14_;
            _tmp14_ = g_strdup (self->priv->take_value_function);
            result = _tmp14_;
            return result;
      }
}


static void vala_struct_set_get_value_function (ValaStruct* self, const gchar* function) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      _tmp0_ = g_strdup (function);
      _g_free0 (self->priv->get_value_function);
      self->priv->get_value_function = _tmp0_;
}


static void vala_struct_set_set_value_function (ValaStruct* self, const gchar* function) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      _tmp0_ = g_strdup (function);
      _g_free0 (self->priv->set_value_function);
      self->priv->set_value_function = _tmp0_;
}


static void vala_struct_set_take_value_function (ValaStruct* self, const gchar* function) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      _tmp0_ = g_strdup (function);
      _g_free0 (self->priv->take_value_function);
      self->priv->take_value_function = _tmp0_;
}


static gchar* vala_struct_real_get_default_value (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      ValaDataType* _tmp1_ = NULL;
      ValaCodeContext* _tmp5_ = NULL;
      ValaCodeContext* _tmp6_;
      ValaProfile _tmp7_;
      gboolean _tmp8_;
      self = (ValaStruct*) base;
      if (self->priv->default_value != NULL) {
            gchar* _tmp0_;
            _tmp0_ = g_strdup (self->priv->default_value);
            result = _tmp0_;
            return result;
      }
      _tmp1_ = vala_struct_get_base_type (self);
      if (_tmp1_ != NULL) {
            ValaStruct* _tmp2_ = NULL;
            ValaStruct* _tmp3_;
            ValaStruct* st;
            _tmp2_ = vala_struct_get_base_struct (self);
            _tmp3_ = _vala_code_node_ref0 (_tmp2_);
            st = _tmp3_;
            if (st != NULL) {
                  gchar* _tmp4_ = NULL;
                  _tmp4_ = vala_typesymbol_get_default_value ((ValaTypeSymbol*) st);
                  result = _tmp4_;
                  _vala_code_node_unref0 (st);
                  return result;
            }
            _vala_code_node_unref0 (st);
      }
      _tmp5_ = vala_code_context_get ();
      _tmp6_ = _tmp5_;
      _tmp7_ = vala_code_context_get_profile (_tmp6_);
      _tmp8_ = _tmp7_ == VALA_PROFILE_DOVA;
      _vala_code_context_unref0 (_tmp6_);
      if (_tmp8_) {
            if (self->priv->boolean_type) {
                  gchar* _tmp9_;
                  _tmp9_ = g_strdup ("false");
                  result = _tmp9_;
                  return result;
            } else {
                  gboolean _tmp10_ = FALSE;
                  if (self->priv->integer_type) {
                        _tmp10_ = TRUE;
                  } else {
                        _tmp10_ = self->priv->floating_type;
                  }
                  if (_tmp10_) {
                        gchar* _tmp11_;
                        _tmp11_ = g_strdup ("0");
                        result = _tmp11_;
                        return result;
                  }
            }
      }
      result = NULL;
      return result;
}


static void vala_struct_set_default_value (ValaStruct* self, const gchar* value) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      _tmp0_ = g_strdup (value);
      _g_free0 (self->priv->default_value);
      self->priv->default_value = _tmp0_;
}


static gint vala_struct_real_get_type_parameter_index (ValaTypeSymbol* base, const gchar* name) {
      ValaStruct * self;
      gint result = 0;
      gint i;
      self = (ValaStruct*) base;
      g_return_val_if_fail (name != NULL, 0);
      i = 0;
      {
            ValaList* _tmp0_;
            ValaList* _p_list;
            gint _tmp1_;
            gint _p_size;
            gint _p_index;
            _tmp0_ = _vala_iterable_ref0 (self->priv->type_parameters);
            _p_list = _tmp0_;
            _tmp1_ = vala_collection_get_size ((ValaCollection*) _p_list);
            _p_size = _tmp1_;
            _p_index = -1;
            while (TRUE) {
                  gpointer _tmp2_ = NULL;
                  ValaTypeParameter* p;
                  const gchar* _tmp3_ = NULL;
                  _p_index = _p_index + 1;
                  if (!(_p_index < _p_size)) {
                        break;
                  }
                  _tmp2_ = vala_list_get (_p_list, _p_index);
                  p = (ValaTypeParameter*) _tmp2_;
                  _tmp3_ = vala_symbol_get_name ((ValaSymbol*) p);
                  if (g_strcmp0 (_tmp3_, name) == 0) {
                        result = i;
                        _vala_code_node_unref0 (p);
                        _vala_iterable_unref0 (_p_list);
                        return result;
                  }
                  i++;
                  _vala_code_node_unref0 (p);
            }
            _vala_iterable_unref0 (_p_list);
      }
      result = -1;
      return result;
}


/**
 * Returns whether this struct is a simple type, i.e. whether
 * instances are passed by value.
 */
gboolean vala_struct_is_simple_type (ValaStruct* self) {
      gboolean result = FALSE;
      ValaDataType* _tmp0_ = NULL;
      ValaCodeContext* _tmp5_ = NULL;
      ValaCodeContext* _tmp6_;
      ValaProfile _tmp7_;
      gboolean _tmp8_;
      gboolean _tmp9_ = FALSE;
      gboolean _tmp10_ = FALSE;
      gboolean _tmp11_ = FALSE;
      g_return_val_if_fail (self != NULL, FALSE);
      _tmp0_ = vala_struct_get_base_type (self);
      if (_tmp0_ != NULL) {
            ValaStruct* _tmp1_ = NULL;
            ValaStruct* _tmp2_;
            ValaStruct* st;
            gboolean _tmp3_ = FALSE;
            _tmp1_ = vala_struct_get_base_struct (self);
            _tmp2_ = _vala_code_node_ref0 (_tmp1_);
            st = _tmp2_;
            if (st != NULL) {
                  gboolean _tmp4_;
                  _tmp4_ = vala_struct_is_simple_type (st);
                  _tmp3_ = _tmp4_;
            } else {
                  _tmp3_ = FALSE;
            }
            if (_tmp3_) {
                  result = TRUE;
                  _vala_code_node_unref0 (st);
                  return result;
            }
            _vala_code_node_unref0 (st);
      }
      _tmp5_ = vala_code_context_get ();
      _tmp6_ = _tmp5_;
      _tmp7_ = vala_code_context_get_profile (_tmp6_);
      _tmp8_ = _tmp7_ == VALA_PROFILE_DOVA;
      _vala_code_context_unref0 (_tmp6_);
      if (_tmp8_) {
            result = TRUE;
            return result;
      }
      if (self->priv->boolean_type) {
            _tmp11_ = TRUE;
      } else {
            _tmp11_ = self->priv->integer_type;
      }
      if (_tmp11_) {
            _tmp10_ = TRUE;
      } else {
            _tmp10_ = self->priv->floating_type;
      }
      if (_tmp10_) {
            _tmp9_ = TRUE;
      } else {
            ValaAttribute* _tmp12_ = NULL;
            ValaAttribute* _tmp13_;
            _tmp12_ = vala_code_node_get_attribute ((ValaCodeNode*) self, "SimpleType");
            _tmp13_ = _tmp12_;
            _tmp9_ = _tmp13_ != NULL;
            _vala_code_node_unref0 (_tmp13_);
      }
      result = _tmp9_;
      return result;
}


/**
 * Marks this struct as simple type, i.e. instances will be passed by
 * value.
 */
void vala_struct_set_simple_type (ValaStruct* self, gboolean simple_type) {
      ValaAttribute* _tmp0_ = NULL;
      g_return_if_fail (self != NULL);
      _tmp0_ = vala_attribute_new ("SimpleType", NULL);
      ((ValaCodeNode*) self)->attributes = g_list_append (((ValaCodeNode*) self)->attributes, _tmp0_);
}


static void vala_struct_real_replace_type (ValaCodeNode* base, ValaDataType* old_type, ValaDataType* new_type) {
      ValaStruct * self;
      ValaDataType* _tmp0_ = NULL;
      self = (ValaStruct*) base;
      g_return_if_fail (old_type != NULL);
      g_return_if_fail (new_type != NULL);
      _tmp0_ = vala_struct_get_base_type (self);
      if (_tmp0_ == old_type) {
            vala_struct_set_base_type (self, new_type);
      }
}


static gboolean vala_struct_real_is_subtype_of (ValaTypeSymbol* base, ValaTypeSymbol* t) {
      ValaStruct * self;
      gboolean result = FALSE;
      ValaDataType* _tmp0_ = NULL;
      self = (ValaStruct*) base;
      g_return_val_if_fail (t != NULL, FALSE);
      if (VALA_TYPESYMBOL (self) == t) {
            result = TRUE;
            return result;
      }
      _tmp0_ = vala_struct_get_base_type (self);
      if (_tmp0_ != NULL) {
            gboolean _tmp1_ = FALSE;
            ValaDataType* _tmp2_ = NULL;
            ValaTypeSymbol* _tmp3_ = NULL;
            _tmp2_ = vala_struct_get_base_type (self);
            _tmp3_ = vala_data_type_get_data_type (_tmp2_);
            if (_tmp3_ != NULL) {
                  ValaDataType* _tmp4_ = NULL;
                  ValaTypeSymbol* _tmp5_ = NULL;
                  gboolean _tmp6_;
                  _tmp4_ = vala_struct_get_base_type (self);
                  _tmp5_ = vala_data_type_get_data_type (_tmp4_);
                  _tmp6_ = vala_typesymbol_is_subtype_of (_tmp5_, t);
                  _tmp1_ = _tmp6_;
            } else {
                  _tmp1_ = FALSE;
            }
            if (_tmp1_) {
                  result = TRUE;
                  return result;
            }
      }
      result = FALSE;
      return result;
}


static gchar* vala_struct_real_get_dup_function (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      gboolean _tmp0_;
      self = (ValaStruct*) base;
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) self);
      if (_tmp0_) {
            result = NULL;
            return result;
      } else {
            gchar* _tmp1_ = NULL;
            gchar* _tmp2_;
            gchar* _tmp3_;
            gchar* _tmp4_;
            _tmp1_ = vala_symbol_get_lower_case_cprefix ((ValaSymbol*) self);
            _tmp2_ = _tmp1_;
            _tmp3_ = g_strconcat (_tmp2_, "dup", NULL);
            _tmp4_ = _tmp3_;
            _g_free0 (_tmp2_);
            result = _tmp4_;
            return result;
      }
}


static gchar* vala_struct_real_get_free_function (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      gboolean _tmp0_;
      self = (ValaStruct*) base;
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) self);
      if (_tmp0_) {
            result = NULL;
            return result;
      } else {
            gchar* _tmp1_ = NULL;
            gchar* _tmp2_;
            gchar* _tmp3_;
            gchar* _tmp4_;
            _tmp1_ = vala_symbol_get_lower_case_cprefix ((ValaSymbol*) self);
            _tmp2_ = _tmp1_;
            _tmp3_ = g_strconcat (_tmp2_, "free", NULL);
            _tmp4_ = _tmp3_;
            _g_free0 (_tmp2_);
            result = _tmp4_;
            return result;
      }
}


gchar* vala_struct_get_default_copy_function (ValaStruct* self) {
      gchar* result = NULL;
      gchar* _tmp0_ = NULL;
      gchar* _tmp1_;
      gchar* _tmp2_;
      gchar* _tmp3_;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = vala_symbol_get_lower_case_cprefix ((ValaSymbol*) self);
      _tmp1_ = _tmp0_;
      _tmp2_ = g_strconcat (_tmp1_, "copy", NULL);
      _tmp3_ = _tmp2_;
      _g_free0 (_tmp1_);
      result = _tmp3_;
      return result;
}


static gchar* vala_struct_real_get_copy_function (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      gchar* _tmp1_;
      self = (ValaStruct*) base;
      if (self->priv->copy_function == NULL) {
            gchar* _tmp0_ = NULL;
            _tmp0_ = vala_struct_get_default_copy_function (self);
            _g_free0 (self->priv->copy_function);
            self->priv->copy_function = _tmp0_;
      }
      _tmp1_ = g_strdup (self->priv->copy_function);
      result = _tmp1_;
      return result;
}


void vala_struct_set_copy_function (ValaStruct* self, const gchar* name) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (name != NULL);
      _tmp0_ = g_strdup (name);
      _g_free0 (self->priv->copy_function);
      self->priv->copy_function = _tmp0_;
}


gchar* vala_struct_get_default_destroy_function (ValaStruct* self) {
      gchar* result = NULL;
      gchar* _tmp0_ = NULL;
      gchar* _tmp1_;
      gchar* _tmp2_;
      gchar* _tmp3_;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = vala_symbol_get_lower_case_cprefix ((ValaSymbol*) self);
      _tmp1_ = _tmp0_;
      _tmp2_ = g_strconcat (_tmp1_, "destroy", NULL);
      _tmp3_ = _tmp2_;
      _g_free0 (_tmp1_);
      result = _tmp3_;
      return result;
}


static gchar* vala_struct_real_get_destroy_function (ValaTypeSymbol* base) {
      ValaStruct * self;
      gchar* result = NULL;
      gchar* _tmp1_;
      self = (ValaStruct*) base;
      if (self->priv->destroy_function == NULL) {
            gchar* _tmp0_ = NULL;
            _tmp0_ = vala_struct_get_default_destroy_function (self);
            _g_free0 (self->priv->destroy_function);
            self->priv->destroy_function = _tmp0_;
      }
      _tmp1_ = g_strdup (self->priv->destroy_function);
      result = _tmp1_;
      return result;
}


void vala_struct_set_destroy_function (ValaStruct* self, const gchar* name) {
      gchar* _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (name != NULL);
      _tmp0_ = g_strdup (name);
      _g_free0 (self->priv->destroy_function);
      self->priv->destroy_function = _tmp0_;
}


gboolean vala_struct_is_disposable (ValaStruct* self) {
      gboolean result = FALSE;
      g_return_val_if_fail (self != NULL, FALSE);
      if (self->priv->destroy_function != NULL) {
            result = TRUE;
            return result;
      }
      {
            ValaList* _tmp0_;
            ValaList* _f_list;
            gint _tmp1_;
            gint _f_size;
            gint _f_index;
            _tmp0_ = _vala_iterable_ref0 (self->priv->fields);
            _f_list = _tmp0_;
            _tmp1_ = vala_collection_get_size ((ValaCollection*) _f_list);
            _f_size = _tmp1_;
            _f_index = -1;
            while (TRUE) {
                  gpointer _tmp2_ = NULL;
                  ValaField* f;
                  gboolean _tmp3_ = FALSE;
                  ValaMemberBinding _tmp4_;
                  _f_index = _f_index + 1;
                  if (!(_f_index < _f_size)) {
                        break;
                  }
                  _tmp2_ = vala_list_get (_f_list, _f_index);
                  f = (ValaField*) _tmp2_;
                  _tmp4_ = vala_field_get_binding (f);
                  if (_tmp4_ == VALA_MEMBER_BINDING_INSTANCE) {
                        ValaDataType* _tmp5_ = NULL;
                        gboolean _tmp6_;
                        _tmp5_ = vala_variable_get_variable_type ((ValaVariable*) f);
                        _tmp6_ = vala_data_type_is_disposable (_tmp5_);
                        _tmp3_ = _tmp6_;
                  } else {
                        _tmp3_ = FALSE;
                  }
                  if (_tmp3_) {
                        result = TRUE;
                        _vala_code_node_unref0 (f);
                        _vala_iterable_unref0 (_f_list);
                        return result;
                  }
                  _vala_code_node_unref0 (f);
            }
            _vala_iterable_unref0 (_f_list);
      }
      result = FALSE;
      return result;
}


static gboolean vala_struct_is_recursive_value_type (ValaStruct* self, ValaDataType* type) {
      gboolean result = FALSE;
      ValaDataType* _tmp0_;
      ValaStructValueType* _tmp1_;
      ValaStructValueType* struct_type;
      gboolean _tmp2_ = FALSE;
      g_return_val_if_fail (self != NULL, FALSE);
      g_return_val_if_fail (type != NULL, FALSE);
      _tmp0_ = type;
      _tmp1_ = _vala_code_node_ref0 (VALA_IS_STRUCT_VALUE_TYPE (_tmp0_) ? ((ValaStructValueType*) _tmp0_) : NULL);
      struct_type = _tmp1_;
      if (struct_type != NULL) {
            gboolean _tmp3_;
            _tmp3_ = vala_data_type_get_nullable ((ValaDataType*) struct_type);
            _tmp2_ = !_tmp3_;
      } else {
            _tmp2_ = FALSE;
      }
      if (_tmp2_) {
            ValaTypeSymbol* _tmp4_ = NULL;
            ValaStruct* _tmp5_;
            ValaStruct* st;
            _tmp4_ = vala_value_type_get_type_symbol ((ValaValueType*) struct_type);
            _tmp5_ = _vala_code_node_ref0 (VALA_STRUCT (_tmp4_));
            st = _tmp5_;
            if (st == self) {
                  result = TRUE;
                  _vala_code_node_unref0 (st);
                  _vala_code_node_unref0 (struct_type);
                  return result;
            }
            {
                  ValaList* _tmp6_;
                  ValaList* _f_list;
                  gint _tmp7_;
                  gint _f_size;
                  gint _f_index;
                  _tmp6_ = _vala_iterable_ref0 (st->priv->fields);
                  _f_list = _tmp6_;
                  _tmp7_ = vala_collection_get_size ((ValaCollection*) _f_list);
                  _f_size = _tmp7_;
                  _f_index = -1;
                  while (TRUE) {
                        gpointer _tmp8_ = NULL;
                        ValaField* f;
                        gboolean _tmp9_ = FALSE;
                        ValaMemberBinding _tmp10_;
                        _f_index = _f_index + 1;
                        if (!(_f_index < _f_size)) {
                              break;
                        }
                        _tmp8_ = vala_list_get (_f_list, _f_index);
                        f = (ValaField*) _tmp8_;
                        _tmp10_ = vala_field_get_binding (f);
                        if (_tmp10_ == VALA_MEMBER_BINDING_INSTANCE) {
                              ValaDataType* _tmp11_ = NULL;
                              gboolean _tmp12_;
                              _tmp11_ = vala_variable_get_variable_type ((ValaVariable*) f);
                              _tmp12_ = vala_struct_is_recursive_value_type (self, _tmp11_);
                              _tmp9_ = _tmp12_;
                        } else {
                              _tmp9_ = FALSE;
                        }
                        if (_tmp9_) {
                              result = TRUE;
                              _vala_code_node_unref0 (f);
                              _vala_iterable_unref0 (_f_list);
                              _vala_code_node_unref0 (st);
                              _vala_code_node_unref0 (struct_type);
                              return result;
                        }
                        _vala_code_node_unref0 (f);
                  }
                  _vala_iterable_unref0 (_f_list);
            }
            _vala_code_node_unref0 (st);
      }
      result = FALSE;
      _vala_code_node_unref0 (struct_type);
      return result;
}


static gpointer _vala_source_file_ref0 (gpointer self) {
      return self ? vala_source_file_ref (self) : NULL;
}


static gboolean vala_struct_real_check (ValaCodeNode* base, ValaCodeContext* context) {
      ValaStruct * self;
      gboolean result = FALSE;
      gboolean _tmp0_;
      ValaSemanticAnalyzer* _tmp2_ = NULL;
      ValaSourceFile* _tmp3_ = NULL;
      ValaSourceFile* _tmp4_;
      ValaSourceFile* old_source_file;
      ValaSemanticAnalyzer* _tmp5_ = NULL;
      ValaSymbol* _tmp6_ = NULL;
      ValaSymbol* _tmp7_;
      ValaSymbol* old_symbol;
      ValaSourceReference* _tmp8_ = NULL;
      ValaSemanticAnalyzer* _tmp12_ = NULL;
      ValaDataType* _tmp13_ = NULL;
      gboolean _tmp48_ = FALSE;
      gboolean _tmp49_;
      ValaSemanticAnalyzer* _tmp72_ = NULL;
      ValaSemanticAnalyzer* _tmp73_ = NULL;
      gboolean _tmp74_;
      self = (ValaStruct*) base;
      g_return_val_if_fail (context != NULL, FALSE);
      _tmp0_ = vala_code_node_get_checked ((ValaCodeNode*) self);
      if (_tmp0_) {
            gboolean _tmp1_;
            _tmp1_ = vala_code_node_get_error ((ValaCodeNode*) self);
            result = !_tmp1_;
            return result;
      }
      vala_code_node_set_checked ((ValaCodeNode*) self, TRUE);
      vala_struct_process_attributes (self);
      _tmp2_ = vala_code_context_get_analyzer (context);
      _tmp3_ = vala_semantic_analyzer_get_current_source_file (_tmp2_);
      _tmp4_ = _vala_source_file_ref0 (_tmp3_);
      old_source_file = _tmp4_;
      _tmp5_ = vala_code_context_get_analyzer (context);
      _tmp6_ = vala_semantic_analyzer_get_current_symbol (_tmp5_);
      _tmp7_ = _vala_code_node_ref0 (_tmp6_);
      old_symbol = _tmp7_;
      _tmp8_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
      if (_tmp8_ != NULL) {
            ValaSemanticAnalyzer* _tmp9_ = NULL;
            ValaSourceReference* _tmp10_ = NULL;
            ValaSourceFile* _tmp11_ = NULL;
            _tmp9_ = vala_code_context_get_analyzer (context);
            _tmp10_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
            _tmp11_ = vala_source_reference_get_file (_tmp10_);
            vala_semantic_analyzer_set_current_source_file (_tmp9_, _tmp11_);
      }
      _tmp12_ = vala_code_context_get_analyzer (context);
      vala_semantic_analyzer_set_current_symbol (_tmp12_, (ValaSymbol*) self);
      _tmp13_ = vala_struct_get_base_type (self);
      if (_tmp13_ != NULL) {
            ValaDataType* _tmp14_ = NULL;
            ValaDataType* _tmp15_ = NULL;
            _tmp14_ = vala_struct_get_base_type (self);
            vala_code_node_check ((ValaCodeNode*) _tmp14_, context);
            _tmp15_ = vala_struct_get_base_type (self);
            if (!VALA_IS_VALUE_TYPE (_tmp15_)) {
                  ValaSourceReference* _tmp16_ = NULL;
                  ValaDataType* _tmp17_ = NULL;
                  gchar* _tmp18_ = NULL;
                  gchar* _tmp19_;
                  gchar* _tmp20_ = NULL;
                  gchar* _tmp21_;
                  gchar* _tmp22_ = NULL;
                  gchar* _tmp23_;
                  vala_code_node_set_error ((ValaCodeNode*) self, TRUE);
                  _tmp16_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
                  _tmp17_ = vala_struct_get_base_type (self);
                  _tmp18_ = vala_code_node_to_string ((ValaCodeNode*) _tmp17_);
                  _tmp19_ = _tmp18_;
                  _tmp20_ = vala_symbol_get_full_name ((ValaSymbol*) self);
                  _tmp21_ = _tmp20_;
                  _tmp22_ = g_strdup_printf ("The base type `%s` of struct `%s` is not a struct", _tmp19_, _tmp21_);
                  _tmp23_ = _tmp22_;
                  vala_report_error (_tmp16_, _tmp23_);
                  _g_free0 (_tmp23_);
                  _g_free0 (_tmp21_);
                  _g_free0 (_tmp19_);
                  result = FALSE;
                  _vala_code_node_unref0 (old_symbol);
                  _vala_source_file_unref0 (old_source_file);
                  return result;
            }
      }
      {
            ValaList* _tmp24_;
            ValaList* _p_list;
            gint _tmp25_;
            gint _p_size;
            gint _p_index;
            _tmp24_ = _vala_iterable_ref0 (self->priv->type_parameters);
            _p_list = _tmp24_;
            _tmp25_ = vala_collection_get_size ((ValaCollection*) _p_list);
            _p_size = _tmp25_;
            _p_index = -1;
            while (TRUE) {
                  gpointer _tmp26_ = NULL;
                  ValaTypeParameter* p;
                  _p_index = _p_index + 1;
                  if (!(_p_index < _p_size)) {
                        break;
                  }
                  _tmp26_ = vala_list_get (_p_list, _p_index);
                  p = (ValaTypeParameter*) _tmp26_;
                  vala_code_node_check ((ValaCodeNode*) p, context);
                  _vala_code_node_unref0 (p);
            }
            _vala_iterable_unref0 (_p_list);
      }
      {
            ValaList* _tmp27_;
            ValaList* _f_list;
            gint _tmp28_;
            gint _f_size;
            gint _f_index;
            _tmp27_ = _vala_iterable_ref0 (self->priv->fields);
            _f_list = _tmp27_;
            _tmp28_ = vala_collection_get_size ((ValaCollection*) _f_list);
            _f_size = _tmp28_;
            _f_index = -1;
            while (TRUE) {
                  gpointer _tmp29_ = NULL;
                  ValaField* f;
                  gboolean _tmp30_ = FALSE;
                  ValaMemberBinding _tmp31_;
                  gboolean _tmp35_ = FALSE;
                  ValaMemberBinding _tmp36_;
                  _f_index = _f_index + 1;
                  if (!(_f_index < _f_size)) {
                        break;
                  }
                  _tmp29_ = vala_list_get (_f_list, _f_index);
                  f = (ValaField*) _tmp29_;
                  vala_code_node_check ((ValaCodeNode*) f, context);
                  _tmp31_ = vala_field_get_binding (f);
                  if (_tmp31_ == VALA_MEMBER_BINDING_INSTANCE) {
                        ValaDataType* _tmp32_ = NULL;
                        gboolean _tmp33_;
                        _tmp32_ = vala_variable_get_variable_type ((ValaVariable*) f);
                        _tmp33_ = vala_struct_is_recursive_value_type (self, _tmp32_);
                        _tmp30_ = _tmp33_;
                  } else {
                        _tmp30_ = FALSE;
                  }
                  if (_tmp30_) {
                        ValaSourceReference* _tmp34_ = NULL;
                        vala_code_node_set_error ((ValaCodeNode*) self, TRUE);
                        _tmp34_ = vala_code_node_get_source_reference ((ValaCodeNode*) f);
                        vala_report_error (_tmp34_, "Recursive value types are not allowed");
                        result = FALSE;
                        _vala_code_node_unref0 (f);
                        _vala_iterable_unref0 (_f_list);
                        _vala_code_node_unref0 (old_symbol);
                        _vala_source_file_unref0 (old_source_file);
                        return result;
                  }
                  _tmp36_ = vala_field_get_binding (f);
                  if (_tmp36_ == VALA_MEMBER_BINDING_INSTANCE) {
                        ValaExpression* _tmp37_ = NULL;
                        _tmp37_ = vala_variable_get_initializer ((ValaVariable*) f);
                        _tmp35_ = _tmp37_ != NULL;
                  } else {
                        _tmp35_ = FALSE;
                  }
                  if (_tmp35_) {
                        ValaSourceReference* _tmp38_ = NULL;
                        vala_code_node_set_error ((ValaCodeNode*) self, TRUE);
                        _tmp38_ = vala_code_node_get_source_reference ((ValaCodeNode*) f);
                        vala_report_error (_tmp38_, "Instance field initializers not supported");
                        result = FALSE;
                        _vala_code_node_unref0 (f);
                        _vala_iterable_unref0 (_f_list);
                        _vala_code_node_unref0 (old_symbol);
                        _vala_source_file_unref0 (old_source_file);
                        return result;
                  }
                  _vala_code_node_unref0 (f);
            }
            _vala_iterable_unref0 (_f_list);
      }
      {
            ValaList* _tmp39_;
            ValaList* _c_list;
            gint _tmp40_;
            gint _c_size;
            gint _c_index;
            _tmp39_ = _vala_iterable_ref0 (self->priv->constants);
            _c_list = _tmp39_;
            _tmp40_ = vala_collection_get_size ((ValaCollection*) _c_list);
            _c_size = _tmp40_;
            _c_index = -1;
            while (TRUE) {
                  gpointer _tmp41_ = NULL;
                  ValaConstant* c;
                  _c_index = _c_index + 1;
                  if (!(_c_index < _c_size)) {
                        break;
                  }
                  _tmp41_ = vala_list_get (_c_list, _c_index);
                  c = (ValaConstant*) _tmp41_;
                  vala_code_node_check ((ValaCodeNode*) c, context);
                  _vala_code_node_unref0 (c);
            }
            _vala_iterable_unref0 (_c_list);
      }
      {
            ValaList* _tmp42_;
            ValaList* _m_list;
            gint _tmp43_;
            gint _m_size;
            gint _m_index;
            _tmp42_ = _vala_iterable_ref0 (self->priv->methods);
            _m_list = _tmp42_;
            _tmp43_ = vala_collection_get_size ((ValaCollection*) _m_list);
            _m_size = _tmp43_;
            _m_index = -1;
            while (TRUE) {
                  gpointer _tmp44_ = NULL;
                  ValaMethod* m;
                  _m_index = _m_index + 1;
                  if (!(_m_index < _m_size)) {
                        break;
                  }
                  _tmp44_ = vala_list_get (_m_list, _m_index);
                  m = (ValaMethod*) _tmp44_;
                  vala_code_node_check ((ValaCodeNode*) m, context);
                  _vala_code_node_unref0 (m);
            }
            _vala_iterable_unref0 (_m_list);
      }
      {
            ValaList* _tmp45_;
            ValaList* _prop_list;
            gint _tmp46_;
            gint _prop_size;
            gint _prop_index;
            _tmp45_ = _vala_iterable_ref0 (self->priv->properties);
            _prop_list = _tmp45_;
            _tmp46_ = vala_collection_get_size ((ValaCollection*) _prop_list);
            _prop_size = _tmp46_;
            _prop_index = -1;
            while (TRUE) {
                  gpointer _tmp47_ = NULL;
                  ValaProperty* prop;
                  _prop_index = _prop_index + 1;
                  if (!(_prop_index < _prop_size)) {
                        break;
                  }
                  _tmp47_ = vala_list_get (_prop_list, _prop_index);
                  prop = (ValaProperty*) _tmp47_;
                  vala_code_node_check ((ValaCodeNode*) prop, context);
                  _vala_code_node_unref0 (prop);
            }
            _vala_iterable_unref0 (_prop_list);
      }
      _tmp49_ = vala_symbol_get_external ((ValaSymbol*) self);
      if (!_tmp49_) {
            gboolean _tmp50_;
            _tmp50_ = vala_symbol_get_external_package ((ValaSymbol*) self);
            _tmp48_ = !_tmp50_;
      } else {
            _tmp48_ = FALSE;
      }
      if (_tmp48_) {
            gboolean _tmp51_ = FALSE;
            gboolean _tmp52_ = FALSE;
            gboolean _tmp53_ = FALSE;
            gboolean _tmp54_ = FALSE;
            ValaDataType* _tmp55_ = NULL;
            _tmp55_ = vala_struct_get_base_type (self);
            if (_tmp55_ == NULL) {
                  ValaList* _tmp56_ = NULL;
                  ValaList* _tmp57_;
                  gint _tmp58_;
                  _tmp56_ = vala_struct_get_fields (self);
                  _tmp57_ = _tmp56_;
                  _tmp58_ = vala_collection_get_size ((ValaCollection*) _tmp57_);
                  _tmp54_ = _tmp58_ == 0;
                  _vala_iterable_unref0 (_tmp57_);
            } else {
                  _tmp54_ = FALSE;
            }
            if (_tmp54_) {
                  gboolean _tmp59_;
                  _tmp59_ = vala_struct_is_boolean_type (self);
                  _tmp53_ = !_tmp59_;
            } else {
                  _tmp53_ = FALSE;
            }
            if (_tmp53_) {
                  gboolean _tmp60_;
                  _tmp60_ = vala_struct_is_integer_type (self);
                  _tmp52_ = !_tmp60_;
            } else {
                  _tmp52_ = FALSE;
            }
            if (_tmp52_) {
                  gboolean _tmp61_;
                  _tmp61_ = vala_struct_is_floating_type (self);
                  _tmp51_ = !_tmp61_;
            } else {
                  _tmp51_ = FALSE;
            }
            if (_tmp51_) {
                  ValaSourceReference* _tmp62_ = NULL;
                  const gchar* _tmp63_ = NULL;
                  gchar* _tmp64_ = NULL;
                  gchar* _tmp65_;
                  vala_code_node_set_error ((ValaCodeNode*) self, TRUE);
                  _tmp62_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
                  _tmp63_ = vala_symbol_get_name ((ValaSymbol*) self);
                  _tmp64_ = g_strdup_printf ("structs cannot be empty: %s", _tmp63_);
                  _tmp65_ = _tmp64_;
                  vala_report_error (_tmp62_, _tmp65_);
                  _g_free0 (_tmp65_);
            } else {
                  ValaDataType* _tmp66_ = NULL;
                  _tmp66_ = vala_struct_get_base_type (self);
                  if (_tmp66_ != NULL) {
                        {
                              ValaList* _tmp67_;
                              ValaList* _f_list;
                              gint _tmp68_;
                              gint _f_size;
                              gint _f_index;
                              _tmp67_ = _vala_iterable_ref0 (self->priv->fields);
                              _f_list = _tmp67_;
                              _tmp68_ = vala_collection_get_size ((ValaCollection*) _f_list);
                              _f_size = _tmp68_;
                              _f_index = -1;
                              while (TRUE) {
                                    gpointer _tmp69_ = NULL;
                                    ValaField* f;
                                    ValaMemberBinding _tmp70_;
                                    _f_index = _f_index + 1;
                                    if (!(_f_index < _f_size)) {
                                          break;
                                    }
                                    _tmp69_ = vala_list_get (_f_list, _f_index);
                                    f = (ValaField*) _tmp69_;
                                    _tmp70_ = vala_field_get_binding (f);
                                    if (_tmp70_ == VALA_MEMBER_BINDING_INSTANCE) {
                                          ValaSourceReference* _tmp71_ = NULL;
                                          vala_code_node_set_error ((ValaCodeNode*) self, TRUE);
                                          _tmp71_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
                                          vala_report_error (_tmp71_, "derived structs may not have instance fields");
                                          _vala_code_node_unref0 (f);
                                          break;
                                    }
                                    _vala_code_node_unref0 (f);
                              }
                              _vala_iterable_unref0 (_f_list);
                        }
                  }
            }
      }
      _tmp72_ = vala_code_context_get_analyzer (context);
      vala_semantic_analyzer_set_current_source_file (_tmp72_, old_source_file);
      _tmp73_ = vala_code_context_get_analyzer (context);
      vala_semantic_analyzer_set_current_symbol (_tmp73_, old_symbol);
      _tmp74_ = vala_code_node_get_error ((ValaCodeNode*) self);
      result = !_tmp74_;
      _vala_code_node_unref0 (old_symbol);
      _vala_source_file_unref0 (old_source_file);
      return result;
}


ValaDataType* vala_struct_get_base_type (ValaStruct* self) {
      ValaDataType* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_base_type;
      return result;
}


void vala_struct_set_base_type (ValaStruct* self, ValaDataType* value) {
      ValaDataType* _tmp0_;
      g_return_if_fail (self != NULL);
      vala_code_node_set_parent_node ((ValaCodeNode*) value, (ValaCodeNode*) self);
      _tmp0_ = _vala_code_node_ref0 (value);
      _vala_code_node_unref0 (self->priv->_base_type);
      self->priv->_base_type = _tmp0_;
}


ValaStruct* vala_struct_get_base_struct (ValaStruct* self) {
      ValaStruct* result;
      g_return_val_if_fail (self != NULL, NULL);
      if (self->priv->_base_type != NULL) {
            ValaTypeSymbol* _tmp0_ = NULL;
            ValaTypeSymbol* _tmp1_;
            _tmp0_ = vala_data_type_get_data_type (self->priv->_base_type);
            _tmp1_ = _tmp0_;
            result = VALA_IS_STRUCT (_tmp1_) ? ((ValaStruct*) _tmp1_) : NULL;
            return result;
      }
      result = NULL;
      return result;
}


ValaMethod* vala_struct_get_default_construction_method (ValaStruct* self) {
      ValaMethod* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_default_construction_method;
      return result;
}


void vala_struct_set_default_construction_method (ValaStruct* self, ValaMethod* value) {
      ValaMethod* _tmp0_;
      g_return_if_fail (self != NULL);
      _tmp0_ = _vala_code_node_ref0 (value);
      _vala_code_node_unref0 (self->priv->_default_construction_method);
      self->priv->_default_construction_method = _tmp0_;
}


gboolean vala_struct_get_is_immutable (ValaStruct* self) {
      gboolean result;
      g_return_val_if_fail (self != NULL, FALSE);
      result = self->priv->_is_immutable;
      return result;
}


void vala_struct_set_is_immutable (ValaStruct* self, gboolean value) {
      g_return_if_fail (self != NULL);
      self->priv->_is_immutable = value;
}


gboolean vala_struct_get_has_type_id (ValaStruct* self) {
      gboolean result;
      g_return_val_if_fail (self != NULL, FALSE);
      result = self->priv->_has_type_id;
      return result;
}


void vala_struct_set_has_type_id (ValaStruct* self, gboolean value) {
      g_return_if_fail (self != NULL);
      self->priv->_has_type_id = value;
}


gint vala_struct_get_width (ValaStruct* self) {
      gint result;
      g_return_val_if_fail (self != NULL, 0);
      result = self->priv->_width;
      return result;
}


void vala_struct_set_width (ValaStruct* self, gint value) {
      g_return_if_fail (self != NULL);
      self->priv->_width = value;
}


gboolean vala_struct_get_signed (ValaStruct* self) {
      gboolean result;
      g_return_val_if_fail (self != NULL, FALSE);
      result = self->priv->_signed;
      return result;
}


void vala_struct_set_signed (ValaStruct* self, gboolean value) {
      g_return_if_fail (self != NULL);
      self->priv->_signed = value;
}


gboolean vala_struct_get_has_copy_function (ValaStruct* self) {
      gboolean result;
      g_return_val_if_fail (self != NULL, FALSE);
      result = self->priv->_has_copy_function;
      return result;
}


void vala_struct_set_has_copy_function (ValaStruct* self, gboolean value) {
      g_return_if_fail (self != NULL);
      self->priv->_has_copy_function = value;
}


gboolean vala_struct_get_has_destroy_function (ValaStruct* self) {
      gboolean result;
      g_return_val_if_fail (self != NULL, FALSE);
      result = self->priv->_has_destroy_function;
      return result;
}


void vala_struct_set_has_destroy_function (ValaStruct* self, gboolean value) {
      g_return_if_fail (self != NULL);
      self->priv->_has_destroy_function = value;
}


static void vala_struct_class_init (ValaStructClass * klass) {
      vala_struct_parent_class = g_type_class_peek_parent (klass);
      VALA_CODE_NODE_CLASS (klass)->finalize = vala_struct_finalize;
      g_type_class_add_private (klass, sizeof (ValaStructPrivate));
      VALA_SYMBOL_CLASS (klass)->add_constant = vala_struct_real_add_constant;
      VALA_SYMBOL_CLASS (klass)->add_field = vala_struct_real_add_field;
      VALA_SYMBOL_CLASS (klass)->add_method = vala_struct_real_add_method;
      VALA_SYMBOL_CLASS (klass)->add_property = vala_struct_real_add_property;
      VALA_CODE_NODE_CLASS (klass)->accept = vala_struct_real_accept;
      VALA_CODE_NODE_CLASS (klass)->accept_children = vala_struct_real_accept_children;
      VALA_TYPESYMBOL_CLASS (klass)->get_cname = vala_struct_real_get_cname;
      VALA_SYMBOL_CLASS (klass)->get_lower_case_cprefix = vala_struct_real_get_lower_case_cprefix;
      VALA_SYMBOL_CLASS (klass)->get_lower_case_cname = vala_struct_real_get_lower_case_cname;
      VALA_TYPESYMBOL_CLASS (klass)->get_upper_case_cname = vala_struct_real_get_upper_case_cname;
      VALA_TYPESYMBOL_CLASS (klass)->get_type_id = vala_struct_real_get_type_id;
      VALA_TYPESYMBOL_CLASS (klass)->get_marshaller_type_name = vala_struct_real_get_marshaller_type_name;
      VALA_TYPESYMBOL_CLASS (klass)->get_get_value_function = vala_struct_real_get_get_value_function;
      VALA_TYPESYMBOL_CLASS (klass)->get_set_value_function = vala_struct_real_get_set_value_function;
      VALA_TYPESYMBOL_CLASS (klass)->get_take_value_function = vala_struct_real_get_take_value_function;
      VALA_TYPESYMBOL_CLASS (klass)->get_default_value = vala_struct_real_get_default_value;
      VALA_TYPESYMBOL_CLASS (klass)->get_type_parameter_index = vala_struct_real_get_type_parameter_index;
      VALA_CODE_NODE_CLASS (klass)->replace_type = vala_struct_real_replace_type;
      VALA_TYPESYMBOL_CLASS (klass)->is_subtype_of = vala_struct_real_is_subtype_of;
      VALA_TYPESYMBOL_CLASS (klass)->get_dup_function = vala_struct_real_get_dup_function;
      VALA_TYPESYMBOL_CLASS (klass)->get_free_function = vala_struct_real_get_free_function;
      VALA_TYPESYMBOL_CLASS (klass)->get_copy_function = vala_struct_real_get_copy_function;
      VALA_TYPESYMBOL_CLASS (klass)->get_destroy_function = vala_struct_real_get_destroy_function;
      VALA_CODE_NODE_CLASS (klass)->check = vala_struct_real_check;
}


static void vala_struct_instance_init (ValaStruct * self) {
      ValaArrayList* _tmp0_ = NULL;
      ValaArrayList* _tmp1_ = NULL;
      ValaArrayList* _tmp2_ = NULL;
      ValaArrayList* _tmp3_ = NULL;
      ValaArrayList* _tmp4_ = NULL;
      self->priv = VALA_STRUCT_GET_PRIVATE (self);
      _tmp0_ = vala_array_list_new (VALA_TYPE_TYPEPARAMETER, (GBoxedCopyFunc) vala_code_node_ref, vala_code_node_unref, g_direct_equal);
      self->priv->type_parameters = (ValaList*) _tmp0_;
      _tmp1_ = vala_array_list_new (VALA_TYPE_CONSTANT, (GBoxedCopyFunc) vala_code_node_ref, vala_code_node_unref, g_direct_equal);
      self->priv->constants = (ValaList*) _tmp1_;
      _tmp2_ = vala_array_list_new (VALA_TYPE_FIELD, (GBoxedCopyFunc) vala_code_node_ref, vala_code_node_unref, g_direct_equal);
      self->priv->fields = (ValaList*) _tmp2_;
      _tmp3_ = vala_array_list_new (VALA_TYPE_METHOD, (GBoxedCopyFunc) vala_code_node_ref, vala_code_node_unref, g_direct_equal);
      self->priv->methods = (ValaList*) _tmp3_;
      _tmp4_ = vala_array_list_new (VALA_TYPE_PROPERTY, (GBoxedCopyFunc) vala_code_node_ref, vala_code_node_unref, g_direct_equal);
      self->priv->properties = (ValaList*) _tmp4_;
      self->priv->_base_type = NULL;
      self->priv->default_value = NULL;
      self->priv->_has_type_id = TRUE;
      self->priv->_width = 32;
      self->priv->_signed = TRUE;
      self->priv->_has_copy_function = TRUE;
      self->priv->_has_destroy_function = TRUE;
}


static void vala_struct_finalize (ValaCodeNode* obj) {
      ValaStruct * self;
      self = VALA_STRUCT (obj);
      _vala_iterable_unref0 (self->priv->type_parameters);
      _vala_iterable_unref0 (self->priv->constants);
      _vala_iterable_unref0 (self->priv->fields);
      _vala_iterable_unref0 (self->priv->methods);
      _vala_iterable_unref0 (self->priv->properties);
      _vala_code_node_unref0 (self->priv->_base_type);
      _g_free0 (self->priv->cname);
      _g_free0 (self->priv->const_cname);
      _g_free0 (self->priv->type_id);
      _g_free0 (self->priv->lower_case_cprefix);
      _g_free0 (self->priv->lower_case_csuffix);
      _g_free0 (self->priv->marshaller_type_name);
      _g_free0 (self->priv->get_value_function);
      _g_free0 (self->priv->set_value_function);
      _g_free0 (self->priv->take_value_function);
      _g_free0 (self->priv->default_value);
      _g_free0 (self->priv->copy_function);
      _g_free0 (self->priv->destroy_function);
      _vala_code_node_unref0 (self->priv->_default_construction_method);
      VALA_CODE_NODE_CLASS (vala_struct_parent_class)->finalize (obj);
}


/**
 * Represents a struct declaration in the source code.
 */
GType vala_struct_get_type (void) {
      static volatile gsize vala_struct_type_id__volatile = 0;
      if (g_once_init_enter (&vala_struct_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (ValaStructClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_struct_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaStruct), 0, (GInstanceInitFunc) vala_struct_instance_init, NULL };
            GType vala_struct_type_id;
            vala_struct_type_id = g_type_register_static (VALA_TYPE_TYPESYMBOL, "ValaStruct", &g_define_type_info, 0);
            g_once_init_leave (&vala_struct_type_id__volatile, vala_struct_type_id);
      }
      return vala_struct_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
      if ((array != NULL) && (destroy_func != NULL)) {
            int i;
            for (i = 0; i < array_length; i = i + 1) {
                  if (((gpointer*) array)[i] != NULL) {
                        destroy_func (((gpointer*) array)[i]);
                  }
            }
      }
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
      _vala_array_destroy (array, array_length, destroy_func);
      g_free (array);
}


static gint _vala_array_length (gpointer array) {
      int length;
      length = 0;
      if (array) {
            while (((gpointer*) array)[length]) {
                  length++;
            }
      }
      return length;
}




Generated by  Doxygen 1.6.0   Back to index