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

/* valasemanticanalyzer.vala
 *
 * Copyright (C) 2006-2010  Jürg Billeter
 * Copyright (C) 2006-2008  Raffaele Sandrini
 *
 * 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>
 *	Raffaele Sandrini <raffaele@sandrini.ch>
 */

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


#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;
typedef struct _ValaCodeVisitorPrivate ValaCodeVisitorPrivate;

#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_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;

#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_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_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_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_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_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_ENUM_VALUE (vala_enum_value_get_type ())
#define VALA_ENUM_VALUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ENUM_VALUE, ValaEnumValue))
#define VALA_ENUM_VALUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ENUM_VALUE, ValaEnumValueClass))
#define VALA_IS_ENUM_VALUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ENUM_VALUE))
#define VALA_IS_ENUM_VALUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ENUM_VALUE))
#define VALA_ENUM_VALUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ENUM_VALUE, ValaEnumValueClass))

typedef struct _ValaEnumValue ValaEnumValue;
typedef struct _ValaEnumValueClass ValaEnumValueClass;

#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_ERROR_CODE (vala_error_code_get_type ())
#define VALA_ERROR_CODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ERROR_CODE, ValaErrorCode))
#define VALA_ERROR_CODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ERROR_CODE, ValaErrorCodeClass))
#define VALA_IS_ERROR_CODE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ERROR_CODE))
#define VALA_IS_ERROR_CODE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ERROR_CODE))
#define VALA_ERROR_CODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ERROR_CODE, ValaErrorCodeClass))

typedef struct _ValaErrorCode ValaErrorCode;
typedef struct _ValaErrorCodeClass ValaErrorCodeClass;

#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_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_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_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_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_PROPERTY_ACCESSOR (vala_property_accessor_get_type ())
#define VALA_PROPERTY_ACCESSOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_PROPERTY_ACCESSOR, ValaPropertyAccessor))
#define VALA_PROPERTY_ACCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_PROPERTY_ACCESSOR, ValaPropertyAccessorClass))
#define VALA_IS_PROPERTY_ACCESSOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_PROPERTY_ACCESSOR))
#define VALA_IS_PROPERTY_ACCESSOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_PROPERTY_ACCESSOR))
#define VALA_PROPERTY_ACCESSOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_PROPERTY_ACCESSOR, ValaPropertyAccessorClass))

typedef struct _ValaPropertyAccessor ValaPropertyAccessor;
typedef struct _ValaPropertyAccessorClass ValaPropertyAccessorClass;

#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;

#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_TYPE_USING_DIRECTIVE (vala_using_directive_get_type ())
#define VALA_USING_DIRECTIVE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_USING_DIRECTIVE, ValaUsingDirective))
#define VALA_USING_DIRECTIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_USING_DIRECTIVE, ValaUsingDirectiveClass))
#define VALA_IS_USING_DIRECTIVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_USING_DIRECTIVE))
#define VALA_IS_USING_DIRECTIVE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_USING_DIRECTIVE))
#define VALA_USING_DIRECTIVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_USING_DIRECTIVE, ValaUsingDirectiveClass))

typedef struct _ValaUsingDirective ValaUsingDirective;
typedef struct _ValaUsingDirectiveClass ValaUsingDirectiveClass;

#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_BLOCK (vala_block_get_type ())
#define VALA_BLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_BLOCK, ValaBlock))
#define VALA_BLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_BLOCK, ValaBlockClass))
#define VALA_IS_BLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_BLOCK))
#define VALA_IS_BLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_BLOCK))
#define VALA_BLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_BLOCK, ValaBlockClass))

typedef struct _ValaBlock ValaBlock;
typedef struct _ValaBlockClass ValaBlockClass;

#define VALA_TYPE_EMPTY_STATEMENT (vala_empty_statement_get_type ())
#define VALA_EMPTY_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_EMPTY_STATEMENT, ValaEmptyStatement))
#define VALA_EMPTY_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_EMPTY_STATEMENT, ValaEmptyStatementClass))
#define VALA_IS_EMPTY_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_EMPTY_STATEMENT))
#define VALA_IS_EMPTY_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_EMPTY_STATEMENT))
#define VALA_EMPTY_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_EMPTY_STATEMENT, ValaEmptyStatementClass))

typedef struct _ValaEmptyStatement ValaEmptyStatement;
typedef struct _ValaEmptyStatementClass ValaEmptyStatementClass;

#define VALA_TYPE_DECLARATION_STATEMENT (vala_declaration_statement_get_type ())
#define VALA_DECLARATION_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_DECLARATION_STATEMENT, ValaDeclarationStatement))
#define VALA_DECLARATION_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_DECLARATION_STATEMENT, ValaDeclarationStatementClass))
#define VALA_IS_DECLARATION_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_DECLARATION_STATEMENT))
#define VALA_IS_DECLARATION_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_DECLARATION_STATEMENT))
#define VALA_DECLARATION_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_DECLARATION_STATEMENT, ValaDeclarationStatementClass))

typedef struct _ValaDeclarationStatement ValaDeclarationStatement;
typedef struct _ValaDeclarationStatementClass ValaDeclarationStatementClass;

#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_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_INITIALIZER_LIST (vala_initializer_list_get_type ())
#define VALA_INITIALIZER_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_INITIALIZER_LIST, ValaInitializerList))
#define VALA_INITIALIZER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_INITIALIZER_LIST, ValaInitializerListClass))
#define VALA_IS_INITIALIZER_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_INITIALIZER_LIST))
#define VALA_IS_INITIALIZER_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_INITIALIZER_LIST))
#define VALA_INITIALIZER_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_INITIALIZER_LIST, ValaInitializerListClass))

typedef struct _ValaInitializerList ValaInitializerList;
typedef struct _ValaInitializerListClass ValaInitializerListClass;

#define VALA_TYPE_EXPRESSION_STATEMENT (vala_expression_statement_get_type ())
#define VALA_EXPRESSION_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_EXPRESSION_STATEMENT, ValaExpressionStatement))
#define VALA_EXPRESSION_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_EXPRESSION_STATEMENT, ValaExpressionStatementClass))
#define VALA_IS_EXPRESSION_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_EXPRESSION_STATEMENT))
#define VALA_IS_EXPRESSION_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_EXPRESSION_STATEMENT))
#define VALA_EXPRESSION_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_EXPRESSION_STATEMENT, ValaExpressionStatementClass))

typedef struct _ValaExpressionStatement ValaExpressionStatement;
typedef struct _ValaExpressionStatementClass ValaExpressionStatementClass;

#define VALA_TYPE_IF_STATEMENT (vala_if_statement_get_type ())
#define VALA_IF_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_IF_STATEMENT, ValaIfStatement))
#define VALA_IF_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_IF_STATEMENT, ValaIfStatementClass))
#define VALA_IS_IF_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_IF_STATEMENT))
#define VALA_IS_IF_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_IF_STATEMENT))
#define VALA_IF_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_IF_STATEMENT, ValaIfStatementClass))

typedef struct _ValaIfStatement ValaIfStatement;
typedef struct _ValaIfStatementClass ValaIfStatementClass;

#define VALA_TYPE_SWITCH_STATEMENT (vala_switch_statement_get_type ())
#define VALA_SWITCH_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SWITCH_STATEMENT, ValaSwitchStatement))
#define VALA_SWITCH_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SWITCH_STATEMENT, ValaSwitchStatementClass))
#define VALA_IS_SWITCH_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SWITCH_STATEMENT))
#define VALA_IS_SWITCH_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SWITCH_STATEMENT))
#define VALA_SWITCH_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SWITCH_STATEMENT, ValaSwitchStatementClass))

typedef struct _ValaSwitchStatement ValaSwitchStatement;
typedef struct _ValaSwitchStatementClass ValaSwitchStatementClass;

#define VALA_TYPE_SWITCH_SECTION (vala_switch_section_get_type ())
#define VALA_SWITCH_SECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SWITCH_SECTION, ValaSwitchSection))
#define VALA_SWITCH_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SWITCH_SECTION, ValaSwitchSectionClass))
#define VALA_IS_SWITCH_SECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SWITCH_SECTION))
#define VALA_IS_SWITCH_SECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SWITCH_SECTION))
#define VALA_SWITCH_SECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SWITCH_SECTION, ValaSwitchSectionClass))

typedef struct _ValaSwitchSection ValaSwitchSection;
typedef struct _ValaSwitchSectionClass ValaSwitchSectionClass;

#define VALA_TYPE_SWITCH_LABEL (vala_switch_label_get_type ())
#define VALA_SWITCH_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SWITCH_LABEL, ValaSwitchLabel))
#define VALA_SWITCH_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SWITCH_LABEL, ValaSwitchLabelClass))
#define VALA_IS_SWITCH_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SWITCH_LABEL))
#define VALA_IS_SWITCH_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SWITCH_LABEL))
#define VALA_SWITCH_LABEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SWITCH_LABEL, ValaSwitchLabelClass))

typedef struct _ValaSwitchLabel ValaSwitchLabel;
typedef struct _ValaSwitchLabelClass ValaSwitchLabelClass;

#define VALA_TYPE_LOOP (vala_loop_get_type ())
#define VALA_LOOP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_LOOP, ValaLoop))
#define VALA_LOOP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_LOOP, ValaLoopClass))
#define VALA_IS_LOOP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_LOOP))
#define VALA_IS_LOOP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_LOOP))
#define VALA_LOOP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_LOOP, ValaLoopClass))

typedef struct _ValaLoop ValaLoop;
typedef struct _ValaLoopClass ValaLoopClass;

#define VALA_TYPE_WHILE_STATEMENT (vala_while_statement_get_type ())
#define VALA_WHILE_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_WHILE_STATEMENT, ValaWhileStatement))
#define VALA_WHILE_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_WHILE_STATEMENT, ValaWhileStatementClass))
#define VALA_IS_WHILE_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_WHILE_STATEMENT))
#define VALA_IS_WHILE_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_WHILE_STATEMENT))
#define VALA_WHILE_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_WHILE_STATEMENT, ValaWhileStatementClass))

typedef struct _ValaWhileStatement ValaWhileStatement;
typedef struct _ValaWhileStatementClass ValaWhileStatementClass;

#define VALA_TYPE_DO_STATEMENT (vala_do_statement_get_type ())
#define VALA_DO_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_DO_STATEMENT, ValaDoStatement))
#define VALA_DO_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_DO_STATEMENT, ValaDoStatementClass))
#define VALA_IS_DO_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_DO_STATEMENT))
#define VALA_IS_DO_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_DO_STATEMENT))
#define VALA_DO_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_DO_STATEMENT, ValaDoStatementClass))

typedef struct _ValaDoStatement ValaDoStatement;
typedef struct _ValaDoStatementClass ValaDoStatementClass;

#define VALA_TYPE_FOR_STATEMENT (vala_for_statement_get_type ())
#define VALA_FOR_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_FOR_STATEMENT, ValaForStatement))
#define VALA_FOR_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_FOR_STATEMENT, ValaForStatementClass))
#define VALA_IS_FOR_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_FOR_STATEMENT))
#define VALA_IS_FOR_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_FOR_STATEMENT))
#define VALA_FOR_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_FOR_STATEMENT, ValaForStatementClass))

typedef struct _ValaForStatement ValaForStatement;
typedef struct _ValaForStatementClass ValaForStatementClass;

#define VALA_TYPE_FOREACH_STATEMENT (vala_foreach_statement_get_type ())
#define VALA_FOREACH_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_FOREACH_STATEMENT, ValaForeachStatement))
#define VALA_FOREACH_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_FOREACH_STATEMENT, ValaForeachStatementClass))
#define VALA_IS_FOREACH_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_FOREACH_STATEMENT))
#define VALA_IS_FOREACH_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_FOREACH_STATEMENT))
#define VALA_FOREACH_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_FOREACH_STATEMENT, ValaForeachStatementClass))

typedef struct _ValaForeachStatement ValaForeachStatement;
typedef struct _ValaForeachStatementClass ValaForeachStatementClass;

#define VALA_TYPE_BREAK_STATEMENT (vala_break_statement_get_type ())
#define VALA_BREAK_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_BREAK_STATEMENT, ValaBreakStatement))
#define VALA_BREAK_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_BREAK_STATEMENT, ValaBreakStatementClass))
#define VALA_IS_BREAK_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_BREAK_STATEMENT))
#define VALA_IS_BREAK_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_BREAK_STATEMENT))
#define VALA_BREAK_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_BREAK_STATEMENT, ValaBreakStatementClass))

typedef struct _ValaBreakStatement ValaBreakStatement;
typedef struct _ValaBreakStatementClass ValaBreakStatementClass;

#define VALA_TYPE_CONTINUE_STATEMENT (vala_continue_statement_get_type ())
#define VALA_CONTINUE_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CONTINUE_STATEMENT, ValaContinueStatement))
#define VALA_CONTINUE_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CONTINUE_STATEMENT, ValaContinueStatementClass))
#define VALA_IS_CONTINUE_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CONTINUE_STATEMENT))
#define VALA_IS_CONTINUE_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CONTINUE_STATEMENT))
#define VALA_CONTINUE_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CONTINUE_STATEMENT, ValaContinueStatementClass))

typedef struct _ValaContinueStatement ValaContinueStatement;
typedef struct _ValaContinueStatementClass ValaContinueStatementClass;

#define VALA_TYPE_RETURN_STATEMENT (vala_return_statement_get_type ())
#define VALA_RETURN_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_RETURN_STATEMENT, ValaReturnStatement))
#define VALA_RETURN_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_RETURN_STATEMENT, ValaReturnStatementClass))
#define VALA_IS_RETURN_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_RETURN_STATEMENT))
#define VALA_IS_RETURN_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_RETURN_STATEMENT))
#define VALA_RETURN_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_RETURN_STATEMENT, ValaReturnStatementClass))

typedef struct _ValaReturnStatement ValaReturnStatement;
typedef struct _ValaReturnStatementClass ValaReturnStatementClass;

#define VALA_TYPE_YIELD_STATEMENT (vala_yield_statement_get_type ())
#define VALA_YIELD_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_YIELD_STATEMENT, ValaYieldStatement))
#define VALA_YIELD_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_YIELD_STATEMENT, ValaYieldStatementClass))
#define VALA_IS_YIELD_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_YIELD_STATEMENT))
#define VALA_IS_YIELD_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_YIELD_STATEMENT))
#define VALA_YIELD_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_YIELD_STATEMENT, ValaYieldStatementClass))

typedef struct _ValaYieldStatement ValaYieldStatement;
typedef struct _ValaYieldStatementClass ValaYieldStatementClass;

#define VALA_TYPE_THROW_STATEMENT (vala_throw_statement_get_type ())
#define VALA_THROW_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_THROW_STATEMENT, ValaThrowStatement))
#define VALA_THROW_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_THROW_STATEMENT, ValaThrowStatementClass))
#define VALA_IS_THROW_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_THROW_STATEMENT))
#define VALA_IS_THROW_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_THROW_STATEMENT))
#define VALA_THROW_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_THROW_STATEMENT, ValaThrowStatementClass))

typedef struct _ValaThrowStatement ValaThrowStatement;
typedef struct _ValaThrowStatementClass ValaThrowStatementClass;

#define VALA_TYPE_TRY_STATEMENT (vala_try_statement_get_type ())
#define VALA_TRY_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TRY_STATEMENT, ValaTryStatement))
#define VALA_TRY_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TRY_STATEMENT, ValaTryStatementClass))
#define VALA_IS_TRY_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TRY_STATEMENT))
#define VALA_IS_TRY_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TRY_STATEMENT))
#define VALA_TRY_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TRY_STATEMENT, ValaTryStatementClass))

typedef struct _ValaTryStatement ValaTryStatement;
typedef struct _ValaTryStatementClass ValaTryStatementClass;

#define VALA_TYPE_CATCH_CLAUSE (vala_catch_clause_get_type ())
#define VALA_CATCH_CLAUSE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CATCH_CLAUSE, ValaCatchClause))
#define VALA_CATCH_CLAUSE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CATCH_CLAUSE, ValaCatchClauseClass))
#define VALA_IS_CATCH_CLAUSE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CATCH_CLAUSE))
#define VALA_IS_CATCH_CLAUSE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CATCH_CLAUSE))
#define VALA_CATCH_CLAUSE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CATCH_CLAUSE, ValaCatchClauseClass))

typedef struct _ValaCatchClause ValaCatchClause;
typedef struct _ValaCatchClauseClass ValaCatchClauseClass;

#define VALA_TYPE_LOCK_STATEMENT (vala_lock_statement_get_type ())
#define VALA_LOCK_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_LOCK_STATEMENT, ValaLockStatement))
#define VALA_LOCK_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_LOCK_STATEMENT, ValaLockStatementClass))
#define VALA_IS_LOCK_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_LOCK_STATEMENT))
#define VALA_IS_LOCK_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_LOCK_STATEMENT))
#define VALA_LOCK_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_LOCK_STATEMENT, ValaLockStatementClass))

typedef struct _ValaLockStatement ValaLockStatement;
typedef struct _ValaLockStatementClass ValaLockStatementClass;

#define VALA_TYPE_UNLOCK_STATEMENT (vala_unlock_statement_get_type ())
#define VALA_UNLOCK_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_UNLOCK_STATEMENT, ValaUnlockStatement))
#define VALA_UNLOCK_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_UNLOCK_STATEMENT, ValaUnlockStatementClass))
#define VALA_IS_UNLOCK_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_UNLOCK_STATEMENT))
#define VALA_IS_UNLOCK_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_UNLOCK_STATEMENT))
#define VALA_UNLOCK_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_UNLOCK_STATEMENT, ValaUnlockStatementClass))

typedef struct _ValaUnlockStatement ValaUnlockStatement;
typedef struct _ValaUnlockStatementClass ValaUnlockStatementClass;

#define VALA_TYPE_DELETE_STATEMENT (vala_delete_statement_get_type ())
#define VALA_DELETE_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_DELETE_STATEMENT, ValaDeleteStatement))
#define VALA_DELETE_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_DELETE_STATEMENT, ValaDeleteStatementClass))
#define VALA_IS_DELETE_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_DELETE_STATEMENT))
#define VALA_IS_DELETE_STATEMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_DELETE_STATEMENT))
#define VALA_DELETE_STATEMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_DELETE_STATEMENT, ValaDeleteStatementClass))

typedef struct _ValaDeleteStatement ValaDeleteStatement;
typedef struct _ValaDeleteStatementClass ValaDeleteStatementClass;

#define VALA_TYPE_ARRAY_CREATION_EXPRESSION (vala_array_creation_expression_get_type ())
#define VALA_ARRAY_CREATION_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ARRAY_CREATION_EXPRESSION, ValaArrayCreationExpression))
#define VALA_ARRAY_CREATION_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ARRAY_CREATION_EXPRESSION, ValaArrayCreationExpressionClass))
#define VALA_IS_ARRAY_CREATION_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ARRAY_CREATION_EXPRESSION))
#define VALA_IS_ARRAY_CREATION_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ARRAY_CREATION_EXPRESSION))
#define VALA_ARRAY_CREATION_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ARRAY_CREATION_EXPRESSION, ValaArrayCreationExpressionClass))

typedef struct _ValaArrayCreationExpression ValaArrayCreationExpression;
typedef struct _ValaArrayCreationExpressionClass ValaArrayCreationExpressionClass;

#define VALA_TYPE_LITERAL (vala_literal_get_type ())
#define VALA_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_LITERAL, ValaLiteral))
#define VALA_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_LITERAL, ValaLiteralClass))
#define VALA_IS_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_LITERAL))
#define VALA_IS_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_LITERAL))
#define VALA_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_LITERAL, ValaLiteralClass))

typedef struct _ValaLiteral ValaLiteral;
typedef struct _ValaLiteralClass ValaLiteralClass;

#define VALA_TYPE_BOOLEAN_LITERAL (vala_boolean_literal_get_type ())
#define VALA_BOOLEAN_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_BOOLEAN_LITERAL, ValaBooleanLiteral))
#define VALA_BOOLEAN_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_BOOLEAN_LITERAL, ValaBooleanLiteralClass))
#define VALA_IS_BOOLEAN_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_BOOLEAN_LITERAL))
#define VALA_IS_BOOLEAN_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_BOOLEAN_LITERAL))
#define VALA_BOOLEAN_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_BOOLEAN_LITERAL, ValaBooleanLiteralClass))

typedef struct _ValaBooleanLiteral ValaBooleanLiteral;
typedef struct _ValaBooleanLiteralClass ValaBooleanLiteralClass;

#define VALA_TYPE_CHARACTER_LITERAL (vala_character_literal_get_type ())
#define VALA_CHARACTER_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CHARACTER_LITERAL, ValaCharacterLiteral))
#define VALA_CHARACTER_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CHARACTER_LITERAL, ValaCharacterLiteralClass))
#define VALA_IS_CHARACTER_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CHARACTER_LITERAL))
#define VALA_IS_CHARACTER_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CHARACTER_LITERAL))
#define VALA_CHARACTER_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CHARACTER_LITERAL, ValaCharacterLiteralClass))

typedef struct _ValaCharacterLiteral ValaCharacterLiteral;
typedef struct _ValaCharacterLiteralClass ValaCharacterLiteralClass;

#define VALA_TYPE_INTEGER_LITERAL (vala_integer_literal_get_type ())
#define VALA_INTEGER_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_INTEGER_LITERAL, ValaIntegerLiteral))
#define VALA_INTEGER_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_INTEGER_LITERAL, ValaIntegerLiteralClass))
#define VALA_IS_INTEGER_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_INTEGER_LITERAL))
#define VALA_IS_INTEGER_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_INTEGER_LITERAL))
#define VALA_INTEGER_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_INTEGER_LITERAL, ValaIntegerLiteralClass))

typedef struct _ValaIntegerLiteral ValaIntegerLiteral;
typedef struct _ValaIntegerLiteralClass ValaIntegerLiteralClass;

#define VALA_TYPE_REAL_LITERAL (vala_real_literal_get_type ())
#define VALA_REAL_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_REAL_LITERAL, ValaRealLiteral))
#define VALA_REAL_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_REAL_LITERAL, ValaRealLiteralClass))
#define VALA_IS_REAL_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_REAL_LITERAL))
#define VALA_IS_REAL_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_REAL_LITERAL))
#define VALA_REAL_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_REAL_LITERAL, ValaRealLiteralClass))

typedef struct _ValaRealLiteral ValaRealLiteral;
typedef struct _ValaRealLiteralClass ValaRealLiteralClass;

#define VALA_TYPE_REGEX_LITERAL (vala_regex_literal_get_type ())
#define VALA_REGEX_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_REGEX_LITERAL, ValaRegexLiteral))
#define VALA_REGEX_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_REGEX_LITERAL, ValaRegexLiteralClass))
#define VALA_IS_REGEX_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_REGEX_LITERAL))
#define VALA_IS_REGEX_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_REGEX_LITERAL))
#define VALA_REGEX_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_REGEX_LITERAL, ValaRegexLiteralClass))

typedef struct _ValaRegexLiteral ValaRegexLiteral;
typedef struct _ValaRegexLiteralClass ValaRegexLiteralClass;

#define VALA_TYPE_STRING_LITERAL (vala_string_literal_get_type ())
#define VALA_STRING_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_STRING_LITERAL, ValaStringLiteral))
#define VALA_STRING_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_STRING_LITERAL, ValaStringLiteralClass))
#define VALA_IS_STRING_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_STRING_LITERAL))
#define VALA_IS_STRING_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_STRING_LITERAL))
#define VALA_STRING_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_STRING_LITERAL, ValaStringLiteralClass))

typedef struct _ValaStringLiteral ValaStringLiteral;
typedef struct _ValaStringLiteralClass ValaStringLiteralClass;

#define VALA_TYPE_TEMPLATE (vala_template_get_type ())
#define VALA_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TEMPLATE, ValaTemplate))
#define VALA_TEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TEMPLATE, ValaTemplateClass))
#define VALA_IS_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TEMPLATE))
#define VALA_IS_TEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TEMPLATE))
#define VALA_TEMPLATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TEMPLATE, ValaTemplateClass))

typedef struct _ValaTemplate ValaTemplate;
typedef struct _ValaTemplateClass ValaTemplateClass;

#define VALA_TYPE_TUPLE (vala_tuple_get_type ())
#define VALA_TUPLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TUPLE, ValaTuple))
#define VALA_TUPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TUPLE, ValaTupleClass))
#define VALA_IS_TUPLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TUPLE))
#define VALA_IS_TUPLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TUPLE))
#define VALA_TUPLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TUPLE, ValaTupleClass))

typedef struct _ValaTuple ValaTuple;
typedef struct _ValaTupleClass ValaTupleClass;

#define VALA_TYPE_NULL_LITERAL (vala_null_literal_get_type ())
#define VALA_NULL_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_NULL_LITERAL, ValaNullLiteral))
#define VALA_NULL_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_NULL_LITERAL, ValaNullLiteralClass))
#define VALA_IS_NULL_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_NULL_LITERAL))
#define VALA_IS_NULL_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_NULL_LITERAL))
#define VALA_NULL_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_NULL_LITERAL, ValaNullLiteralClass))

typedef struct _ValaNullLiteral ValaNullLiteral;
typedef struct _ValaNullLiteralClass ValaNullLiteralClass;

#define VALA_TYPE_MEMBER_ACCESS (vala_member_access_get_type ())
#define VALA_MEMBER_ACCESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_MEMBER_ACCESS, ValaMemberAccess))
#define VALA_MEMBER_ACCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_MEMBER_ACCESS, ValaMemberAccessClass))
#define VALA_IS_MEMBER_ACCESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_MEMBER_ACCESS))
#define VALA_IS_MEMBER_ACCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_MEMBER_ACCESS))
#define VALA_MEMBER_ACCESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_MEMBER_ACCESS, ValaMemberAccessClass))

typedef struct _ValaMemberAccess ValaMemberAccess;
typedef struct _ValaMemberAccessClass ValaMemberAccessClass;

#define VALA_TYPE_METHOD_CALL (vala_method_call_get_type ())
#define VALA_METHOD_CALL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_METHOD_CALL, ValaMethodCall))
#define VALA_METHOD_CALL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_METHOD_CALL, ValaMethodCallClass))
#define VALA_IS_METHOD_CALL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_METHOD_CALL))
#define VALA_IS_METHOD_CALL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_METHOD_CALL))
#define VALA_METHOD_CALL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_METHOD_CALL, ValaMethodCallClass))

typedef struct _ValaMethodCall ValaMethodCall;
typedef struct _ValaMethodCallClass ValaMethodCallClass;

#define VALA_TYPE_ELEMENT_ACCESS (vala_element_access_get_type ())
#define VALA_ELEMENT_ACCESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ELEMENT_ACCESS, ValaElementAccess))
#define VALA_ELEMENT_ACCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ELEMENT_ACCESS, ValaElementAccessClass))
#define VALA_IS_ELEMENT_ACCESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ELEMENT_ACCESS))
#define VALA_IS_ELEMENT_ACCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ELEMENT_ACCESS))
#define VALA_ELEMENT_ACCESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ELEMENT_ACCESS, ValaElementAccessClass))

typedef struct _ValaElementAccess ValaElementAccess;
typedef struct _ValaElementAccessClass ValaElementAccessClass;

#define VALA_TYPE_SLICE_EXPRESSION (vala_slice_expression_get_type ())
#define VALA_SLICE_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SLICE_EXPRESSION, ValaSliceExpression))
#define VALA_SLICE_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SLICE_EXPRESSION, ValaSliceExpressionClass))
#define VALA_IS_SLICE_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SLICE_EXPRESSION))
#define VALA_IS_SLICE_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SLICE_EXPRESSION))
#define VALA_SLICE_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SLICE_EXPRESSION, ValaSliceExpressionClass))

typedef struct _ValaSliceExpression ValaSliceExpression;
typedef struct _ValaSliceExpressionClass ValaSliceExpressionClass;

#define VALA_TYPE_BASE_ACCESS (vala_base_access_get_type ())
#define VALA_BASE_ACCESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_BASE_ACCESS, ValaBaseAccess))
#define VALA_BASE_ACCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_BASE_ACCESS, ValaBaseAccessClass))
#define VALA_IS_BASE_ACCESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_BASE_ACCESS))
#define VALA_IS_BASE_ACCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_BASE_ACCESS))
#define VALA_BASE_ACCESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_BASE_ACCESS, ValaBaseAccessClass))

typedef struct _ValaBaseAccess ValaBaseAccess;
typedef struct _ValaBaseAccessClass ValaBaseAccessClass;

#define VALA_TYPE_POSTFIX_EXPRESSION (vala_postfix_expression_get_type ())
#define VALA_POSTFIX_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_POSTFIX_EXPRESSION, ValaPostfixExpression))
#define VALA_POSTFIX_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_POSTFIX_EXPRESSION, ValaPostfixExpressionClass))
#define VALA_IS_POSTFIX_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_POSTFIX_EXPRESSION))
#define VALA_IS_POSTFIX_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_POSTFIX_EXPRESSION))
#define VALA_POSTFIX_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_POSTFIX_EXPRESSION, ValaPostfixExpressionClass))

typedef struct _ValaPostfixExpression ValaPostfixExpression;
typedef struct _ValaPostfixExpressionClass ValaPostfixExpressionClass;

#define VALA_TYPE_OBJECT_CREATION_EXPRESSION (vala_object_creation_expression_get_type ())
#define VALA_OBJECT_CREATION_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_OBJECT_CREATION_EXPRESSION, ValaObjectCreationExpression))
#define VALA_OBJECT_CREATION_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_OBJECT_CREATION_EXPRESSION, ValaObjectCreationExpressionClass))
#define VALA_IS_OBJECT_CREATION_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_OBJECT_CREATION_EXPRESSION))
#define VALA_IS_OBJECT_CREATION_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_OBJECT_CREATION_EXPRESSION))
#define VALA_OBJECT_CREATION_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_OBJECT_CREATION_EXPRESSION, ValaObjectCreationExpressionClass))

typedef struct _ValaObjectCreationExpression ValaObjectCreationExpression;
typedef struct _ValaObjectCreationExpressionClass ValaObjectCreationExpressionClass;

#define VALA_TYPE_SIZEOF_EXPRESSION (vala_sizeof_expression_get_type ())
#define VALA_SIZEOF_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SIZEOF_EXPRESSION, ValaSizeofExpression))
#define VALA_SIZEOF_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SIZEOF_EXPRESSION, ValaSizeofExpressionClass))
#define VALA_IS_SIZEOF_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SIZEOF_EXPRESSION))
#define VALA_IS_SIZEOF_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SIZEOF_EXPRESSION))
#define VALA_SIZEOF_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SIZEOF_EXPRESSION, ValaSizeofExpressionClass))

typedef struct _ValaSizeofExpression ValaSizeofExpression;
typedef struct _ValaSizeofExpressionClass ValaSizeofExpressionClass;

#define VALA_TYPE_TYPEOF_EXPRESSION (vala_typeof_expression_get_type ())
#define VALA_TYPEOF_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TYPEOF_EXPRESSION, ValaTypeofExpression))
#define VALA_TYPEOF_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TYPEOF_EXPRESSION, ValaTypeofExpressionClass))
#define VALA_IS_TYPEOF_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TYPEOF_EXPRESSION))
#define VALA_IS_TYPEOF_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TYPEOF_EXPRESSION))
#define VALA_TYPEOF_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TYPEOF_EXPRESSION, ValaTypeofExpressionClass))

typedef struct _ValaTypeofExpression ValaTypeofExpression;
typedef struct _ValaTypeofExpressionClass ValaTypeofExpressionClass;

#define VALA_TYPE_UNARY_EXPRESSION (vala_unary_expression_get_type ())
#define VALA_UNARY_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_UNARY_EXPRESSION, ValaUnaryExpression))
#define VALA_UNARY_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_UNARY_EXPRESSION, ValaUnaryExpressionClass))
#define VALA_IS_UNARY_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_UNARY_EXPRESSION))
#define VALA_IS_UNARY_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_UNARY_EXPRESSION))
#define VALA_UNARY_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_UNARY_EXPRESSION, ValaUnaryExpressionClass))

typedef struct _ValaUnaryExpression ValaUnaryExpression;
typedef struct _ValaUnaryExpressionClass ValaUnaryExpressionClass;

#define VALA_TYPE_CAST_EXPRESSION (vala_cast_expression_get_type ())
#define VALA_CAST_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CAST_EXPRESSION, ValaCastExpression))
#define VALA_CAST_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CAST_EXPRESSION, ValaCastExpressionClass))
#define VALA_IS_CAST_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CAST_EXPRESSION))
#define VALA_IS_CAST_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CAST_EXPRESSION))
#define VALA_CAST_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CAST_EXPRESSION, ValaCastExpressionClass))

typedef struct _ValaCastExpression ValaCastExpression;
typedef struct _ValaCastExpressionClass ValaCastExpressionClass;

#define VALA_TYPE_NAMED_ARGUMENT (vala_named_argument_get_type ())
#define VALA_NAMED_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_NAMED_ARGUMENT, ValaNamedArgument))
#define VALA_NAMED_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_NAMED_ARGUMENT, ValaNamedArgumentClass))
#define VALA_IS_NAMED_ARGUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_NAMED_ARGUMENT))
#define VALA_IS_NAMED_ARGUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_NAMED_ARGUMENT))
#define VALA_NAMED_ARGUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_NAMED_ARGUMENT, ValaNamedArgumentClass))

typedef struct _ValaNamedArgument ValaNamedArgument;
typedef struct _ValaNamedArgumentClass ValaNamedArgumentClass;

#define VALA_TYPE_POINTER_INDIRECTION (vala_pointer_indirection_get_type ())
#define VALA_POINTER_INDIRECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_POINTER_INDIRECTION, ValaPointerIndirection))
#define VALA_POINTER_INDIRECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_POINTER_INDIRECTION, ValaPointerIndirectionClass))
#define VALA_IS_POINTER_INDIRECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_POINTER_INDIRECTION))
#define VALA_IS_POINTER_INDIRECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_POINTER_INDIRECTION))
#define VALA_POINTER_INDIRECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_POINTER_INDIRECTION, ValaPointerIndirectionClass))

typedef struct _ValaPointerIndirection ValaPointerIndirection;
typedef struct _ValaPointerIndirectionClass ValaPointerIndirectionClass;

#define VALA_TYPE_ADDRESSOF_EXPRESSION (vala_addressof_expression_get_type ())
#define VALA_ADDRESSOF_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ADDRESSOF_EXPRESSION, ValaAddressofExpression))
#define VALA_ADDRESSOF_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ADDRESSOF_EXPRESSION, ValaAddressofExpressionClass))
#define VALA_IS_ADDRESSOF_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ADDRESSOF_EXPRESSION))
#define VALA_IS_ADDRESSOF_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ADDRESSOF_EXPRESSION))
#define VALA_ADDRESSOF_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ADDRESSOF_EXPRESSION, ValaAddressofExpressionClass))

typedef struct _ValaAddressofExpression ValaAddressofExpression;
typedef struct _ValaAddressofExpressionClass ValaAddressofExpressionClass;

#define VALA_TYPE_REFERENCE_TRANSFER_EXPRESSION (vala_reference_transfer_expression_get_type ())
#define VALA_REFERENCE_TRANSFER_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_REFERENCE_TRANSFER_EXPRESSION, ValaReferenceTransferExpression))
#define VALA_REFERENCE_TRANSFER_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_REFERENCE_TRANSFER_EXPRESSION, ValaReferenceTransferExpressionClass))
#define VALA_IS_REFERENCE_TRANSFER_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_REFERENCE_TRANSFER_EXPRESSION))
#define VALA_IS_REFERENCE_TRANSFER_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_REFERENCE_TRANSFER_EXPRESSION))
#define VALA_REFERENCE_TRANSFER_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_REFERENCE_TRANSFER_EXPRESSION, ValaReferenceTransferExpressionClass))

typedef struct _ValaReferenceTransferExpression ValaReferenceTransferExpression;
typedef struct _ValaReferenceTransferExpressionClass ValaReferenceTransferExpressionClass;

#define VALA_TYPE_BINARY_EXPRESSION (vala_binary_expression_get_type ())
#define VALA_BINARY_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_BINARY_EXPRESSION, ValaBinaryExpression))
#define VALA_BINARY_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_BINARY_EXPRESSION, ValaBinaryExpressionClass))
#define VALA_IS_BINARY_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_BINARY_EXPRESSION))
#define VALA_IS_BINARY_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_BINARY_EXPRESSION))
#define VALA_BINARY_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_BINARY_EXPRESSION, ValaBinaryExpressionClass))

typedef struct _ValaBinaryExpression ValaBinaryExpression;
typedef struct _ValaBinaryExpressionClass ValaBinaryExpressionClass;

#define VALA_TYPE_TYPECHECK (vala_typecheck_get_type ())
#define VALA_TYPECHECK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TYPECHECK, ValaTypeCheck))
#define VALA_TYPECHECK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TYPECHECK, ValaTypeCheckClass))
#define VALA_IS_TYPECHECK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TYPECHECK))
#define VALA_IS_TYPECHECK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TYPECHECK))
#define VALA_TYPECHECK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TYPECHECK, ValaTypeCheckClass))

typedef struct _ValaTypeCheck ValaTypeCheck;
typedef struct _ValaTypeCheckClass ValaTypeCheckClass;

#define VALA_TYPE_CONDITIONAL_EXPRESSION (vala_conditional_expression_get_type ())
#define VALA_CONDITIONAL_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CONDITIONAL_EXPRESSION, ValaConditionalExpression))
#define VALA_CONDITIONAL_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CONDITIONAL_EXPRESSION, ValaConditionalExpressionClass))
#define VALA_IS_CONDITIONAL_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CONDITIONAL_EXPRESSION))
#define VALA_IS_CONDITIONAL_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CONDITIONAL_EXPRESSION))
#define VALA_CONDITIONAL_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CONDITIONAL_EXPRESSION, ValaConditionalExpressionClass))

typedef struct _ValaConditionalExpression ValaConditionalExpression;
typedef struct _ValaConditionalExpressionClass ValaConditionalExpressionClass;

#define VALA_TYPE_LAMBDA_EXPRESSION (vala_lambda_expression_get_type ())
#define VALA_LAMBDA_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_LAMBDA_EXPRESSION, ValaLambdaExpression))
#define VALA_LAMBDA_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_LAMBDA_EXPRESSION, ValaLambdaExpressionClass))
#define VALA_IS_LAMBDA_EXPRESSION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_LAMBDA_EXPRESSION))
#define VALA_IS_LAMBDA_EXPRESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_LAMBDA_EXPRESSION))
#define VALA_LAMBDA_EXPRESSION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_LAMBDA_EXPRESSION, ValaLambdaExpressionClass))

typedef struct _ValaLambdaExpression ValaLambdaExpression;
typedef struct _ValaLambdaExpressionClass ValaLambdaExpressionClass;

#define VALA_TYPE_ASSIGNMENT (vala_assignment_get_type ())
#define VALA_ASSIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ASSIGNMENT, ValaAssignment))
#define VALA_ASSIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ASSIGNMENT, ValaAssignmentClass))
#define VALA_IS_ASSIGNMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ASSIGNMENT))
#define VALA_IS_ASSIGNMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ASSIGNMENT))
#define VALA_ASSIGNMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ASSIGNMENT, ValaAssignmentClass))

typedef struct _ValaAssignment ValaAssignment;
typedef struct _ValaAssignmentClass ValaAssignmentClass;

#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;
typedef struct _ValaSemanticAnalyzerPrivate ValaSemanticAnalyzerPrivate;

#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_REFERENCE_TYPE (vala_reference_type_get_type ())
#define VALA_REFERENCE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_REFERENCE_TYPE, ValaReferenceType))
#define VALA_REFERENCE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_REFERENCE_TYPE, ValaReferenceTypeClass))
#define VALA_IS_REFERENCE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_REFERENCE_TYPE))
#define VALA_IS_REFERENCE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_REFERENCE_TYPE))
#define VALA_REFERENCE_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_REFERENCE_TYPE, ValaReferenceTypeClass))

typedef struct _ValaReferenceType ValaReferenceType;
typedef struct _ValaReferenceTypeClass ValaReferenceTypeClass;

#define VALA_TYPE_OBJECT_TYPE (vala_object_type_get_type ())
#define VALA_OBJECT_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_OBJECT_TYPE, ValaObjectType))
#define VALA_OBJECT_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_OBJECT_TYPE, ValaObjectTypeClass))
#define VALA_IS_OBJECT_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_OBJECT_TYPE))
#define VALA_IS_OBJECT_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_OBJECT_TYPE))
#define VALA_OBJECT_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_OBJECT_TYPE, ValaObjectTypeClass))

typedef struct _ValaObjectType ValaObjectType;
typedef struct _ValaObjectTypeClass ValaObjectTypeClass;

#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_code_context_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_context_unref (var), NULL)))
#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL)))
#define _vala_source_file_unref0(var) ((var == NULL) ? NULL : (var = (vala_source_file_unref (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_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_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))

#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_BOOLEAN_TYPE (vala_boolean_type_get_type ())
#define VALA_BOOLEAN_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_BOOLEAN_TYPE, ValaBooleanType))
#define VALA_BOOLEAN_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_BOOLEAN_TYPE, ValaBooleanTypeClass))
#define VALA_IS_BOOLEAN_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_BOOLEAN_TYPE))
#define VALA_IS_BOOLEAN_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_BOOLEAN_TYPE))
#define VALA_BOOLEAN_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_BOOLEAN_TYPE, ValaBooleanTypeClass))

typedef struct _ValaBooleanType ValaBooleanType;
typedef struct _ValaBooleanTypeClass ValaBooleanTypeClass;

#define VALA_TYPE_INTEGER_TYPE (vala_integer_type_get_type ())
#define VALA_INTEGER_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_INTEGER_TYPE, ValaIntegerType))
#define VALA_INTEGER_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_INTEGER_TYPE, ValaIntegerTypeClass))
#define VALA_IS_INTEGER_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_INTEGER_TYPE))
#define VALA_IS_INTEGER_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_INTEGER_TYPE))
#define VALA_INTEGER_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_INTEGER_TYPE, ValaIntegerTypeClass))

typedef struct _ValaIntegerType ValaIntegerType;
typedef struct _ValaIntegerTypeClass ValaIntegerTypeClass;

#define VALA_TYPE_FLOATING_TYPE (vala_floating_type_get_type ())
#define VALA_FLOATING_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_FLOATING_TYPE, ValaFloatingType))
#define VALA_FLOATING_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_FLOATING_TYPE, ValaFloatingTypeClass))
#define VALA_IS_FLOATING_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_FLOATING_TYPE))
#define VALA_IS_FLOATING_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_FLOATING_TYPE))
#define VALA_FLOATING_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_FLOATING_TYPE, ValaFloatingTypeClass))

typedef struct _ValaFloatingType ValaFloatingType;
typedef struct _ValaFloatingTypeClass ValaFloatingTypeClass;

#define VALA_TYPE_ENUM_VALUE_TYPE (vala_enum_value_type_get_type ())
#define VALA_ENUM_VALUE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ENUM_VALUE_TYPE, ValaEnumValueType))
#define VALA_ENUM_VALUE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ENUM_VALUE_TYPE, ValaEnumValueTypeClass))
#define VALA_IS_ENUM_VALUE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ENUM_VALUE_TYPE))
#define VALA_IS_ENUM_VALUE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ENUM_VALUE_TYPE))
#define VALA_ENUM_VALUE_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ENUM_VALUE_TYPE, ValaEnumValueTypeClass))

typedef struct _ValaEnumValueType ValaEnumValueType;
typedef struct _ValaEnumValueTypeClass ValaEnumValueTypeClass;

#define VALA_TYPE_METHOD_TYPE (vala_method_type_get_type ())
#define VALA_METHOD_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_METHOD_TYPE, ValaMethodType))
#define VALA_METHOD_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_METHOD_TYPE, ValaMethodTypeClass))
#define VALA_IS_METHOD_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_METHOD_TYPE))
#define VALA_IS_METHOD_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_METHOD_TYPE))
#define VALA_METHOD_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_METHOD_TYPE, ValaMethodTypeClass))

typedef struct _ValaMethodType ValaMethodType;
typedef struct _ValaMethodTypeClass ValaMethodTypeClass;

#define VALA_TYPE_SIGNAL_TYPE (vala_signal_type_get_type ())
#define VALA_SIGNAL_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SIGNAL_TYPE, ValaSignalType))
#define VALA_SIGNAL_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SIGNAL_TYPE, ValaSignalTypeClass))
#define VALA_IS_SIGNAL_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SIGNAL_TYPE))
#define VALA_IS_SIGNAL_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SIGNAL_TYPE))
#define VALA_SIGNAL_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SIGNAL_TYPE, ValaSignalTypeClass))

typedef struct _ValaSignalType ValaSignalType;
typedef struct _ValaSignalTypeClass ValaSignalTypeClass;

#define VALA_TYPE_ERROR_TYPE (vala_error_type_get_type ())
#define VALA_ERROR_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ERROR_TYPE, ValaErrorType))
#define VALA_ERROR_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ERROR_TYPE, ValaErrorTypeClass))
#define VALA_IS_ERROR_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ERROR_TYPE))
#define VALA_IS_ERROR_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ERROR_TYPE))
#define VALA_ERROR_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ERROR_TYPE, ValaErrorTypeClass))

typedef struct _ValaErrorType ValaErrorType;
typedef struct _ValaErrorTypeClass ValaErrorTypeClass;
#define _g_free0(var) (var = (g_free (var), NULL))

#define VALA_TYPE_INVALID_TYPE (vala_invalid_type_get_type ())
#define VALA_INVALID_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_INVALID_TYPE, ValaInvalidType))
#define VALA_INVALID_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_INVALID_TYPE, ValaInvalidTypeClass))
#define VALA_IS_INVALID_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_INVALID_TYPE))
#define VALA_IS_INVALID_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_INVALID_TYPE))
#define VALA_INVALID_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_INVALID_TYPE, ValaInvalidTypeClass))

typedef struct _ValaInvalidType ValaInvalidType;
typedef struct _ValaInvalidTypeClass ValaInvalidTypeClass;

#define VALA_TYPE_GENERIC_TYPE (vala_generic_type_get_type ())
#define VALA_GENERIC_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GENERIC_TYPE, ValaGenericType))
#define VALA_GENERIC_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GENERIC_TYPE, ValaGenericTypeClass))
#define VALA_IS_GENERIC_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GENERIC_TYPE))
#define VALA_IS_GENERIC_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GENERIC_TYPE))
#define VALA_GENERIC_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GENERIC_TYPE, ValaGenericTypeClass))

typedef struct _ValaGenericType ValaGenericType;
typedef struct _ValaGenericTypeClass ValaGenericTypeClass;

#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;
#define _vala_iterator_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterator_unref (var), NULL)))

#define VALA_TYPE_PARAMETER_DIRECTION (vala_parameter_direction_get_type ())

#define VALA_TYPE_SOURCE_LOCATION (vala_source_location_get_type ())
typedef struct _ValaSourceLocation ValaSourceLocation;

#define VALA_TYPE_DELEGATE_TYPE (vala_delegate_type_get_type ())
#define VALA_DELEGATE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_DELEGATE_TYPE, ValaDelegateType))
#define VALA_DELEGATE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_DELEGATE_TYPE, ValaDelegateTypeClass))
#define VALA_IS_DELEGATE_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_DELEGATE_TYPE))
#define VALA_IS_DELEGATE_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_DELEGATE_TYPE))
#define VALA_DELEGATE_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_DELEGATE_TYPE, ValaDelegateTypeClass))

typedef struct _ValaDelegateType ValaDelegateType;
typedef struct _ValaDelegateTypeClass ValaDelegateTypeClass;

#define VALA_TYPE_NULL_TYPE (vala_null_type_get_type ())
#define VALA_NULL_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_NULL_TYPE, ValaNullType))
#define VALA_NULL_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_NULL_TYPE, ValaNullTypeClass))
#define VALA_IS_NULL_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_NULL_TYPE))
#define VALA_IS_NULL_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_NULL_TYPE))
#define VALA_NULL_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_NULL_TYPE, ValaNullTypeClass))

typedef struct _ValaNullType ValaNullType;
typedef struct _ValaNullTypeClass ValaNullTypeClass;

#define VALA_TYPE_UNARY_OPERATOR (vala_unary_operator_get_type ())

#define VALA_TYPE_POINTER_TYPE (vala_pointer_type_get_type ())
#define VALA_POINTER_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_POINTER_TYPE, ValaPointerType))
#define VALA_POINTER_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_POINTER_TYPE, ValaPointerTypeClass))
#define VALA_IS_POINTER_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_POINTER_TYPE))
#define VALA_IS_POINTER_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_POINTER_TYPE))
#define VALA_POINTER_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_POINTER_TYPE, ValaPointerTypeClass))

typedef struct _ValaPointerType ValaPointerType;
typedef struct _ValaPointerTypeClass ValaPointerTypeClass;

#define VALA_TYPE_MEMBER_BINDING (vala_member_binding_get_type ())

#define VALA_TYPE_MEMBER_INITIALIZER (vala_member_initializer_get_type ())
#define VALA_MEMBER_INITIALIZER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_MEMBER_INITIALIZER, ValaMemberInitializer))
#define VALA_MEMBER_INITIALIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_MEMBER_INITIALIZER, ValaMemberInitializerClass))
#define VALA_IS_MEMBER_INITIALIZER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_MEMBER_INITIALIZER))
#define VALA_IS_MEMBER_INITIALIZER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_MEMBER_INITIALIZER))
#define VALA_MEMBER_INITIALIZER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_MEMBER_INITIALIZER, ValaMemberInitializerClass))

typedef struct _ValaMemberInitializer ValaMemberInitializer;
typedef struct _ValaMemberInitializerClass ValaMemberInitializerClass;

#define VALA_TYPE_SYMBOL_ACCESSIBILITY (vala_symbol_accessibility_get_type ())

#define VALA_TYPE_CALLABLE (vala_callable_get_type ())
#define VALA_CALLABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CALLABLE, ValaCallable))
#define VALA_IS_CALLABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CALLABLE))
#define VALA_CALLABLE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), VALA_TYPE_CALLABLE, ValaCallableIface))

typedef struct _ValaCallable ValaCallable;
typedef struct _ValaCallableIface ValaCallableIface;
#define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _ValaCodeVisitor {
	GTypeInstance parent_instance;
	volatile int ref_count;
	ValaCodeVisitorPrivate * priv;
};

struct _ValaCodeVisitorClass {
	GTypeClass parent_class;
	void (*finalize) (ValaCodeVisitor *self);
	void (*visit_source_file) (ValaCodeVisitor* self, ValaSourceFile* source_file);
	void (*visit_namespace) (ValaCodeVisitor* self, ValaNamespace* ns);
	void (*visit_class) (ValaCodeVisitor* self, ValaClass* cl);
	void (*visit_struct) (ValaCodeVisitor* self, ValaStruct* st);
	void (*visit_interface) (ValaCodeVisitor* self, ValaInterface* iface);
	void (*visit_enum) (ValaCodeVisitor* self, ValaEnum* en);
	void (*visit_enum_value) (ValaCodeVisitor* self, ValaEnumValue* ev);
	void (*visit_error_domain) (ValaCodeVisitor* self, ValaErrorDomain* edomain);
	void (*visit_error_code) (ValaCodeVisitor* self, ValaErrorCode* ecode);
	void (*visit_delegate) (ValaCodeVisitor* self, ValaDelegate* d);
	void (*visit_constant) (ValaCodeVisitor* self, ValaConstant* c);
	void (*visit_field) (ValaCodeVisitor* self, ValaField* f);
	void (*visit_method) (ValaCodeVisitor* self, ValaMethod* m);
	void (*visit_creation_method) (ValaCodeVisitor* self, ValaCreationMethod* m);
	void (*visit_formal_parameter) (ValaCodeVisitor* self, ValaParameter* p);
	void (*visit_property) (ValaCodeVisitor* self, ValaProperty* prop);
	void (*visit_property_accessor) (ValaCodeVisitor* self, ValaPropertyAccessor* acc);
	void (*visit_signal) (ValaCodeVisitor* self, ValaSignal* sig);
	void (*visit_constructor) (ValaCodeVisitor* self, ValaConstructor* c);
	void (*visit_destructor) (ValaCodeVisitor* self, ValaDestructor* d);
	void (*visit_type_parameter) (ValaCodeVisitor* self, ValaTypeParameter* p);
	void (*visit_using_directive) (ValaCodeVisitor* self, ValaUsingDirective* ns);
	void (*visit_data_type) (ValaCodeVisitor* self, ValaDataType* type);
	void (*visit_block) (ValaCodeVisitor* self, ValaBlock* b);
	void (*visit_empty_statement) (ValaCodeVisitor* self, ValaEmptyStatement* stmt);
	void (*visit_declaration_statement) (ValaCodeVisitor* self, ValaDeclarationStatement* stmt);
	void (*visit_local_variable) (ValaCodeVisitor* self, ValaLocalVariable* local);
	void (*visit_initializer_list) (ValaCodeVisitor* self, ValaInitializerList* list);
	void (*visit_expression_statement) (ValaCodeVisitor* self, ValaExpressionStatement* stmt);
	void (*visit_if_statement) (ValaCodeVisitor* self, ValaIfStatement* stmt);
	void (*visit_switch_statement) (ValaCodeVisitor* self, ValaSwitchStatement* stmt);
	void (*visit_switch_section) (ValaCodeVisitor* self, ValaSwitchSection* section);
	void (*visit_switch_label) (ValaCodeVisitor* self, ValaSwitchLabel* label);
	void (*visit_loop) (ValaCodeVisitor* self, ValaLoop* stmt);
	void (*visit_while_statement) (ValaCodeVisitor* self, ValaWhileStatement* stmt);
	void (*visit_do_statement) (ValaCodeVisitor* self, ValaDoStatement* stmt);
	void (*visit_for_statement) (ValaCodeVisitor* self, ValaForStatement* stmt);
	void (*visit_foreach_statement) (ValaCodeVisitor* self, ValaForeachStatement* stmt);
	void (*visit_break_statement) (ValaCodeVisitor* self, ValaBreakStatement* stmt);
	void (*visit_continue_statement) (ValaCodeVisitor* self, ValaContinueStatement* stmt);
	void (*visit_return_statement) (ValaCodeVisitor* self, ValaReturnStatement* stmt);
	void (*visit_yield_statement) (ValaCodeVisitor* self, ValaYieldStatement* y);
	void (*visit_throw_statement) (ValaCodeVisitor* self, ValaThrowStatement* stmt);
	void (*visit_try_statement) (ValaCodeVisitor* self, ValaTryStatement* stmt);
	void (*visit_catch_clause) (ValaCodeVisitor* self, ValaCatchClause* clause);
	void (*visit_lock_statement) (ValaCodeVisitor* self, ValaLockStatement* stmt);
	void (*visit_unlock_statement) (ValaCodeVisitor* self, ValaUnlockStatement* stmt);
	void (*visit_delete_statement) (ValaCodeVisitor* self, ValaDeleteStatement* stmt);
	void (*visit_expression) (ValaCodeVisitor* self, ValaExpression* expr);
	void (*visit_array_creation_expression) (ValaCodeVisitor* self, ValaArrayCreationExpression* expr);
	void (*visit_boolean_literal) (ValaCodeVisitor* self, ValaBooleanLiteral* lit);
	void (*visit_character_literal) (ValaCodeVisitor* self, ValaCharacterLiteral* lit);
	void (*visit_integer_literal) (ValaCodeVisitor* self, ValaIntegerLiteral* lit);
	void (*visit_real_literal) (ValaCodeVisitor* self, ValaRealLiteral* lit);
	void (*visit_regex_literal) (ValaCodeVisitor* self, ValaRegexLiteral* lit);
	void (*visit_string_literal) (ValaCodeVisitor* self, ValaStringLiteral* lit);
	void (*visit_template) (ValaCodeVisitor* self, ValaTemplate* tmpl);
	void (*visit_tuple) (ValaCodeVisitor* self, ValaTuple* tuple);
	void (*visit_null_literal) (ValaCodeVisitor* self, ValaNullLiteral* lit);
	void (*visit_member_access) (ValaCodeVisitor* self, ValaMemberAccess* expr);
	void (*visit_method_call) (ValaCodeVisitor* self, ValaMethodCall* expr);
	void (*visit_element_access) (ValaCodeVisitor* self, ValaElementAccess* expr);
	void (*visit_slice_expression) (ValaCodeVisitor* self, ValaSliceExpression* expr);
	void (*visit_base_access) (ValaCodeVisitor* self, ValaBaseAccess* expr);
	void (*visit_postfix_expression) (ValaCodeVisitor* self, ValaPostfixExpression* expr);
	void (*visit_object_creation_expression) (ValaCodeVisitor* self, ValaObjectCreationExpression* expr);
	void (*visit_sizeof_expression) (ValaCodeVisitor* self, ValaSizeofExpression* expr);
	void (*visit_typeof_expression) (ValaCodeVisitor* self, ValaTypeofExpression* expr);
	void (*visit_unary_expression) (ValaCodeVisitor* self, ValaUnaryExpression* expr);
	void (*visit_cast_expression) (ValaCodeVisitor* self, ValaCastExpression* expr);
	void (*visit_named_argument) (ValaCodeVisitor* self, ValaNamedArgument* expr);
	void (*visit_pointer_indirection) (ValaCodeVisitor* self, ValaPointerIndirection* expr);
	void (*visit_addressof_expression) (ValaCodeVisitor* self, ValaAddressofExpression* expr);
	void (*visit_reference_transfer_expression) (ValaCodeVisitor* self, ValaReferenceTransferExpression* expr);
	void (*visit_binary_expression) (ValaCodeVisitor* self, ValaBinaryExpression* expr);
	void (*visit_type_check) (ValaCodeVisitor* self, ValaTypeCheck* expr);
	void (*visit_conditional_expression) (ValaCodeVisitor* self, ValaConditionalExpression* expr);
	void (*visit_lambda_expression) (ValaCodeVisitor* self, ValaLambdaExpression* expr);
	void (*visit_assignment) (ValaCodeVisitor* self, ValaAssignment* a);
	void (*visit_end_full_expression) (ValaCodeVisitor* self, ValaExpression* expr);
};

struct _ValaSemanticAnalyzer {
	ValaCodeVisitor parent_instance;
	ValaSemanticAnalyzerPrivate * priv;
	ValaSymbol* root_symbol;
	ValaBlock* insert_block;
	ValaDataType* void_type;
	ValaDataType* bool_type;
	ValaDataType* string_type;
	ValaDataType* regex_type;
	ValaDataType* uchar_type;
	ValaDataType* short_type;
	ValaDataType* ushort_type;
	ValaDataType* int_type;
	ValaDataType* uint_type;
	ValaDataType* long_type;
	ValaDataType* ulong_type;
	ValaDataType* size_t_type;
	ValaDataType* ssize_t_type;
	ValaDataType* int8_type;
	ValaDataType* unichar_type;
	ValaDataType* double_type;
	ValaDataType* type_type;
	ValaDataType* va_list_type;
	ValaClass* object_type;
	ValaStructValueType* gvalue_type;
	ValaObjectType* gvariant_type;
	ValaDataType* glist_type;
	ValaDataType* gslist_type;
	ValaDataType* garray_type;
	ValaDataType* gvaluearray_type;
	ValaClass* gerror_type;
	ValaDataType* list_type;
	ValaDataType* tuple_type;
	ValaDataType* error_type;
	ValaClass* gsource_type;
	gint next_lambda_id;
	ValaList* replaced_nodes;
};

struct _ValaSemanticAnalyzerClass {
	ValaCodeVisitorClass parent_class;
};

struct _ValaSemanticAnalyzerPrivate {
	ValaCodeContext* _context;
	ValaSymbol* _current_symbol;
	ValaSourceFile* _current_source_file;
};

typedef enum  {
	VALA_PARAMETER_DIRECTION_IN,
	VALA_PARAMETER_DIRECTION_OUT,
	VALA_PARAMETER_DIRECTION_REF
} ValaParameterDirection;

struct _ValaSourceLocation {
	gchar* pos;
	gint line;
	gint column;
};

typedef enum  {
	VALA_UNARY_OPERATOR_NONE,
	VALA_UNARY_OPERATOR_PLUS,
	VALA_UNARY_OPERATOR_MINUS,
	VALA_UNARY_OPERATOR_LOGICAL_NEGATION,
	VALA_UNARY_OPERATOR_BITWISE_COMPLEMENT,
	VALA_UNARY_OPERATOR_INCREMENT,
	VALA_UNARY_OPERATOR_DECREMENT,
	VALA_UNARY_OPERATOR_REF,
	VALA_UNARY_OPERATOR_OUT
} ValaUnaryOperator;

typedef enum  {
	VALA_MEMBER_BINDING_INSTANCE,
	VALA_MEMBER_BINDING_CLASS,
	VALA_MEMBER_BINDING_STATIC
} ValaMemberBinding;

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

struct _ValaCallableIface {
	GTypeInterface parent_iface;
	void (*add_parameter) (ValaCallable* self, ValaParameter* param);
	ValaList* (*get_parameters) (ValaCallable* self);
	ValaDataType* (*get_return_type) (ValaCallable* self);
	void (*set_return_type) (ValaCallable* self, ValaDataType* value);
};


static gpointer vala_semantic_analyzer_parent_class = NULL;

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_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;
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;
GType vala_symbol_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_struct_get_type (void) G_GNUC_CONST;
GType vala_interface_get_type (void) G_GNUC_CONST;
GType vala_enum_get_type (void) G_GNUC_CONST;
GType vala_constant_get_type (void) G_GNUC_CONST;
GType vala_enum_value_get_type (void) G_GNUC_CONST;
GType vala_error_domain_get_type (void) G_GNUC_CONST;
GType vala_error_code_get_type (void) G_GNUC_CONST;
GType vala_delegate_get_type (void) G_GNUC_CONST;
GType vala_variable_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_creation_method_get_type (void) G_GNUC_CONST;
GType vala_parameter_get_type (void) G_GNUC_CONST;
GType vala_property_get_type (void) G_GNUC_CONST;
GType vala_property_accessor_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;
GType vala_using_directive_get_type (void) G_GNUC_CONST;
GType vala_data_type_get_type (void) G_GNUC_CONST;
GType vala_block_get_type (void) G_GNUC_CONST;
GType vala_empty_statement_get_type (void) G_GNUC_CONST;
GType vala_declaration_statement_get_type (void) G_GNUC_CONST;
GType vala_local_variable_get_type (void) G_GNUC_CONST;
GType vala_expression_get_type (void) G_GNUC_CONST;
GType vala_initializer_list_get_type (void) G_GNUC_CONST;
GType vala_expression_statement_get_type (void) G_GNUC_CONST;
GType vala_if_statement_get_type (void) G_GNUC_CONST;
GType vala_switch_statement_get_type (void) G_GNUC_CONST;
GType vala_switch_section_get_type (void) G_GNUC_CONST;
GType vala_switch_label_get_type (void) G_GNUC_CONST;
GType vala_loop_get_type (void) G_GNUC_CONST;
GType vala_while_statement_get_type (void) G_GNUC_CONST;
GType vala_do_statement_get_type (void) G_GNUC_CONST;
GType vala_for_statement_get_type (void) G_GNUC_CONST;
GType vala_foreach_statement_get_type (void) G_GNUC_CONST;
GType vala_break_statement_get_type (void) G_GNUC_CONST;
GType vala_continue_statement_get_type (void) G_GNUC_CONST;
GType vala_return_statement_get_type (void) G_GNUC_CONST;
GType vala_yield_statement_get_type (void) G_GNUC_CONST;
GType vala_throw_statement_get_type (void) G_GNUC_CONST;
GType vala_try_statement_get_type (void) G_GNUC_CONST;
GType vala_catch_clause_get_type (void) G_GNUC_CONST;
GType vala_lock_statement_get_type (void) G_GNUC_CONST;
GType vala_unlock_statement_get_type (void) G_GNUC_CONST;
GType vala_delete_statement_get_type (void) G_GNUC_CONST;
GType vala_array_creation_expression_get_type (void) G_GNUC_CONST;
GType vala_literal_get_type (void) G_GNUC_CONST;
GType vala_boolean_literal_get_type (void) G_GNUC_CONST;
GType vala_character_literal_get_type (void) G_GNUC_CONST;
GType vala_integer_literal_get_type (void) G_GNUC_CONST;
GType vala_real_literal_get_type (void) G_GNUC_CONST;
GType vala_regex_literal_get_type (void) G_GNUC_CONST;
GType vala_string_literal_get_type (void) G_GNUC_CONST;
GType vala_template_get_type (void) G_GNUC_CONST;
GType vala_tuple_get_type (void) G_GNUC_CONST;
GType vala_null_literal_get_type (void) G_GNUC_CONST;
GType vala_member_access_get_type (void) G_GNUC_CONST;
GType vala_method_call_get_type (void) G_GNUC_CONST;
GType vala_element_access_get_type (void) G_GNUC_CONST;
GType vala_slice_expression_get_type (void) G_GNUC_CONST;
GType vala_base_access_get_type (void) G_GNUC_CONST;
GType vala_postfix_expression_get_type (void) G_GNUC_CONST;
GType vala_object_creation_expression_get_type (void) G_GNUC_CONST;
GType vala_sizeof_expression_get_type (void) G_GNUC_CONST;
GType vala_typeof_expression_get_type (void) G_GNUC_CONST;
GType vala_unary_expression_get_type (void) G_GNUC_CONST;
GType vala_cast_expression_get_type (void) G_GNUC_CONST;
GType vala_named_argument_get_type (void) G_GNUC_CONST;
GType vala_pointer_indirection_get_type (void) G_GNUC_CONST;
GType vala_addressof_expression_get_type (void) G_GNUC_CONST;
GType vala_reference_transfer_expression_get_type (void) G_GNUC_CONST;
GType vala_binary_expression_get_type (void) G_GNUC_CONST;
GType vala_typecheck_get_type (void) G_GNUC_CONST;
GType vala_conditional_expression_get_type (void) G_GNUC_CONST;
GType vala_lambda_expression_get_type (void) G_GNUC_CONST;
GType vala_assignment_get_type (void) G_GNUC_CONST;
GType vala_semantic_analyzer_get_type (void) G_GNUC_CONST;
GType vala_value_type_get_type (void) G_GNUC_CONST;
GType vala_struct_value_type_get_type (void) G_GNUC_CONST;
GType vala_reference_type_get_type (void) G_GNUC_CONST;
GType vala_object_type_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;
#define VALA_SEMANTIC_ANALYZER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALA_TYPE_SEMANTIC_ANALYZER, ValaSemanticAnalyzerPrivate))
enum  {
	VALA_SEMANTIC_ANALYZER_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;
ValaVoidType* vala_void_type_new (ValaSourceReference* source_reference);
ValaVoidType* vala_void_type_construct (GType object_type, ValaSourceReference* source_reference);
GType vala_void_type_get_type (void) G_GNUC_CONST;
ValaSemanticAnalyzer* vala_semantic_analyzer_new (void);
ValaSemanticAnalyzer* vala_semantic_analyzer_construct (GType object_type);
ValaCodeVisitor* vala_code_visitor_construct (GType object_type);
void vala_semantic_analyzer_analyze (ValaSemanticAnalyzer* self, ValaCodeContext* context);
void vala_semantic_analyzer_set_context (ValaSemanticAnalyzer* self, ValaCodeContext* value);
ValaNamespace* vala_code_context_get_root (ValaCodeContext* self);
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);
ValaSymbol* vala_scope_lookup (ValaScope* self, const gchar* name);
ValaBooleanType* vala_boolean_type_new (ValaStruct* type_symbol);
ValaBooleanType* vala_boolean_type_construct (GType object_type, ValaStruct* type_symbol);
GType vala_boolean_type_get_type (void) G_GNUC_CONST;
ValaObjectType* vala_object_type_new (ValaObjectTypeSymbol* type_symbol);
ValaObjectType* vala_object_type_construct (GType object_type, ValaObjectTypeSymbol* type_symbol);
ValaIntegerType* vala_integer_type_new (ValaStruct* type_symbol, const gchar* literal_value, const gchar* literal_type_name);
ValaIntegerType* vala_integer_type_construct (GType object_type, ValaStruct* type_symbol, const gchar* literal_value, const gchar* literal_type_name);
GType vala_integer_type_get_type (void) G_GNUC_CONST;
ValaFloatingType* vala_floating_type_new (ValaStruct* type_symbol);
ValaFloatingType* vala_floating_type_construct (GType object_type, ValaStruct* type_symbol);
GType vala_floating_type_get_type (void) G_GNUC_CONST;
ValaStructValueType* vala_struct_value_type_new (ValaStruct* type_symbol);
ValaStructValueType* vala_struct_value_type_construct (GType object_type, ValaStruct* type_symbol);
void vala_semantic_analyzer_set_current_symbol (ValaSemanticAnalyzer* self, ValaSymbol* value);
gboolean vala_code_node_check (ValaCodeNode* self, ValaCodeContext* context);
void vala_code_context_accept (ValaCodeContext* self, ValaCodeVisitor* visitor);
static void vala_semantic_analyzer_real_visit_source_file (ValaCodeVisitor* base, ValaSourceFile* file);
void vala_semantic_analyzer_set_current_source_file (ValaSemanticAnalyzer* self, ValaSourceFile* value);
gboolean vala_source_file_check (ValaSourceFile* self, ValaCodeContext* context);
ValaCodeContext* vala_semantic_analyzer_get_context (ValaSemanticAnalyzer* self);
gboolean vala_semantic_analyzer_is_type_accessible (ValaSemanticAnalyzer* self, ValaSymbol* sym, ValaDataType* type);
gboolean vala_data_type_is_accessible (ValaDataType* self, ValaSymbol* sym);
ValaDataType* vala_semantic_analyzer_get_value_type_for_symbol (ValaSemanticAnalyzer* self, ValaSymbol* sym, gboolean lvalue);
ValaDataType* vala_variable_get_variable_type (ValaVariable* self);
ValaDataType* vala_data_type_copy (ValaDataType* self);
void vala_data_type_set_value_owned (ValaDataType* self, gboolean value);
ValaSymbol* vala_symbol_get_parent_symbol (ValaSymbol* self);
ValaEnumValueType* vala_enum_value_type_new (ValaEnum* type_symbol);
ValaEnumValueType* vala_enum_value_type_construct (GType object_type, ValaEnum* type_symbol);
GType vala_enum_value_type_get_type (void) G_GNUC_CONST;
ValaDataType* vala_constant_get_type_reference (ValaConstant* self);
ValaPropertyAccessor* vala_property_get_set_accessor (ValaProperty* self);
ValaDataType* vala_property_accessor_get_value_type (ValaPropertyAccessor* self);
ValaPropertyAccessor* vala_property_get_get_accessor (ValaProperty* self);
ValaMethodType* vala_method_type_new (ValaMethod* method_symbol);
ValaMethodType* vala_method_type_construct (GType object_type, ValaMethod* method_symbol);
GType vala_method_type_get_type (void) G_GNUC_CONST;
ValaSignalType* vala_signal_type_new (ValaSignal* signal_symbol);
ValaSignalType* vala_signal_type_construct (GType object_type, ValaSignal* signal_symbol);
GType vala_signal_type_get_type (void) G_GNUC_CONST;
ValaSymbol* vala_semantic_analyzer_symbol_lookup_inherited (ValaSymbol* sym, const gchar* name);
ValaList* vala_class_get_base_types (ValaClass* self);
ValaTypeSymbol* vala_data_type_get_data_type (ValaDataType* self);
ValaClass* vala_class_get_base_class (ValaClass* self);
ValaDataType* vala_struct_get_base_type (ValaStruct* self);
ValaList* vala_interface_get_prerequisites (ValaInterface* self);
ValaDataType* vala_semantic_analyzer_get_data_type_for_symbol (ValaTypeSymbol* sym);
ValaList* vala_object_type_symbol_get_type_parameters (ValaObjectTypeSymbol* self);
gboolean vala_struct_is_boolean_type (ValaStruct* self);
gboolean vala_struct_is_integer_type (ValaStruct* self);
gboolean vala_struct_is_floating_type (ValaStruct* self);
ValaList* vala_struct_get_type_parameters (ValaStruct* self);
ValaErrorType* vala_error_type_new (ValaErrorDomain* error_domain, ValaErrorCode* error_code, ValaSourceReference* source_reference);
ValaErrorType* vala_error_type_construct (GType object_type, ValaErrorDomain* error_domain, ValaErrorCode* error_code, ValaSourceReference* source_reference);
GType vala_error_type_get_type (void) G_GNUC_CONST;
void vala_report_error (ValaSourceReference* source, const gchar* message);
gchar* vala_symbol_get_full_name (ValaSymbol* self);
ValaInvalidType* vala_invalid_type_new (void);
ValaInvalidType* vala_invalid_type_construct (GType object_type);
GType vala_invalid_type_get_type (void) G_GNUC_CONST;
GType vala_generic_type_get_type (void) G_GNUC_CONST;
ValaGenericType* vala_generic_type_new (ValaTypeParameter* type_parameter);
ValaGenericType* vala_generic_type_construct (GType object_type, ValaTypeParameter* type_parameter);
void vala_data_type_add_type_argument (ValaDataType* self, ValaDataType* arg);
gboolean vala_semantic_analyzer_check_arguments (ValaSemanticAnalyzer* self, ValaExpression* expr, ValaDataType* mtype, ValaList* params, ValaList* args);
ValaMethod* vala_method_type_get_method_symbol (ValaMethodType* self);
GType vala_attribute_get_type (void) G_GNUC_CONST;
ValaAttribute* vala_code_node_get_attribute (ValaCodeNode* self, const gchar* name);
gboolean vala_parameter_get_ellipsis (ValaParameter* self);
gboolean vala_parameter_get_params_array (ValaParameter* self);
GType vala_parameter_direction_get_type (void) G_GNUC_CONST;
static gboolean vala_semantic_analyzer_check_argument (ValaSemanticAnalyzer* self, ValaExpression* arg, gint i, ValaParameterDirection direction);
ValaParameterDirection vala_parameter_get_direction (ValaParameter* self);
void vala_code_node_set_error (ValaCodeNode* self, gboolean value);
ValaExpression* vala_variable_get_initializer (ValaVariable* self);
ValaSourceReference* vala_code_node_get_source_reference (ValaCodeNode* self);
ValaList* vala_data_type_get_parameters (ValaDataType* self);
gchar* vala_method_type_to_prototype_string (ValaMethodType* self, gboolean with_type_parameters);
gchar* vala_code_node_to_string (ValaCodeNode* self);
void vala_method_call_add_argument (ValaMethodCall* self, ValaExpression* arg);
void vala_object_creation_expression_add_argument (ValaObjectCreationExpression* self, ValaExpression* arg);
gboolean vala_semantic_analyzer_check_variadic_arguments (ValaSemanticAnalyzer* self, ValaIterator* arg_it, gint i, ValaSourceReference* source_reference);
ValaSourceFile* vala_source_reference_get_file (ValaSourceReference* self);
const gchar* vala_source_file_get_filename (ValaSourceFile* self);
GType vala_source_location_get_type (void) G_GNUC_CONST;
ValaSourceLocation* vala_source_location_dup (const ValaSourceLocation* self);
void vala_source_location_free (ValaSourceLocation* self);
void vala_source_reference_get_begin (ValaSourceReference* self, ValaSourceLocation * result);
const gchar* vala_string_literal_get_value (ValaStringLiteral* self);
void vala_string_literal_set_value (ValaStringLiteral* self, const gchar* value);
gboolean vala_code_node_get_error (ValaCodeNode* self);
ValaDataType* vala_expression_get_value_type (ValaExpression* self);
ValaDataType* vala_expression_get_target_type (ValaExpression* self);
GType vala_delegate_type_get_type (void) G_GNUC_CONST;
ValaSymbol* vala_expression_get_symbol_reference (ValaExpression* self);
GType vala_null_type_get_type (void) G_GNUC_CONST;
GType vala_unary_operator_get_type (void) G_GNUC_CONST;
ValaUnaryOperator vala_unary_expression_get_operator (ValaUnaryExpression* self);
gboolean vala_data_type_get_nullable (ValaDataType* self);
void vala_report_warning (ValaSourceReference* source, const gchar* message);
gboolean vala_data_type_is_disposable (ValaDataType* self);
GType vala_pointer_type_get_type (void) G_GNUC_CONST;
gboolean vala_data_type_get_value_owned (ValaDataType* self);
gboolean vala_data_type_compatible (ValaDataType* self, ValaDataType* target_type);
gboolean vala_member_access_get_prototype_access (ValaMemberAccess* self);
ValaDelegate* vala_delegate_type_get_delegate_symbol (ValaDelegateType* self);
gboolean vala_delegate_get_has_target (ValaDelegate* self);
gboolean vala_semantic_analyzer_check_print_format (ValaSemanticAnalyzer* self, const gchar* format, ValaIterator* arg_it, ValaSourceReference* source_reference);
ValaSemanticAnalyzer* vala_code_context_get_analyzer (ValaCodeContext* self);
ValaPointerType* vala_pointer_type_new (ValaDataType* base_type, ValaSourceReference* source_reference);
ValaPointerType* vala_pointer_type_construct (GType object_type, ValaDataType* base_type, ValaSourceReference* source_reference);
void vala_expression_set_target_type (ValaExpression* self, ValaDataType* value);
static ValaDataType* vala_semantic_analyzer_get_instance_base_type (ValaDataType* instance_type, ValaDataType* base_type, ValaCodeNode* node_reference);
ValaList* vala_data_type_get_type_arguments (ValaDataType* self);
ValaDataType* vala_data_type_get_actual_type (ValaDataType* self, ValaDataType* derived_instance_type, ValaList* method_type_arguments, ValaCodeNode* node_reference);
G_GNUC_INTERNAL ValaDataType* vala_semantic_analyzer_get_instance_base_type_for_member (ValaDataType* derived_instance_type, ValaTypeSymbol* type_symbol, ValaCodeNode* node_reference);
ValaDataType* vala_pointer_type_get_base_type (ValaPointerType* self);
ValaDataType* vala_semantic_analyzer_get_actual_type (ValaDataType* derived_instance_type, ValaList* method_type_arguments, ValaGenericType* generic_type, ValaCodeNode* node_reference);
ValaTypeParameter* vala_data_type_get_type_parameter (ValaDataType* self);
gint vala_typesymbol_get_type_parameter_index (ValaTypeSymbol* self, const gchar* name);
const gchar* vala_symbol_get_name (ValaSymbol* self);
gint vala_method_get_type_parameter_index (ValaMethod* self, const gchar* name);
gboolean vala_semantic_analyzer_is_in_instance_method (ValaSemanticAnalyzer* self);
ValaSymbol* vala_semantic_analyzer_get_current_symbol (ValaSemanticAnalyzer* self);
GType vala_member_binding_get_type (void) G_GNUC_CONST;
ValaMemberBinding vala_method_get_binding (ValaMethod* self);
ValaMemberBinding vala_constructor_get_binding (ValaConstructor* self);
ValaMemberBinding vala_destructor_get_binding (ValaDestructor* self);
ValaMemberBinding vala_property_get_binding (ValaProperty* self);
ValaExpression* vala_semantic_analyzer_create_temp_access (ValaLocalVariable* local, ValaDataType* target_type);
ValaMemberAccess* vala_member_access_new_simple (const gchar* member_name, ValaSourceReference* source_reference);
ValaMemberAccess* vala_member_access_construct_simple (GType object_type, const gchar* member_name, ValaSourceReference* source_reference);
ValaReferenceTransferExpression* vala_reference_transfer_expression_new (ValaExpression* inner, ValaSourceReference* source_reference);
ValaReferenceTransferExpression* vala_reference_transfer_expression_construct (GType object_type, ValaExpression* inner, ValaSourceReference* source_reference);
GType vala_member_initializer_get_type (void) G_GNUC_CONST;
void vala_semantic_analyzer_visit_member_initializer (ValaSemanticAnalyzer* self, ValaMemberInitializer* init, ValaDataType* type);
const gchar* vala_member_initializer_get_name (ValaMemberInitializer* self);
void vala_member_initializer_set_symbol_reference (ValaMemberInitializer* self, ValaSymbol* value);
ValaSymbol* vala_member_initializer_get_symbol_reference (ValaMemberInitializer* self);
GType vala_symbol_accessibility_get_type (void) G_GNUC_CONST;
ValaSymbolAccessibility vala_symbol_get_access (ValaSymbol* self);
ValaDataType* vala_property_get_property_type (ValaProperty* self);
gboolean vala_property_accessor_get_writable (ValaPropertyAccessor* self);
ValaExpression* vala_member_initializer_get_initializer (ValaMemberInitializer* self);
void vala_expression_set_formal_target_type (ValaExpression* self, ValaDataType* value);
ValaDataType* vala_expression_get_formal_target_type (ValaExpression* self);
static ValaStruct* vala_semantic_analyzer_get_arithmetic_struct (ValaSemanticAnalyzer* self, ValaDataType* type);
ValaDataType* vala_semantic_analyzer_get_arithmetic_result_type (ValaSemanticAnalyzer* self, ValaDataType* left_type, ValaDataType* right_type);
gint vala_struct_get_rank (ValaStruct* self);
ValaMethod* vala_semantic_analyzer_find_current_method (ValaSemanticAnalyzer* self);
ValaMethod* vala_semantic_analyzer_find_parent_method (ValaSemanticAnalyzer* self, ValaSymbol* sym);
ValaSymbol* vala_semantic_analyzer_find_parent_method_or_property_accessor (ValaSemanticAnalyzer* self, ValaSymbol* sym);
gboolean vala_semantic_analyzer_is_in_constructor (ValaSemanticAnalyzer* self);
gboolean vala_semantic_analyzer_is_in_destructor (ValaSemanticAnalyzer* self);
ValaSourceFile* vala_semantic_analyzer_get_current_source_file (ValaSemanticAnalyzer* self);
ValaTypeSymbol* vala_semantic_analyzer_get_current_type_symbol (ValaSemanticAnalyzer* self);
ValaClass* vala_semantic_analyzer_get_current_class (ValaSemanticAnalyzer* self);
ValaStruct* vala_semantic_analyzer_get_current_struct (ValaSemanticAnalyzer* self);
ValaMethod* vala_semantic_analyzer_get_current_method (ValaSemanticAnalyzer* self);
ValaMethod* vala_semantic_analyzer_get_current_async_method (ValaSemanticAnalyzer* self);
gboolean vala_method_get_coroutine (ValaMethod* self);
ValaPropertyAccessor* vala_semantic_analyzer_get_current_property_accessor (ValaSemanticAnalyzer* self);
ValaSymbol* vala_semantic_analyzer_get_current_method_or_property_accessor (ValaSemanticAnalyzer* self);
ValaDataType* vala_semantic_analyzer_get_current_return_type (ValaSemanticAnalyzer* self);
GType vala_callable_get_type (void) G_GNUC_CONST;
ValaDataType* vala_callable_get_return_type (ValaCallable* self);
gboolean vala_property_accessor_get_readable (ValaPropertyAccessor* self);
static void vala_semantic_analyzer_finalize (ValaCodeVisitor * obj);


ValaSemanticAnalyzer* vala_semantic_analyzer_construct (GType object_type) {
	ValaSemanticAnalyzer* self = NULL;
	self = (ValaSemanticAnalyzer*) vala_code_visitor_construct (object_type);
	return self;
}


ValaSemanticAnalyzer* vala_semantic_analyzer_new (void) {
	return vala_semantic_analyzer_construct (VALA_TYPE_SEMANTIC_ANALYZER);
}


/**
 * Analyze and check code in the specified context.
 *
 * @param context a code context
 */
static gpointer _vala_code_node_ref0 (gpointer self) {
	return self ? vala_code_node_ref (self) : NULL;
}


void vala_semantic_analyzer_analyze (ValaSemanticAnalyzer* self, ValaCodeContext* context) {
	ValaCodeContext* _tmp0_;
	ValaCodeContext* _tmp1_;
	ValaNamespace* _tmp2_;
	ValaNamespace* _tmp3_;
	ValaSymbol* _tmp4_;
	ValaSymbol* _tmp5_;
	ValaScope* _tmp6_;
	ValaScope* _tmp7_;
	ValaSymbol* _tmp8_;
	ValaStruct* _tmp9_;
	ValaBooleanType* _tmp10_;
	ValaSymbol* _tmp11_;
	ValaScope* _tmp12_;
	ValaScope* _tmp13_;
	ValaSymbol* _tmp14_;
	ValaClass* _tmp15_;
	ValaObjectType* _tmp16_;
	ValaSymbol* _tmp17_;
	ValaScope* _tmp18_;
	ValaScope* _tmp19_;
	ValaSymbol* _tmp20_;
	ValaStruct* _tmp21_;
	ValaIntegerType* _tmp22_;
	ValaSymbol* _tmp23_;
	ValaScope* _tmp24_;
	ValaScope* _tmp25_;
	ValaSymbol* _tmp26_;
	ValaStruct* _tmp27_;
	ValaIntegerType* _tmp28_;
	ValaSymbol* _tmp29_;
	ValaScope* _tmp30_;
	ValaScope* _tmp31_;
	ValaSymbol* _tmp32_;
	ValaStruct* _tmp33_;
	ValaIntegerType* _tmp34_;
	ValaSymbol* _tmp35_;
	ValaScope* _tmp36_;
	ValaScope* _tmp37_;
	ValaSymbol* _tmp38_;
	ValaStruct* _tmp39_;
	ValaIntegerType* _tmp40_;
	ValaSymbol* _tmp41_;
	ValaScope* _tmp42_;
	ValaScope* _tmp43_;
	ValaSymbol* _tmp44_;
	ValaStruct* _tmp45_;
	ValaIntegerType* _tmp46_;
	ValaSymbol* _tmp47_;
	ValaScope* _tmp48_;
	ValaScope* _tmp49_;
	ValaSymbol* _tmp50_;
	ValaStruct* _tmp51_;
	ValaIntegerType* _tmp52_;
	ValaSymbol* _tmp53_;
	ValaScope* _tmp54_;
	ValaScope* _tmp55_;
	ValaSymbol* _tmp56_;
	ValaStruct* _tmp57_;
	ValaIntegerType* _tmp58_;
	ValaSymbol* _tmp59_;
	ValaScope* _tmp60_;
	ValaScope* _tmp61_;
	ValaSymbol* _tmp62_;
	ValaStruct* _tmp63_;
	ValaIntegerType* _tmp64_;
	ValaSymbol* _tmp65_;
	ValaScope* _tmp66_;
	ValaScope* _tmp67_;
	ValaSymbol* _tmp68_;
	ValaStruct* _tmp69_;
	ValaIntegerType* _tmp70_;
	ValaSymbol* _tmp71_;
	ValaScope* _tmp72_;
	ValaScope* _tmp73_;
	ValaSymbol* _tmp74_;
	ValaStruct* _tmp75_;
	ValaIntegerType* _tmp76_;
	ValaSymbol* _tmp77_;
	ValaScope* _tmp78_;
	ValaScope* _tmp79_;
	ValaSymbol* _tmp80_;
	ValaStruct* _tmp81_;
	ValaFloatingType* _tmp82_;
	ValaSymbol* _tmp83_;
	ValaScope* _tmp84_;
	ValaScope* _tmp85_;
	ValaSymbol* _tmp86_;
	ValaStruct* _tmp87_;
	ValaStructValueType* _tmp88_;
	ValaStruct* unichar_struct = NULL;
	ValaSymbol* _tmp89_;
	ValaScope* _tmp90_;
	ValaScope* _tmp91_;
	ValaSymbol* _tmp92_;
	ValaStruct* _tmp93_;
	ValaSymbol* glib_ns = NULL;
	ValaSymbol* _tmp96_;
	ValaScope* _tmp97_;
	ValaScope* _tmp98_;
	ValaSymbol* _tmp99_;
	ValaScope* _tmp100_;
	ValaScope* _tmp101_;
	ValaSymbol* _tmp102_;
	ValaScope* _tmp103_;
	ValaScope* _tmp104_;
	ValaSymbol* _tmp105_;
	ValaStruct* _tmp106_;
	ValaIntegerType* _tmp107_;
	ValaScope* _tmp108_;
	ValaScope* _tmp109_;
	ValaSymbol* _tmp110_;
	ValaStruct* _tmp111_;
	ValaStructValueType* _tmp112_;
	ValaScope* _tmp113_;
	ValaScope* _tmp114_;
	ValaSymbol* _tmp115_;
	ValaClass* _tmp116_;
	ValaObjectType* _tmp117_;
	ValaScope* _tmp118_;
	ValaScope* _tmp119_;
	ValaSymbol* _tmp120_;
	ValaClass* _tmp121_;
	ValaObjectType* _tmp122_;
	ValaScope* _tmp123_;
	ValaScope* _tmp124_;
	ValaSymbol* _tmp125_;
	ValaClass* _tmp126_;
	ValaObjectType* _tmp127_;
	ValaScope* _tmp128_;
	ValaScope* _tmp129_;
	ValaSymbol* _tmp130_;
	ValaClass* _tmp131_;
	ValaObjectType* _tmp132_;
	ValaScope* _tmp133_;
	ValaScope* _tmp134_;
	ValaSymbol* _tmp135_;
	ValaClass* _tmp136_;
	ValaObjectType* _tmp137_;
	ValaScope* _tmp138_;
	ValaScope* _tmp139_;
	ValaSymbol* _tmp140_;
	ValaSymbol* _tmp141_;
	ValaScope* _tmp142_;
	ValaScope* _tmp143_;
	ValaSymbol* _tmp144_;
	ValaSymbol* _tmp145_;
	ValaScope* _tmp146_;
	ValaScope* _tmp147_;
	ValaSymbol* _tmp148_;
	ValaClass* _tmp149_;
	ValaObjectType* _tmp150_;
	ValaScope* _tmp151_;
	ValaScope* _tmp152_;
	ValaSymbol* _tmp153_;
	ValaSymbol* _tmp154_;
	ValaCodeContext* _tmp155_;
	ValaNamespace* _tmp156_;
	ValaNamespace* _tmp157_;
	ValaCodeContext* _tmp158_;
	ValaCodeContext* _tmp159_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (context != NULL);
	_tmp0_ = context;
	vala_semantic_analyzer_set_context (self, _tmp0_);
	_tmp1_ = context;
	_tmp2_ = vala_code_context_get_root (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp3_);
	_vala_code_node_unref0 (self->root_symbol);
	self->root_symbol = _tmp4_;
	_tmp5_ = self->root_symbol;
	_tmp6_ = vala_symbol_get_scope (_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_scope_lookup (_tmp7_, "bool");
	_tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp10_ = vala_boolean_type_new (_tmp9_);
	_vala_code_node_unref0 (self->bool_type);
	self->bool_type = (ValaDataType*) _tmp10_;
	_vala_code_node_unref0 (_tmp9_);
	_tmp11_ = self->root_symbol;
	_tmp12_ = vala_symbol_get_scope (_tmp11_);
	_tmp13_ = _tmp12_;
	_tmp14_ = vala_scope_lookup (_tmp13_, "string");
	_tmp15_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp14_, VALA_TYPE_CLASS, ValaClass);
	_tmp16_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp15_);
	_vala_code_node_unref0 (self->string_type);
	self->string_type = (ValaDataType*) _tmp16_;
	_vala_code_node_unref0 (_tmp15_);
	_tmp17_ = self->root_symbol;
	_tmp18_ = vala_symbol_get_scope (_tmp17_);
	_tmp19_ = _tmp18_;
	_tmp20_ = vala_scope_lookup (_tmp19_, "int");
	_tmp21_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp20_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp22_ = vala_integer_type_new (_tmp21_, NULL, NULL);
	_vala_code_node_unref0 (self->int_type);
	self->int_type = (ValaDataType*) _tmp22_;
	_vala_code_node_unref0 (_tmp21_);
	_tmp23_ = self->root_symbol;
	_tmp24_ = vala_symbol_get_scope (_tmp23_);
	_tmp25_ = _tmp24_;
	_tmp26_ = vala_scope_lookup (_tmp25_, "uint");
	_tmp27_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp28_ = vala_integer_type_new (_tmp27_, NULL, NULL);
	_vala_code_node_unref0 (self->uint_type);
	self->uint_type = (ValaDataType*) _tmp28_;
	_vala_code_node_unref0 (_tmp27_);
	_tmp29_ = self->root_symbol;
	_tmp30_ = vala_symbol_get_scope (_tmp29_);
	_tmp31_ = _tmp30_;
	_tmp32_ = vala_scope_lookup (_tmp31_, "uchar");
	_tmp33_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp32_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp34_ = vala_integer_type_new (_tmp33_, NULL, NULL);
	_vala_code_node_unref0 (self->uchar_type);
	self->uchar_type = (ValaDataType*) _tmp34_;
	_vala_code_node_unref0 (_tmp33_);
	_tmp35_ = self->root_symbol;
	_tmp36_ = vala_symbol_get_scope (_tmp35_);
	_tmp37_ = _tmp36_;
	_tmp38_ = vala_scope_lookup (_tmp37_, "int8");
	_tmp39_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp38_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp40_ = vala_integer_type_new (_tmp39_, NULL, NULL);
	_vala_code_node_unref0 (self->int8_type);
	self->int8_type = (ValaDataType*) _tmp40_;
	_vala_code_node_unref0 (_tmp39_);
	_tmp41_ = self->root_symbol;
	_tmp42_ = vala_symbol_get_scope (_tmp41_);
	_tmp43_ = _tmp42_;
	_tmp44_ = vala_scope_lookup (_tmp43_, "short");
	_tmp45_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp44_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp46_ = vala_integer_type_new (_tmp45_, NULL, NULL);
	_vala_code_node_unref0 (self->short_type);
	self->short_type = (ValaDataType*) _tmp46_;
	_vala_code_node_unref0 (_tmp45_);
	_tmp47_ = self->root_symbol;
	_tmp48_ = vala_symbol_get_scope (_tmp47_);
	_tmp49_ = _tmp48_;
	_tmp50_ = vala_scope_lookup (_tmp49_, "ushort");
	_tmp51_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp50_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp52_ = vala_integer_type_new (_tmp51_, NULL, NULL);
	_vala_code_node_unref0 (self->ushort_type);
	self->ushort_type = (ValaDataType*) _tmp52_;
	_vala_code_node_unref0 (_tmp51_);
	_tmp53_ = self->root_symbol;
	_tmp54_ = vala_symbol_get_scope (_tmp53_);
	_tmp55_ = _tmp54_;
	_tmp56_ = vala_scope_lookup (_tmp55_, "long");
	_tmp57_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp58_ = vala_integer_type_new (_tmp57_, NULL, NULL);
	_vala_code_node_unref0 (self->long_type);
	self->long_type = (ValaDataType*) _tmp58_;
	_vala_code_node_unref0 (_tmp57_);
	_tmp59_ = self->root_symbol;
	_tmp60_ = vala_symbol_get_scope (_tmp59_);
	_tmp61_ = _tmp60_;
	_tmp62_ = vala_scope_lookup (_tmp61_, "ulong");
	_tmp63_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp64_ = vala_integer_type_new (_tmp63_, NULL, NULL);
	_vala_code_node_unref0 (self->ulong_type);
	self->ulong_type = (ValaDataType*) _tmp64_;
	_vala_code_node_unref0 (_tmp63_);
	_tmp65_ = self->root_symbol;
	_tmp66_ = vala_symbol_get_scope (_tmp65_);
	_tmp67_ = _tmp66_;
	_tmp68_ = vala_scope_lookup (_tmp67_, "size_t");
	_tmp69_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp70_ = vala_integer_type_new (_tmp69_, NULL, NULL);
	_vala_code_node_unref0 (self->size_t_type);
	self->size_t_type = (ValaDataType*) _tmp70_;
	_vala_code_node_unref0 (_tmp69_);
	_tmp71_ = self->root_symbol;
	_tmp72_ = vala_symbol_get_scope (_tmp71_);
	_tmp73_ = _tmp72_;
	_tmp74_ = vala_scope_lookup (_tmp73_, "ssize_t");
	_tmp75_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp76_ = vala_integer_type_new (_tmp75_, NULL, NULL);
	_vala_code_node_unref0 (self->ssize_t_type);
	self->ssize_t_type = (ValaDataType*) _tmp76_;
	_vala_code_node_unref0 (_tmp75_);
	_tmp77_ = self->root_symbol;
	_tmp78_ = vala_symbol_get_scope (_tmp77_);
	_tmp79_ = _tmp78_;
	_tmp80_ = vala_scope_lookup (_tmp79_, "double");
	_tmp81_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp82_ = vala_floating_type_new (_tmp81_);
	_vala_code_node_unref0 (self->double_type);
	self->double_type = (ValaDataType*) _tmp82_;
	_vala_code_node_unref0 (_tmp81_);
	_tmp83_ = self->root_symbol;
	_tmp84_ = vala_symbol_get_scope (_tmp83_);
	_tmp85_ = _tmp84_;
	_tmp86_ = vala_scope_lookup (_tmp85_, "va_list");
	_tmp87_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp86_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp88_ = vala_struct_value_type_new (_tmp87_);
	_vala_code_node_unref0 (self->va_list_type);
	self->va_list_type = (ValaDataType*) _tmp88_;
	_vala_code_node_unref0 (_tmp87_);
	_tmp89_ = self->root_symbol;
	_tmp90_ = vala_symbol_get_scope (_tmp89_);
	_tmp91_ = _tmp90_;
	_tmp92_ = vala_scope_lookup (_tmp91_, "unichar");
	unichar_struct = G_TYPE_CHECK_INSTANCE_CAST (_tmp92_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp93_ = unichar_struct;
	if (_tmp93_ != NULL) {
		ValaStruct* _tmp94_;
		ValaIntegerType* _tmp95_;
		_tmp94_ = unichar_struct;
		_tmp95_ = vala_integer_type_new (_tmp94_, NULL, NULL);
		_vala_code_node_unref0 (self->unichar_type);
		self->unichar_type = (ValaDataType*) _tmp95_;
	}
	_tmp96_ = self->root_symbol;
	_tmp97_ = vala_symbol_get_scope (_tmp96_);
	_tmp98_ = _tmp97_;
	_tmp99_ = vala_scope_lookup (_tmp98_, "GLib");
	glib_ns = _tmp99_;
	_tmp100_ = vala_symbol_get_scope (glib_ns);
	_tmp101_ = _tmp100_;
	_tmp102_ = vala_scope_lookup (_tmp101_, "Object");
	_vala_code_node_unref0 (self->object_type);
	self->object_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp102_, VALA_TYPE_CLASS, ValaClass);
	_tmp103_ = vala_symbol_get_scope (glib_ns);
	_tmp104_ = _tmp103_;
	_tmp105_ = vala_scope_lookup (_tmp104_, "Type");
	_tmp106_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp105_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp107_ = vala_integer_type_new (_tmp106_, NULL, NULL);
	_vala_code_node_unref0 (self->type_type);
	self->type_type = (ValaDataType*) _tmp107_;
	_vala_code_node_unref0 (_tmp106_);
	_tmp108_ = vala_symbol_get_scope (glib_ns);
	_tmp109_ = _tmp108_;
	_tmp110_ = vala_scope_lookup (_tmp109_, "Value");
	_tmp111_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp110_, VALA_TYPE_STRUCT, ValaStruct);
	_tmp112_ = vala_struct_value_type_new (_tmp111_);
	_vala_code_node_unref0 (self->gvalue_type);
	self->gvalue_type = _tmp112_;
	_vala_code_node_unref0 (_tmp111_);
	_tmp113_ = vala_symbol_get_scope (glib_ns);
	_tmp114_ = _tmp113_;
	_tmp115_ = vala_scope_lookup (_tmp114_, "Variant");
	_tmp116_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp115_, VALA_TYPE_CLASS, ValaClass);
	_tmp117_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp116_);
	_vala_code_node_unref0 (self->gvariant_type);
	self->gvariant_type = _tmp117_;
	_vala_code_node_unref0 (_tmp116_);
	_tmp118_ = vala_symbol_get_scope (glib_ns);
	_tmp119_ = _tmp118_;
	_tmp120_ = vala_scope_lookup (_tmp119_, "List");
	_tmp121_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp120_, VALA_TYPE_CLASS, ValaClass);
	_tmp122_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp121_);
	_vala_code_node_unref0 (self->glist_type);
	self->glist_type = (ValaDataType*) _tmp122_;
	_vala_code_node_unref0 (_tmp121_);
	_tmp123_ = vala_symbol_get_scope (glib_ns);
	_tmp124_ = _tmp123_;
	_tmp125_ = vala_scope_lookup (_tmp124_, "SList");
	_tmp126_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp125_, VALA_TYPE_CLASS, ValaClass);
	_tmp127_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp126_);
	_vala_code_node_unref0 (self->gslist_type);
	self->gslist_type = (ValaDataType*) _tmp127_;
	_vala_code_node_unref0 (_tmp126_);
	_tmp128_ = vala_symbol_get_scope (glib_ns);
	_tmp129_ = _tmp128_;
	_tmp130_ = vala_scope_lookup (_tmp129_, "Array");
	_tmp131_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp130_, VALA_TYPE_CLASS, ValaClass);
	_tmp132_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp131_);
	_vala_code_node_unref0 (self->garray_type);
	self->garray_type = (ValaDataType*) _tmp132_;
	_vala_code_node_unref0 (_tmp131_);
	_tmp133_ = vala_symbol_get_scope (glib_ns);
	_tmp134_ = _tmp133_;
	_tmp135_ = vala_scope_lookup (_tmp134_, "ValueArray");
	_tmp136_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp135_, VALA_TYPE_CLASS, ValaClass);
	_tmp137_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp136_);
	_vala_code_node_unref0 (self->gvaluearray_type);
	self->gvaluearray_type = (ValaDataType*) _tmp137_;
	_vala_code_node_unref0 (_tmp136_);
	_tmp138_ = vala_symbol_get_scope (glib_ns);
	_tmp139_ = _tmp138_;
	_tmp140_ = vala_scope_lookup (_tmp139_, "Error");
	_vala_code_node_unref0 (self->gerror_type);
	self->gerror_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp140_, VALA_TYPE_CLASS, ValaClass);
	_tmp141_ = self->root_symbol;
	_tmp142_ = vala_symbol_get_scope (_tmp141_);
	_tmp143_ = _tmp142_;
	_tmp144_ = vala_scope_lookup (_tmp143_, "GLib");
	_tmp145_ = _tmp144_;
	_tmp146_ = vala_symbol_get_scope (_tmp145_);
	_tmp147_ = _tmp146_;
	_tmp148_ = vala_scope_lookup (_tmp147_, "Regex");
	_tmp149_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp148_, VALA_TYPE_CLASS, ValaClass);
	_tmp150_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp149_);
	_vala_code_node_unref0 (self->regex_type);
	self->regex_type = (ValaDataType*) _tmp150_;
	_vala_code_node_unref0 (_tmp149_);
	_vala_code_node_unref0 (_tmp145_);
	_tmp151_ = vala_symbol_get_scope (glib_ns);
	_tmp152_ = _tmp151_;
	_tmp153_ = vala_scope_lookup (_tmp152_, "Source");
	_vala_code_node_unref0 (self->gsource_type);
	self->gsource_type = G_TYPE_CHECK_INSTANCE_CAST (_tmp153_, VALA_TYPE_CLASS, ValaClass);
	_tmp154_ = self->root_symbol;
	vala_semantic_analyzer_set_current_symbol (self, _tmp154_);
	_tmp155_ = context;
	_tmp156_ = vala_code_context_get_root (_tmp155_);
	_tmp157_ = _tmp156_;
	_tmp158_ = context;
	vala_code_node_check ((ValaCodeNode*) _tmp157_, _tmp158_);
	_tmp159_ = context;
	vala_code_context_accept (_tmp159_, (ValaCodeVisitor*) self);
	_vala_code_node_unref0 (glib_ns);
	_vala_code_node_unref0 (unichar_struct);
}


static void vala_semantic_analyzer_real_visit_source_file (ValaCodeVisitor* base, ValaSourceFile* file) {
	ValaSemanticAnalyzer * self;
	ValaSourceFile* _tmp0_;
	ValaSourceFile* _tmp1_;
	ValaCodeContext* _tmp2_;
	self = (ValaSemanticAnalyzer*) base;
	g_return_if_fail (file != NULL);
	_tmp0_ = file;
	vala_semantic_analyzer_set_current_source_file (self, _tmp0_);
	_tmp1_ = file;
	_tmp2_ = self->priv->_context;
	vala_source_file_check (_tmp1_, _tmp2_);
}


gboolean vala_semantic_analyzer_is_type_accessible (ValaSemanticAnalyzer* self, ValaSymbol* sym, ValaDataType* type) {
	gboolean result = FALSE;
	ValaDataType* _tmp0_;
	ValaSymbol* _tmp1_;
	gboolean _tmp2_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (sym != NULL, FALSE);
	g_return_val_if_fail (type != NULL, FALSE);
	_tmp0_ = type;
	_tmp1_ = sym;
	_tmp2_ = vala_data_type_is_accessible (_tmp0_, _tmp1_);
	result = _tmp2_;
	return result;
}


ValaDataType* vala_semantic_analyzer_get_value_type_for_symbol (ValaSemanticAnalyzer* self, ValaSymbol* sym, gboolean lvalue) {
	ValaDataType* result = NULL;
	ValaSymbol* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (sym != NULL, NULL);
	_tmp0_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_FIELD)) {
		ValaField* f = NULL;
		ValaSymbol* _tmp1_;
		ValaField* _tmp2_;
		ValaDataType* type = NULL;
		ValaField* _tmp3_;
		ValaDataType* _tmp4_;
		ValaDataType* _tmp5_;
		ValaDataType* _tmp6_;
		gboolean _tmp7_;
		_tmp1_ = sym;
		_tmp2_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_FIELD, ValaField));
		f = _tmp2_;
		_tmp3_ = f;
		_tmp4_ = vala_variable_get_variable_type ((ValaVariable*) _tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = vala_data_type_copy (_tmp5_);
		type = _tmp6_;
		_tmp7_ = lvalue;
		if (!_tmp7_) {
			ValaDataType* _tmp8_;
			_tmp8_ = type;
			vala_data_type_set_value_owned (_tmp8_, FALSE);
		}
		result = type;
		_vala_code_node_unref0 (f);
		return result;
	} else {
		ValaSymbol* _tmp9_;
		_tmp9_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, VALA_TYPE_ENUM_VALUE)) {
			ValaSymbol* _tmp10_;
			ValaSymbol* _tmp11_;
			ValaSymbol* _tmp12_;
			ValaEnumValueType* _tmp13_;
			_tmp10_ = sym;
			_tmp11_ = vala_symbol_get_parent_symbol (_tmp10_);
			_tmp12_ = _tmp11_;
			_tmp13_ = vala_enum_value_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, VALA_TYPE_ENUM, ValaEnum));
			result = (ValaDataType*) _tmp13_;
			return result;
		} else {
			ValaSymbol* _tmp14_;
			_tmp14_ = sym;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, VALA_TYPE_CONSTANT)) {
				ValaConstant* c = NULL;
				ValaSymbol* _tmp15_;
				ValaConstant* _tmp16_;
				ValaConstant* _tmp17_;
				ValaDataType* _tmp18_;
				ValaDataType* _tmp19_;
				ValaDataType* _tmp20_;
				_tmp15_ = sym;
				_tmp16_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, VALA_TYPE_CONSTANT, ValaConstant));
				c = _tmp16_;
				_tmp17_ = c;
				_tmp18_ = vala_constant_get_type_reference (_tmp17_);
				_tmp19_ = _tmp18_;
				_tmp20_ = _vala_code_node_ref0 (_tmp19_);
				result = _tmp20_;
				_vala_code_node_unref0 (c);
				return result;
			} else {
				ValaSymbol* _tmp21_;
				_tmp21_ = sym;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, VALA_TYPE_PROPERTY)) {
					ValaProperty* prop = NULL;
					ValaSymbol* _tmp22_;
					ValaProperty* _tmp23_;
					gboolean _tmp24_;
					_tmp22_ = sym;
					_tmp23_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp22_, VALA_TYPE_PROPERTY, ValaProperty));
					prop = _tmp23_;
					_tmp24_ = lvalue;
					if (_tmp24_) {
						gboolean _tmp25_ = FALSE;
						ValaProperty* _tmp26_;
						ValaPropertyAccessor* _tmp27_;
						ValaPropertyAccessor* _tmp28_;
						_tmp26_ = prop;
						_tmp27_ = vala_property_get_set_accessor (_tmp26_);
						_tmp28_ = _tmp27_;
						if (_tmp28_ != NULL) {
							ValaProperty* _tmp29_;
							ValaPropertyAccessor* _tmp30_;
							ValaPropertyAccessor* _tmp31_;
							ValaDataType* _tmp32_;
							ValaDataType* _tmp33_;
							_tmp29_ = prop;
							_tmp30_ = vala_property_get_set_accessor (_tmp29_);
							_tmp31_ = _tmp30_;
							_tmp32_ = vala_property_accessor_get_value_type (_tmp31_);
							_tmp33_ = _tmp32_;
							_tmp25_ = _tmp33_ != NULL;
						} else {
							_tmp25_ = FALSE;
						}
						if (_tmp25_) {
							ValaProperty* _tmp34_;
							ValaPropertyAccessor* _tmp35_;
							ValaPropertyAccessor* _tmp36_;
							ValaDataType* _tmp37_;
							ValaDataType* _tmp38_;
							ValaDataType* _tmp39_;
							_tmp34_ = prop;
							_tmp35_ = vala_property_get_set_accessor (_tmp34_);
							_tmp36_ = _tmp35_;
							_tmp37_ = vala_property_accessor_get_value_type (_tmp36_);
							_tmp38_ = _tmp37_;
							_tmp39_ = vala_data_type_copy (_tmp38_);
							result = _tmp39_;
							_vala_code_node_unref0 (prop);
							return result;
						}
					} else {
						gboolean _tmp40_ = FALSE;
						ValaProperty* _tmp41_;
						ValaPropertyAccessor* _tmp42_;
						ValaPropertyAccessor* _tmp43_;
						_tmp41_ = prop;
						_tmp42_ = vala_property_get_get_accessor (_tmp41_);
						_tmp43_ = _tmp42_;
						if (_tmp43_ != NULL) {
							ValaProperty* _tmp44_;
							ValaPropertyAccessor* _tmp45_;
							ValaPropertyAccessor* _tmp46_;
							ValaDataType* _tmp47_;
							ValaDataType* _tmp48_;
							_tmp44_ = prop;
							_tmp45_ = vala_property_get_get_accessor (_tmp44_);
							_tmp46_ = _tmp45_;
							_tmp47_ = vala_property_accessor_get_value_type (_tmp46_);
							_tmp48_ = _tmp47_;
							_tmp40_ = _tmp48_ != NULL;
						} else {
							_tmp40_ = FALSE;
						}
						if (_tmp40_) {
							ValaProperty* _tmp49_;
							ValaPropertyAccessor* _tmp50_;
							ValaPropertyAccessor* _tmp51_;
							ValaDataType* _tmp52_;
							ValaDataType* _tmp53_;
							ValaDataType* _tmp54_;
							_tmp49_ = prop;
							_tmp50_ = vala_property_get_get_accessor (_tmp49_);
							_tmp51_ = _tmp50_;
							_tmp52_ = vala_property_accessor_get_value_type (_tmp51_);
							_tmp53_ = _tmp52_;
							_tmp54_ = vala_data_type_copy (_tmp53_);
							result = _tmp54_;
							_vala_code_node_unref0 (prop);
							return result;
						}
					}
					_vala_code_node_unref0 (prop);
				} else {
					ValaSymbol* _tmp55_;
					_tmp55_ = sym;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp55_, VALA_TYPE_PARAMETER)) {
						ValaParameter* p = NULL;
						ValaSymbol* _tmp56_;
						ValaParameter* _tmp57_;
						ValaDataType* type = NULL;
						ValaParameter* _tmp58_;
						ValaDataType* _tmp59_;
						ValaDataType* _tmp60_;
						ValaDataType* _tmp61_;
						gboolean _tmp62_;
						_tmp56_ = sym;
						_tmp57_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, VALA_TYPE_PARAMETER, ValaParameter));
						p = _tmp57_;
						_tmp58_ = p;
						_tmp59_ = vala_variable_get_variable_type ((ValaVariable*) _tmp58_);
						_tmp60_ = _tmp59_;
						_tmp61_ = vala_data_type_copy (_tmp60_);
						type = _tmp61_;
						_tmp62_ = lvalue;
						if (!_tmp62_) {
							ValaDataType* _tmp63_;
							_tmp63_ = type;
							vala_data_type_set_value_owned (_tmp63_, FALSE);
						}
						result = type;
						_vala_code_node_unref0 (p);
						return result;
					} else {
						ValaSymbol* _tmp64_;
						_tmp64_ = sym;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp64_, VALA_TYPE_LOCAL_VARIABLE)) {
							ValaLocalVariable* local = NULL;
							ValaSymbol* _tmp65_;
							ValaLocalVariable* _tmp66_;
							ValaDataType* type = NULL;
							ValaLocalVariable* _tmp67_;
							ValaDataType* _tmp68_;
							ValaDataType* _tmp69_;
							ValaDataType* _tmp70_;
							gboolean _tmp71_;
							_tmp65_ = sym;
							_tmp66_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp65_, VALA_TYPE_LOCAL_VARIABLE, ValaLocalVariable));
							local = _tmp66_;
							_tmp67_ = local;
							_tmp68_ = vala_variable_get_variable_type ((ValaVariable*) _tmp67_);
							_tmp69_ = _tmp68_;
							_tmp70_ = vala_data_type_copy (_tmp69_);
							type = _tmp70_;
							_tmp71_ = lvalue;
							if (!_tmp71_) {
								ValaDataType* _tmp72_;
								_tmp72_ = type;
								vala_data_type_set_value_owned (_tmp72_, FALSE);
							}
							result = type;
							_vala_code_node_unref0 (local);
							return result;
						} else {
							ValaSymbol* _tmp73_;
							_tmp73_ = sym;
							if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp73_, VALA_TYPE_METHOD)) {
								ValaSymbol* _tmp74_;
								ValaMethodType* _tmp75_;
								_tmp74_ = sym;
								_tmp75_ = vala_method_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp74_, VALA_TYPE_METHOD, ValaMethod));
								result = (ValaDataType*) _tmp75_;
								return result;
							} else {
								ValaSymbol* _tmp76_;
								_tmp76_ = sym;
								if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp76_, VALA_TYPE_SIGNAL)) {
									ValaSymbol* _tmp77_;
									ValaSignalType* _tmp78_;
									_tmp77_ = sym;
									_tmp78_ = vala_signal_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp77_, VALA_TYPE_SIGNAL, ValaSignal));
									result = (ValaDataType*) _tmp78_;
									return result;
								}
							}
						}
					}
				}
			}
		}
	}
	result = NULL;
	return result;
}


ValaSymbol* vala_semantic_analyzer_symbol_lookup_inherited (ValaSymbol* sym, const gchar* name) {
	ValaSymbol* result = NULL;
	ValaSymbol* _result_ = NULL;
	ValaSymbol* _tmp0_;
	ValaScope* _tmp1_;
	ValaScope* _tmp2_;
	const gchar* _tmp3_;
	ValaSymbol* _tmp4_;
	ValaSymbol* _tmp5_;
	ValaSymbol* _tmp6_;
	g_return_val_if_fail (sym != NULL, NULL);
	g_return_val_if_fail (name != NULL, NULL);
	_tmp0_ = sym;
	_tmp1_ = vala_symbol_get_scope (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = name;
	_tmp4_ = vala_scope_lookup (_tmp2_, _tmp3_);
	_result_ = _tmp4_;
	_tmp5_ = _result_;
	if (_tmp5_ != NULL) {
		result = _result_;
		return result;
	}
	_tmp6_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, VALA_TYPE_CLASS)) {
		ValaClass* cl = NULL;
		ValaSymbol* _tmp7_;
		ValaClass* _tmp8_;
		ValaClass* _tmp31_;
		ValaClass* _tmp32_;
		ValaClass* _tmp33_;
		_tmp7_ = sym;
		_tmp8_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, VALA_TYPE_CLASS, ValaClass));
		cl = _tmp8_;
		{
			ValaList* _base_type_list = NULL;
			ValaClass* _tmp9_;
			ValaList* _tmp10_;
			gint _base_type_size = 0;
			ValaList* _tmp11_;
			gint _tmp12_;
			gint _tmp13_;
			gint _base_type_index = 0;
			_tmp9_ = cl;
			_tmp10_ = vala_class_get_base_types (_tmp9_);
			_base_type_list = _tmp10_;
			_tmp11_ = _base_type_list;
			_tmp12_ = vala_collection_get_size ((ValaCollection*) _tmp11_);
			_tmp13_ = _tmp12_;
			_base_type_size = _tmp13_;
			_base_type_index = -1;
			while (TRUE) {
				gint _tmp14_;
				gint _tmp15_;
				gint _tmp16_;
				ValaDataType* base_type = NULL;
				ValaList* _tmp17_;
				gint _tmp18_;
				gpointer _tmp19_;
				ValaDataType* _tmp20_;
				ValaTypeSymbol* _tmp21_;
				ValaTypeSymbol* _tmp22_;
				_tmp14_ = _base_type_index;
				_base_type_index = _tmp14_ + 1;
				_tmp15_ = _base_type_index;
				_tmp16_ = _base_type_size;
				if (!(_tmp15_ < _tmp16_)) {
					break;
				}
				_tmp17_ = _base_type_list;
				_tmp18_ = _base_type_index;
				_tmp19_ = vala_list_get (_tmp17_, _tmp18_);
				base_type = (ValaDataType*) _tmp19_;
				_tmp20_ = base_type;
				_tmp21_ = vala_data_type_get_data_type (_tmp20_);
				_tmp22_ = _tmp21_;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, VALA_TYPE_INTERFACE)) {
					ValaDataType* _tmp23_;
					ValaTypeSymbol* _tmp24_;
					ValaTypeSymbol* _tmp25_;
					ValaScope* _tmp26_;
					ValaScope* _tmp27_;
					const gchar* _tmp28_;
					ValaSymbol* _tmp29_;
					ValaSymbol* _tmp30_;
					_tmp23_ = base_type;
					_tmp24_ = vala_data_type_get_data_type (_tmp23_);
					_tmp25_ = _tmp24_;
					_tmp26_ = vala_symbol_get_scope ((ValaSymbol*) _tmp25_);
					_tmp27_ = _tmp26_;
					_tmp28_ = name;
					_tmp29_ = vala_scope_lookup (_tmp27_, _tmp28_);
					_vala_code_node_unref0 (_result_);
					_result_ = _tmp29_;
					_tmp30_ = _result_;
					if (_tmp30_ != NULL) {
						result = _result_;
						_vala_code_node_unref0 (base_type);
						_vala_iterable_unref0 (_base_type_list);
						_vala_code_node_unref0 (cl);
						return result;
					}
				}
				_vala_code_node_unref0 (base_type);
			}
			_vala_iterable_unref0 (_base_type_list);
		}
		_tmp31_ = cl;
		_tmp32_ = vala_class_get_base_class (_tmp31_);
		_tmp33_ = _tmp32_;
		if (_tmp33_ != NULL) {
			ValaClass* _tmp34_;
			ValaClass* _tmp35_;
			ValaClass* _tmp36_;
			const gchar* _tmp37_;
			ValaSymbol* _tmp38_;
			_tmp34_ = cl;
			_tmp35_ = vala_class_get_base_class (_tmp34_);
			_tmp36_ = _tmp35_;
			_tmp37_ = name;
			_tmp38_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp36_, _tmp37_);
			result = _tmp38_;
			_vala_code_node_unref0 (cl);
			_vala_code_node_unref0 (_result_);
			return result;
		}
		_vala_code_node_unref0 (cl);
	} else {
		ValaSymbol* _tmp39_;
		_tmp39_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, VALA_TYPE_STRUCT)) {
			ValaStruct* st = NULL;
			ValaSymbol* _tmp40_;
			ValaStruct* _tmp41_;
			ValaStruct* _tmp42_;
			ValaDataType* _tmp43_;
			ValaDataType* _tmp44_;
			_tmp40_ = sym;
			_tmp41_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp40_, VALA_TYPE_STRUCT, ValaStruct));
			st = _tmp41_;
			_tmp42_ = st;
			_tmp43_ = vala_struct_get_base_type (_tmp42_);
			_tmp44_ = _tmp43_;
			if (_tmp44_ != NULL) {
				ValaStruct* _tmp45_;
				ValaDataType* _tmp46_;
				ValaDataType* _tmp47_;
				ValaTypeSymbol* _tmp48_;
				ValaTypeSymbol* _tmp49_;
				const gchar* _tmp50_;
				ValaSymbol* _tmp51_;
				ValaSymbol* _tmp52_;
				_tmp45_ = st;
				_tmp46_ = vala_struct_get_base_type (_tmp45_);
				_tmp47_ = _tmp46_;
				_tmp48_ = vala_data_type_get_data_type (_tmp47_);
				_tmp49_ = _tmp48_;
				_tmp50_ = name;
				_tmp51_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp49_, _tmp50_);
				_vala_code_node_unref0 (_result_);
				_result_ = _tmp51_;
				_tmp52_ = _result_;
				if (_tmp52_ != NULL) {
					result = _result_;
					_vala_code_node_unref0 (st);
					return result;
				}
			}
			_vala_code_node_unref0 (st);
		} else {
			ValaSymbol* _tmp53_;
			_tmp53_ = sym;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp53_, VALA_TYPE_INTERFACE)) {
				ValaInterface* iface = NULL;
				ValaSymbol* _tmp54_;
				ValaInterface* _tmp55_;
				_tmp54_ = sym;
				_tmp55_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, VALA_TYPE_INTERFACE, ValaInterface));
				iface = _tmp55_;
				{
					ValaList* _prerequisite_list = NULL;
					ValaInterface* _tmp56_;
					ValaList* _tmp57_;
					gint _prerequisite_size = 0;
					ValaList* _tmp58_;
					gint _tmp59_;
					gint _tmp60_;
					gint _prerequisite_index = 0;
					_tmp56_ = iface;
					_tmp57_ = vala_interface_get_prerequisites (_tmp56_);
					_prerequisite_list = _tmp57_;
					_tmp58_ = _prerequisite_list;
					_tmp59_ = vala_collection_get_size ((ValaCollection*) _tmp58_);
					_tmp60_ = _tmp59_;
					_prerequisite_size = _tmp60_;
					_prerequisite_index = -1;
					while (TRUE) {
						gint _tmp61_;
						gint _tmp62_;
						gint _tmp63_;
						ValaDataType* prerequisite = NULL;
						ValaList* _tmp64_;
						gint _tmp65_;
						gpointer _tmp66_;
						ValaDataType* _tmp67_;
						ValaTypeSymbol* _tmp68_;
						ValaTypeSymbol* _tmp69_;
						_tmp61_ = _prerequisite_index;
						_prerequisite_index = _tmp61_ + 1;
						_tmp62_ = _prerequisite_index;
						_tmp63_ = _prerequisite_size;
						if (!(_tmp62_ < _tmp63_)) {
							break;
						}
						_tmp64_ = _prerequisite_list;
						_tmp65_ = _prerequisite_index;
						_tmp66_ = vala_list_get (_tmp64_, _tmp65_);
						prerequisite = (ValaDataType*) _tmp66_;
						_tmp67_ = prerequisite;
						_tmp68_ = vala_data_type_get_data_type (_tmp67_);
						_tmp69_ = _tmp68_;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp69_, VALA_TYPE_INTERFACE)) {
							ValaDataType* _tmp70_;
							ValaTypeSymbol* _tmp71_;
							ValaTypeSymbol* _tmp72_;
							const gchar* _tmp73_;
							ValaSymbol* _tmp74_;
							ValaSymbol* _tmp75_;
							_tmp70_ = prerequisite;
							_tmp71_ = vala_data_type_get_data_type (_tmp70_);
							_tmp72_ = _tmp71_;
							_tmp73_ = name;
							_tmp74_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp72_, _tmp73_);
							_vala_code_node_unref0 (_result_);
							_result_ = _tmp74_;
							_tmp75_ = _result_;
							if (_tmp75_ != NULL) {
								result = _result_;
								_vala_code_node_unref0 (prerequisite);
								_vala_iterable_unref0 (_prerequisite_list);
								_vala_code_node_unref0 (iface);
								return result;
							}
						}
						_vala_code_node_unref0 (prerequisite);
					}
					_vala_iterable_unref0 (_prerequisite_list);
				}
				{
					ValaList* _prerequisite_list = NULL;
					ValaInterface* _tmp76_;
					ValaList* _tmp77_;
					gint _prerequisite_size = 0;
					ValaList* _tmp78_;
					gint _tmp79_;
					gint _tmp80_;
					gint _prerequisite_index = 0;
					_tmp76_ = iface;
					_tmp77_ = vala_interface_get_prerequisites (_tmp76_);
					_prerequisite_list = _tmp77_;
					_tmp78_ = _prerequisite_list;
					_tmp79_ = vala_collection_get_size ((ValaCollection*) _tmp78_);
					_tmp80_ = _tmp79_;
					_prerequisite_size = _tmp80_;
					_prerequisite_index = -1;
					while (TRUE) {
						gint _tmp81_;
						gint _tmp82_;
						gint _tmp83_;
						ValaDataType* prerequisite = NULL;
						ValaList* _tmp84_;
						gint _tmp85_;
						gpointer _tmp86_;
						ValaDataType* _tmp87_;
						ValaTypeSymbol* _tmp88_;
						ValaTypeSymbol* _tmp89_;
						_tmp81_ = _prerequisite_index;
						_prerequisite_index = _tmp81_ + 1;
						_tmp82_ = _prerequisite_index;
						_tmp83_ = _prerequisite_size;
						if (!(_tmp82_ < _tmp83_)) {
							break;
						}
						_tmp84_ = _prerequisite_list;
						_tmp85_ = _prerequisite_index;
						_tmp86_ = vala_list_get (_tmp84_, _tmp85_);
						prerequisite = (ValaDataType*) _tmp86_;
						_tmp87_ = prerequisite;
						_tmp88_ = vala_data_type_get_data_type (_tmp87_);
						_tmp89_ = _tmp88_;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp89_, VALA_TYPE_CLASS)) {
							ValaDataType* _tmp90_;
							ValaTypeSymbol* _tmp91_;
							ValaTypeSymbol* _tmp92_;
							const gchar* _tmp93_;
							ValaSymbol* _tmp94_;
							ValaSymbol* _tmp95_;
							_tmp90_ = prerequisite;
							_tmp91_ = vala_data_type_get_data_type (_tmp90_);
							_tmp92_ = _tmp91_;
							_tmp93_ = name;
							_tmp94_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp92_, _tmp93_);
							_vala_code_node_unref0 (_result_);
							_result_ = _tmp94_;
							_tmp95_ = _result_;
							if (_tmp95_ != NULL) {
								result = _result_;
								_vala_code_node_unref0 (prerequisite);
								_vala_iterable_unref0 (_prerequisite_list);
								_vala_code_node_unref0 (iface);
								return result;
							}
						}
						_vala_code_node_unref0 (prerequisite);
					}
					_vala_iterable_unref0 (_prerequisite_list);
				}
				_vala_code_node_unref0 (iface);
			}
		}
	}
	result = NULL;
	_vala_code_node_unref0 (_result_);
	return result;
}


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


ValaDataType* vala_semantic_analyzer_get_data_type_for_symbol (ValaTypeSymbol* sym) {
	ValaDataType* result = NULL;
	ValaDataType* type = NULL;
	ValaList* type_parameters = NULL;
	ValaTypeSymbol* _tmp0_;
	ValaList* _tmp42_;
	g_return_val_if_fail (sym != NULL, NULL);
	type = NULL;
	type_parameters = NULL;
	_tmp0_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_OBJECT_TYPE_SYMBOL)) {
		ValaTypeSymbol* _tmp1_;
		ValaObjectType* _tmp2_;
		ValaTypeSymbol* _tmp3_;
		ValaList* _tmp4_;
		_tmp1_ = sym;
		_tmp2_ = vala_object_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbol));
		_vala_code_node_unref0 (type);
		type = (ValaDataType*) _tmp2_;
		_tmp3_ = sym;
		_tmp4_ = vala_object_type_symbol_get_type_parameters (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbol));
		_vala_iterable_unref0 (type_parameters);
		type_parameters = _tmp4_;
	} else {
		ValaTypeSymbol* _tmp5_;
		_tmp5_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_STRUCT)) {
			ValaStruct* st = NULL;
			ValaTypeSymbol* _tmp6_;
			ValaStruct* _tmp7_;
			ValaStruct* _tmp8_;
			gboolean _tmp9_;
			ValaStruct* _tmp22_;
			ValaList* _tmp23_;
			_tmp6_ = sym;
			_tmp7_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, VALA_TYPE_STRUCT, ValaStruct));
			st = _tmp7_;
			_tmp8_ = st;
			_tmp9_ = vala_struct_is_boolean_type (_tmp8_);
			if (_tmp9_) {
				ValaStruct* _tmp10_;
				ValaBooleanType* _tmp11_;
				_tmp10_ = st;
				_tmp11_ = vala_boolean_type_new (_tmp10_);
				_vala_code_node_unref0 (type);
				type = (ValaDataType*) _tmp11_;
			} else {
				ValaStruct* _tmp12_;
				gboolean _tmp13_;
				_tmp12_ = st;
				_tmp13_ = vala_struct_is_integer_type (_tmp12_);
				if (_tmp13_) {
					ValaStruct* _tmp14_;
					ValaIntegerType* _tmp15_;
					_tmp14_ = st;
					_tmp15_ = vala_integer_type_new (_tmp14_, NULL, NULL);
					_vala_code_node_unref0 (type);
					type = (ValaDataType*) _tmp15_;
				} else {
					ValaStruct* _tmp16_;
					gboolean _tmp17_;
					_tmp16_ = st;
					_tmp17_ = vala_struct_is_floating_type (_tmp16_);
					if (_tmp17_) {
						ValaStruct* _tmp18_;
						ValaFloatingType* _tmp19_;
						_tmp18_ = st;
						_tmp19_ = vala_floating_type_new (_tmp18_);
						_vala_code_node_unref0 (type);
						type = (ValaDataType*) _tmp19_;
					} else {
						ValaStruct* _tmp20_;
						ValaStructValueType* _tmp21_;
						_tmp20_ = st;
						_tmp21_ = vala_struct_value_type_new (_tmp20_);
						_vala_code_node_unref0 (type);
						type = (ValaDataType*) _tmp21_;
					}
				}
			}
			_tmp22_ = st;
			_tmp23_ = vala_struct_get_type_parameters (_tmp22_);
			_vala_iterable_unref0 (type_parameters);
			type_parameters = _tmp23_;
			_vala_code_node_unref0 (st);
		} else {
			ValaTypeSymbol* _tmp24_;
			_tmp24_ = sym;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp24_, VALA_TYPE_ENUM)) {
				ValaTypeSymbol* _tmp25_;
				ValaEnumValueType* _tmp26_;
				_tmp25_ = sym;
				_tmp26_ = vala_enum_value_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp25_, VALA_TYPE_ENUM, ValaEnum));
				_vala_code_node_unref0 (type);
				type = (ValaDataType*) _tmp26_;
			} else {
				ValaTypeSymbol* _tmp27_;
				_tmp27_ = sym;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp27_, VALA_TYPE_ERROR_DOMAIN)) {
					ValaTypeSymbol* _tmp28_;
					ValaErrorType* _tmp29_;
					_tmp28_ = sym;
					_tmp29_ = vala_error_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, VALA_TYPE_ERROR_DOMAIN, ValaErrorDomain), NULL, NULL);
					_vala_code_node_unref0 (type);
					type = (ValaDataType*) _tmp29_;
				} else {
					ValaTypeSymbol* _tmp30_;
					_tmp30_ = sym;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp30_, VALA_TYPE_ERROR_CODE)) {
						ValaTypeSymbol* _tmp31_;
						ValaSymbol* _tmp32_;
						ValaSymbol* _tmp33_;
						ValaTypeSymbol* _tmp34_;
						ValaErrorType* _tmp35_;
						_tmp31_ = sym;
						_tmp32_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp31_);
						_tmp33_ = _tmp32_;
						_tmp34_ = sym;
						_tmp35_ = vala_error_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp33_, VALA_TYPE_ERROR_DOMAIN, ValaErrorDomain), G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, VALA_TYPE_ERROR_CODE, ValaErrorCode), NULL);
						_vala_code_node_unref0 (type);
						type = (ValaDataType*) _tmp35_;
					} else {
						ValaTypeSymbol* _tmp36_;
						gchar* _tmp37_;
						gchar* _tmp38_;
						gchar* _tmp39_;
						gchar* _tmp40_;
						ValaInvalidType* _tmp41_;
						_tmp36_ = sym;
						_tmp37_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp36_);
						_tmp38_ = _tmp37_;
						_tmp39_ = g_strdup_printf ("internal error: `%s' is not a supported type", _tmp38_);
						_tmp40_ = _tmp39_;
						vala_report_error (NULL, _tmp40_);
						_g_free0 (_tmp40_);
						_g_free0 (_tmp38_);
						_tmp41_ = vala_invalid_type_new ();
						result = (ValaDataType*) _tmp41_;
						_vala_iterable_unref0 (type_parameters);
						_vala_code_node_unref0 (type);
						return result;
					}
				}
			}
		}
	}
	_tmp42_ = type_parameters;
	if (_tmp42_ != NULL) {
		{
			ValaList* _type_param_list = NULL;
			ValaList* _tmp43_;
			ValaList* _tmp44_;
			gint _type_param_size = 0;
			ValaList* _tmp45_;
			gint _tmp46_;
			gint _tmp47_;
			gint _type_param_index = 0;
			_tmp43_ = type_parameters;
			_tmp44_ = _vala_iterable_ref0 (_tmp43_);
			_type_param_list = _tmp44_;
			_tmp45_ = _type_param_list;
			_tmp46_ = vala_collection_get_size ((ValaCollection*) _tmp45_);
			_tmp47_ = _tmp46_;
			_type_param_size = _tmp47_;
			_type_param_index = -1;
			while (TRUE) {
				gint _tmp48_;
				gint _tmp49_;
				gint _tmp50_;
				ValaTypeParameter* type_param = NULL;
				ValaList* _tmp51_;
				gint _tmp52_;
				gpointer _tmp53_;
				ValaGenericType* type_arg = NULL;
				ValaTypeParameter* _tmp54_;
				ValaGenericType* _tmp55_;
				ValaGenericType* _tmp56_;
				ValaDataType* _tmp57_;
				ValaGenericType* _tmp58_;
				_tmp48_ = _type_param_index;
				_type_param_index = _tmp48_ + 1;
				_tmp49_ = _type_param_index;
				_tmp50_ = _type_param_size;
				if (!(_tmp49_ < _tmp50_)) {
					break;
				}
				_tmp51_ = _type_param_list;
				_tmp52_ = _type_param_index;
				_tmp53_ = vala_list_get (_tmp51_, _tmp52_);
				type_param = (ValaTypeParameter*) _tmp53_;
				_tmp54_ = type_param;
				_tmp55_ = vala_generic_type_new (_tmp54_);
				type_arg = _tmp55_;
				_tmp56_ = type_arg;
				vala_data_type_set_value_owned ((ValaDataType*) _tmp56_, TRUE);
				_tmp57_ = type;
				_tmp58_ = type_arg;
				vala_data_type_add_type_argument (_tmp57_, (ValaDataType*) _tmp58_);
				_vala_code_node_unref0 (type_arg);
				_vala_code_node_unref0 (type_param);
			}
			_vala_iterable_unref0 (_type_param_list);
		}
	}
	result = type;
	_vala_iterable_unref0 (type_parameters);
	return result;
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end = NULL;
	gchar* _tmp0_;
	glong _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	_tmp0_ = str;
	_tmp1_ = maxlen;
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
	end = _tmp2_;
	_tmp3_ = end;
	if (_tmp3_ == NULL) {
		glong _tmp4_;
		_tmp4_ = maxlen;
		result = _tmp4_;
		return result;
	} else {
		gchar* _tmp5_;
		gchar* _tmp6_;
		_tmp5_ = end;
		_tmp6_ = str;
		result = (glong) (_tmp5_ - _tmp6_);
		return result;
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_;
	glong _tmp8_;
	glong _tmp14_;
	glong _tmp17_;
	glong _tmp18_;
	glong _tmp19_;
	glong _tmp20_;
	glong _tmp21_;
	gchar* _tmp22_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp1_ = offset;
	if (_tmp1_ >= ((glong) 0)) {
		glong _tmp2_;
		_tmp2_ = len;
		_tmp0_ = _tmp2_ >= ((glong) 0);
	} else {
		_tmp0_ = FALSE;
	}
	if (_tmp0_) {
		glong _tmp3_;
		glong _tmp4_;
		glong _tmp5_;
		_tmp3_ = offset;
		_tmp4_ = len;
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
		string_length = _tmp5_;
	} else {
		gint _tmp6_;
		gint _tmp7_;
		_tmp6_ = strlen (self);
		_tmp7_ = _tmp6_;
		string_length = (glong) _tmp7_;
	}
	_tmp8_ = offset;
	if (_tmp8_ < ((glong) 0)) {
		glong _tmp9_;
		glong _tmp10_;
		glong _tmp11_;
		_tmp9_ = string_length;
		_tmp10_ = offset;
		offset = _tmp9_ + _tmp10_;
		_tmp11_ = offset;
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
	} else {
		glong _tmp12_;
		glong _tmp13_;
		_tmp12_ = offset;
		_tmp13_ = string_length;
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
	}
	_tmp14_ = len;
	if (_tmp14_ < ((glong) 0)) {
		glong _tmp15_;
		glong _tmp16_;
		_tmp15_ = string_length;
		_tmp16_ = offset;
		len = _tmp15_ - _tmp16_;
	}
	_tmp17_ = offset;
	_tmp18_ = len;
	_tmp19_ = string_length;
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
	_tmp20_ = offset;
	_tmp21_ = len;
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
	result = _tmp22_;
	return result;
}


gboolean vala_semantic_analyzer_check_arguments (ValaSemanticAnalyzer* self, ValaExpression* expr, ValaDataType* mtype, ValaList* params, ValaList* args) {
	gboolean result = FALSE;
	ValaExpression* prev_arg = NULL;
	ValaIterator* arg_it = NULL;
	ValaList* _tmp0_;
	ValaIterator* _tmp1_;
	gboolean _tmp2_ = FALSE;
	ValaDataType* _tmp3_;
	gboolean diag = FALSE;
	gboolean ellipsis = FALSE;
	gint i = 0;
	gboolean _tmp105_ = FALSE;
	gboolean _tmp106_;
	gboolean _tmp151_ = FALSE;
	gboolean _tmp152_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (expr != NULL, FALSE);
	g_return_val_if_fail (mtype != NULL, FALSE);
	g_return_val_if_fail (params != NULL, FALSE);
	g_return_val_if_fail (args != NULL, FALSE);
	prev_arg = NULL;
	_tmp0_ = args;
	_tmp1_ = vala_iterable_iterator ((ValaIterable*) _tmp0_);
	arg_it = _tmp1_;
	_tmp3_ = mtype;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_METHOD_TYPE)) {
		ValaDataType* _tmp4_;
		ValaMethod* _tmp5_;
		ValaMethod* _tmp6_;
		ValaAttribute* _tmp7_;
		ValaAttribute* _tmp8_;
		_tmp4_ = mtype;
		_tmp5_ = vala_method_type_get_method_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALA_TYPE_METHOD_TYPE, ValaMethodType));
		_tmp6_ = _tmp5_;
		_tmp7_ = vala_code_node_get_attribute ((ValaCodeNode*) _tmp6_, "Diagnostics");
		_tmp8_ = _tmp7_;
		_tmp2_ = _tmp8_ != NULL;
		_vala_code_node_unref0 (_tmp8_);
	} else {
		_tmp2_ = FALSE;
	}
	diag = _tmp2_;
	ellipsis = FALSE;
	i = 0;
	{
		ValaList* _param_list = NULL;
		ValaList* _tmp9_;
		ValaList* _tmp10_;
		gint _param_size = 0;
		ValaList* _tmp11_;
		gint _tmp12_;
		gint _tmp13_;
		gint _param_index = 0;
		_tmp9_ = params;
		_tmp10_ = _vala_iterable_ref0 (_tmp9_);
		_param_list = _tmp10_;
		_tmp11_ = _param_list;
		_tmp12_ = vala_collection_get_size ((ValaCollection*) _tmp11_);
		_tmp13_ = _tmp12_;
		_param_size = _tmp13_;
		_param_index = -1;
		while (TRUE) {
			gint _tmp14_;
			gint _tmp15_;
			gint _tmp16_;
			ValaParameter* param = NULL;
			ValaList* _tmp17_;
			gint _tmp18_;
			gpointer _tmp19_;
			ValaParameter* _tmp20_;
			ValaCodeContext* _tmp21_;
			gboolean _tmp22_;
			ValaParameter* _tmp23_;
			gboolean _tmp24_;
			gboolean _tmp25_;
			ValaParameter* _tmp26_;
			gboolean _tmp27_;
			gboolean _tmp28_;
			gboolean _tmp41_ = FALSE;
			ValaIterator* _tmp42_;
			_tmp14_ = _param_index;
			_param_index = _tmp14_ + 1;
			_tmp15_ = _param_index;
			_tmp16_ = _param_size;
			if (!(_tmp15_ < _tmp16_)) {
				break;
			}
			_tmp17_ = _param_list;
			_tmp18_ = _param_index;
			_tmp19_ = vala_list_get (_tmp17_, _tmp18_);
			param = (ValaParameter*) _tmp19_;
			_tmp20_ = param;
			_tmp21_ = self->priv->_context;
			_tmp22_ = vala_code_node_check ((ValaCodeNode*) _tmp20_, _tmp21_);
			if (!_tmp22_) {
				result = FALSE;
				_vala_code_node_unref0 (param);
				_vala_iterable_unref0 (_param_list);
				_vala_iterator_unref0 (arg_it);
				_vala_code_node_unref0 (prev_arg);
				return result;
			}
			_tmp23_ = param;
			_tmp24_ = vala_parameter_get_ellipsis (_tmp23_);
			_tmp25_ = _tmp24_;
			if (_tmp25_) {
				ellipsis = TRUE;
				_vala_code_node_unref0 (param);
				break;
			}
			_tmp26_ = param;
			_tmp27_ = vala_parameter_get_params_array (_tmp26_);
			_tmp28_ = _tmp27_;
			if (_tmp28_) {
				while (TRUE) {
					ValaIterator* _tmp29_;
					gboolean _tmp30_;
					ValaExpression* arg = NULL;
					ValaIterator* _tmp31_;
					gpointer _tmp32_;
					ValaExpression* _tmp33_;
					gint _tmp34_;
					ValaParameter* _tmp35_;
					ValaParameterDirection _tmp36_;
					ValaParameterDirection _tmp37_;
					gboolean _tmp38_;
					gint _tmp40_;
					_tmp29_ = arg_it;
					_tmp30_ = vala_iterator_next (_tmp29_);
					if (!_tmp30_) {
						break;
					}
					_tmp31_ = arg_it;
					_tmp32_ = vala_iterator_get (_tmp31_);
					arg = (ValaExpression*) _tmp32_;
					_tmp33_ = arg;
					_tmp34_ = i;
					_tmp35_ = param;
					_tmp36_ = vala_parameter_get_direction (_tmp35_);
					_tmp37_ = _tmp36_;
					_tmp38_ = vala_semantic_analyzer_check_argument (self, _tmp33_, _tmp34_, _tmp37_);
					if (!_tmp38_) {
						ValaExpression* _tmp39_;
						_tmp39_ = expr;
						vala_code_node_set_error ((ValaCodeNode*) _tmp39_, TRUE);
						result = FALSE;
						_vala_code_node_unref0 (arg);
						_vala_code_node_unref0 (param);
						_vala_iterable_unref0 (_param_list);
						_vala_iterator_unref0 (arg_it);
						_vala_code_node_unref0 (prev_arg);
						return result;
					}
					_tmp40_ = i;
					i = _tmp40_ + 1;
					_vala_code_node_unref0 (arg);
				}
				_vala_code_node_unref0 (param);
				break;
			}
			_tmp42_ = arg_it;
			if (_tmp42_ == NULL) {
				_tmp41_ = TRUE;
			} else {
				ValaIterator* _tmp43_;
				gboolean _tmp44_;
				_tmp43_ = arg_it;
				_tmp44_ = vala_iterator_next (_tmp43_);
				_tmp41_ = !_tmp44_;
			}
			if (_tmp41_) {
				ValaParameter* _tmp45_;
				ValaExpression* _tmp46_;
				ValaExpression* _tmp47_;
				_tmp45_ = param;
				_tmp46_ = vala_variable_get_initializer ((ValaVariable*) _tmp45_);
				_tmp47_ = _tmp46_;
				if (_tmp47_ == NULL) {
					ValaExpression* _tmp48_;
					ValaMethodType* m = NULL;
					ValaDataType* _tmp49_;
					ValaMethodType* _tmp50_;
					ValaMethodType* _tmp51_;
					_tmp48_ = expr;
					vala_code_node_set_error ((ValaCodeNode*) _tmp48_, TRUE);
					_tmp49_ = mtype;
					_tmp50_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp49_, VALA_TYPE_METHOD_TYPE) ? ((ValaMethodType*) _tmp49_) : NULL);
					m = _tmp50_;
					_tmp51_ = m;
					if (_tmp51_ != NULL) {
						ValaExpression* _tmp52_;
						ValaSourceReference* _tmp53_;
						ValaSourceReference* _tmp54_;
						ValaMethodType* _tmp55_;
						ValaList* _tmp56_;
						ValaList* _tmp57_;
						gint _tmp58_;
						gint _tmp59_;
						ValaList* _tmp60_;
						gint _tmp61_;
						gint _tmp62_;
						ValaMethodType* _tmp63_;
						gchar* _tmp64_;
						gchar* _tmp65_;
						gchar* _tmp66_;
						gchar* _tmp67_;
						_tmp52_ = expr;
						_tmp53_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp52_);
						_tmp54_ = _tmp53_;
						_tmp55_ = m;
						_tmp56_ = vala_data_type_get_parameters ((ValaDataType*) _tmp55_);
						_tmp57_ = _tmp56_;
						_tmp58_ = vala_collection_get_size ((ValaCollection*) _tmp57_);
						_tmp59_ = _tmp58_;
						_tmp60_ = args;
						_tmp61_ = vala_collection_get_size ((ValaCollection*) _tmp60_);
						_tmp62_ = _tmp61_;
						_tmp63_ = m;
						_tmp64_ = vala_method_type_to_prototype_string (_tmp63_, FALSE);
						_tmp65_ = _tmp64_;
						_tmp66_ = g_strdup_printf ("%d missing arguments for `%s'", _tmp59_ - _tmp62_, _tmp65_);
						_tmp67_ = _tmp66_;
						vala_report_error (_tmp54_, _tmp67_);
						_g_free0 (_tmp67_);
						_g_free0 (_tmp65_);
						_vala_iterable_unref0 (_tmp57_);
					} else {
						ValaExpression* _tmp68_;
						ValaSourceReference* _tmp69_;
						ValaSourceReference* _tmp70_;
						ValaDataType* _tmp71_;
						gchar* _tmp72_;
						gchar* _tmp73_;
						ValaList* _tmp74_;
						gint _tmp75_;
						gint _tmp76_;
						gchar* _tmp77_;
						gchar* _tmp78_;
						_tmp68_ = expr;
						_tmp69_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp68_);
						_tmp70_ = _tmp69_;
						_tmp71_ = mtype;
						_tmp72_ = vala_code_node_to_string ((ValaCodeNode*) _tmp71_);
						_tmp73_ = _tmp72_;
						_tmp74_ = args;
						_tmp75_ = vala_collection_get_size ((ValaCollection*) _tmp74_);
						_tmp76_ = _tmp75_;
						_tmp77_ = g_strdup_printf ("Too few arguments, method `%s' does not take %d arguments", _tmp73_, _tmp76_);
						_tmp78_ = _tmp77_;
						vala_report_error (_tmp70_, _tmp78_);
						_g_free0 (_tmp78_);
						_g_free0 (_tmp73_);
					}
					result = FALSE;
					_vala_code_node_unref0 (m);
					_vala_code_node_unref0 (param);
					_vala_iterable_unref0 (_param_list);
					_vala_iterator_unref0 (arg_it);
					_vala_code_node_unref0 (prev_arg);
					return result;
				} else {
					ValaMethodCall* invocation_expr = NULL;
					ValaExpression* _tmp79_;
					ValaMethodCall* _tmp80_;
					ValaObjectCreationExpression* object_creation_expr = NULL;
					ValaExpression* _tmp81_;
					ValaObjectCreationExpression* _tmp82_;
					ValaMethodCall* _tmp83_;
					_tmp79_ = expr;
					_tmp80_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp79_, VALA_TYPE_METHOD_CALL) ? ((ValaMethodCall*) _tmp79_) : NULL);
					invocation_expr = _tmp80_;
					_tmp81_ = expr;
					_tmp82_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp81_, VALA_TYPE_OBJECT_CREATION_EXPRESSION) ? ((ValaObjectCreationExpression*) _tmp81_) : NULL);
					object_creation_expr = _tmp82_;
					_tmp83_ = invocation_expr;
					if (_tmp83_ != NULL) {
						ValaMethodCall* _tmp84_;
						ValaParameter* _tmp85_;
						ValaExpression* _tmp86_;
						ValaExpression* _tmp87_;
						_tmp84_ = invocation_expr;
						_tmp85_ = param;
						_tmp86_ = vala_variable_get_initializer ((ValaVariable*) _tmp85_);
						_tmp87_ = _tmp86_;
						vala_method_call_add_argument (_tmp84_, _tmp87_);
					} else {
						ValaObjectCreationExpression* _tmp88_;
						_tmp88_ = object_creation_expr;
						if (_tmp88_ != NULL) {
							ValaObjectCreationExpression* _tmp89_;
							ValaParameter* _tmp90_;
							ValaExpression* _tmp91_;
							ValaExpression* _tmp92_;
							_tmp89_ = object_creation_expr;
							_tmp90_ = param;
							_tmp91_ = vala_variable_get_initializer ((ValaVariable*) _tmp90_);
							_tmp92_ = _tmp91_;
							vala_object_creation_expression_add_argument (_tmp89_, _tmp92_);
						} else {
							g_assert_not_reached ();
						}
					}
					_vala_iterator_unref0 (arg_it);
					arg_it = NULL;
					_vala_code_node_unref0 (object_creation_expr);
					_vala_code_node_unref0 (invocation_expr);
				}
			} else {
				ValaExpression* arg = NULL;
				ValaIterator* _tmp93_;
				gpointer _tmp94_;
				ValaExpression* _tmp95_;
				gint _tmp96_;
				ValaParameter* _tmp97_;
				ValaParameterDirection _tmp98_;
				ValaParameterDirection _tmp99_;
				gboolean _tmp100_;
				ValaExpression* _tmp102_;
				ValaExpression* _tmp103_;
				gint _tmp104_;
				_tmp93_ = arg_it;
				_tmp94_ = vala_iterator_get (_tmp93_);
				arg = (ValaExpression*) _tmp94_;
				_tmp95_ = arg;
				_tmp96_ = i;
				_tmp97_ = param;
				_tmp98_ = vala_parameter_get_direction (_tmp97_);
				_tmp99_ = _tmp98_;
				_tmp100_ = vala_semantic_analyzer_check_argument (self, _tmp95_, _tmp96_, _tmp99_);
				if (!_tmp100_) {
					ValaExpression* _tmp101_;
					_tmp101_ = expr;
					vala_code_node_set_error ((ValaCodeNode*) _tmp101_, TRUE);
					result = FALSE;
					_vala_code_node_unref0 (arg);
					_vala_code_node_unref0 (param);
					_vala_iterable_unref0 (_param_list);
					_vala_iterator_unref0 (arg_it);
					_vala_code_node_unref0 (prev_arg);
					return result;
				}
				_tmp102_ = arg;
				_tmp103_ = _vala_code_node_ref0 (_tmp102_);
				_vala_code_node_unref0 (prev_arg);
				prev_arg = _tmp103_;
				_tmp104_ = i;
				i = _tmp104_ + 1;
				_vala_code_node_unref0 (arg);
			}
			_vala_code_node_unref0 (param);
		}
		_vala_iterable_unref0 (_param_list);
	}
	_tmp106_ = ellipsis;
	if (_tmp106_) {
		ValaIterator* _tmp107_;
		gint _tmp108_;
		ValaExpression* _tmp109_;
		ValaSourceReference* _tmp110_;
		ValaSourceReference* _tmp111_;
		gboolean _tmp112_;
		_tmp107_ = arg_it;
		_tmp108_ = i;
		_tmp109_ = expr;
		_tmp110_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp109_);
		_tmp111_ = _tmp110_;
		_tmp112_ = vala_semantic_analyzer_check_variadic_arguments (self, _tmp107_, _tmp108_, _tmp111_);
		_tmp105_ = !_tmp112_;
	} else {
		_tmp105_ = FALSE;
	}
	if (_tmp105_) {
		ValaExpression* _tmp113_;
		_tmp113_ = expr;
		vala_code_node_set_error ((ValaCodeNode*) _tmp113_, TRUE);
		result = FALSE;
		_vala_iterator_unref0 (arg_it);
		_vala_code_node_unref0 (prev_arg);
		return result;
	} else {
		gboolean _tmp114_ = FALSE;
		gboolean _tmp115_ = FALSE;
		gboolean _tmp116_;
		_tmp116_ = ellipsis;
		if (!_tmp116_) {
			ValaIterator* _tmp117_;
			_tmp117_ = arg_it;
			_tmp115_ = _tmp117_ != NULL;
		} else {
			_tmp115_ = FALSE;
		}
		if (_tmp115_) {
			ValaIterator* _tmp118_;
			gboolean _tmp119_;
			_tmp118_ = arg_it;
			_tmp119_ = vala_iterator_next (_tmp118_);
			_tmp114_ = _tmp119_;
		} else {
			_tmp114_ = FALSE;
		}
		if (_tmp114_) {
			ValaExpression* _tmp120_;
			ValaMethodType* m = NULL;
			ValaDataType* _tmp121_;
			ValaMethodType* _tmp122_;
			ValaMethodType* _tmp123_;
			_tmp120_ = expr;
			vala_code_node_set_error ((ValaCodeNode*) _tmp120_, TRUE);
			_tmp121_ = mtype;
			_tmp122_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp121_, VALA_TYPE_METHOD_TYPE) ? ((ValaMethodType*) _tmp121_) : NULL);
			m = _tmp122_;
			_tmp123_ = m;
			if (_tmp123_ != NULL) {
				ValaExpression* _tmp124_;
				ValaSourceReference* _tmp125_;
				ValaSourceReference* _tmp126_;
				ValaList* _tmp127_;
				gint _tmp128_;
				gint _tmp129_;
				ValaMethodType* _tmp130_;
				ValaList* _tmp131_;
				ValaList* _tmp132_;
				gint _tmp133_;
				gint _tmp134_;
				ValaMethodType* _tmp135_;
				gchar* _tmp136_;
				gchar* _tmp137_;
				gchar* _tmp138_;
				gchar* _tmp139_;
				_tmp124_ = expr;
				_tmp125_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp124_);
				_tmp126_ = _tmp125_;
				_tmp127_ = args;
				_tmp128_ = vala_collection_get_size ((ValaCollection*) _tmp127_);
				_tmp129_ = _tmp128_;
				_tmp130_ = m;
				_tmp131_ = vala_data_type_get_parameters ((ValaDataType*) _tmp130_);
				_tmp132_ = _tmp131_;
				_tmp133_ = vala_collection_get_size ((ValaCollection*) _tmp132_);
				_tmp134_ = _tmp133_;
				_tmp135_ = m;
				_tmp136_ = vala_method_type_to_prototype_string (_tmp135_, FALSE);
				_tmp137_ = _tmp136_;
				_tmp138_ = g_strdup_printf ("%d extra arguments for `%s'", _tmp129_ - _tmp134_, _tmp137_);
				_tmp139_ = _tmp138_;
				vala_report_error (_tmp126_, _tmp139_);
				_g_free0 (_tmp139_);
				_g_free0 (_tmp137_);
				_vala_iterable_unref0 (_tmp132_);
			} else {
				ValaExpression* _tmp140_;
				ValaSourceReference* _tmp141_;
				ValaSourceReference* _tmp142_;
				ValaDataType* _tmp143_;
				gchar* _tmp144_;
				gchar* _tmp145_;
				ValaList* _tmp146_;
				gint _tmp147_;
				gint _tmp148_;
				gchar* _tmp149_;
				gchar* _tmp150_;
				_tmp140_ = expr;
				_tmp141_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp140_);
				_tmp142_ = _tmp141_;
				_tmp143_ = mtype;
				_tmp144_ = vala_code_node_to_string ((ValaCodeNode*) _tmp143_);
				_tmp145_ = _tmp144_;
				_tmp146_ = args;
				_tmp147_ = vala_collection_get_size ((ValaCollection*) _tmp146_);
				_tmp148_ = _tmp147_;
				_tmp149_ = g_strdup_printf ("Too many arguments, method `%s' does not take %d arguments", _tmp145_, _tmp148_);
				_tmp150_ = _tmp149_;
				vala_report_error (_tmp142_, _tmp150_);
				_g_free0 (_tmp150_);
				_g_free0 (_tmp145_);
			}
			result = FALSE;
			_vala_code_node_unref0 (m);
			_vala_iterator_unref0 (arg_it);
			_vala_code_node_unref0 (prev_arg);
			return result;
		}
	}
	_tmp152_ = diag;
	if (_tmp152_) {
		ValaExpression* _tmp153_;
		_tmp153_ = prev_arg;
		_tmp151_ = _tmp153_ != NULL;
	} else {
		_tmp151_ = FALSE;
	}
	if (_tmp151_) {
		ValaStringLiteral* format_arg = NULL;
		ValaExpression* _tmp154_;
		ValaStringLiteral* _tmp155_;
		ValaStringLiteral* _tmp156_;
		_tmp154_ = prev_arg;
		_tmp155_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp154_, VALA_TYPE_STRING_LITERAL) ? ((ValaStringLiteral*) _tmp154_) : NULL);
		format_arg = _tmp155_;
		_tmp156_ = format_arg;
		if (_tmp156_ != NULL) {
			ValaStringLiteral* _tmp157_;
			ValaExpression* _tmp158_;
			ValaSourceReference* _tmp159_;
			ValaSourceReference* _tmp160_;
			ValaSourceFile* _tmp161_;
			ValaSourceFile* _tmp162_;
			const gchar* _tmp163_;
			const gchar* _tmp164_;
			gchar* _tmp165_;
			gchar* _tmp166_;
			ValaExpression* _tmp167_;
			ValaSourceReference* _tmp168_;
			ValaSourceReference* _tmp169_;
			ValaSourceLocation _tmp170_ = {0};
			ValaSourceLocation _tmp171_;
			gint _tmp172_;
			ValaStringLiteral* _tmp173_;
			const gchar* _tmp174_;
			const gchar* _tmp175_;
			gchar* _tmp176_;
			gchar* _tmp177_;
			gchar* _tmp178_;
			gchar* _tmp179_;
			_tmp157_ = format_arg;
			_tmp158_ = expr;
			_tmp159_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp158_);
			_tmp160_ = _tmp159_;
			_tmp161_ = vala_source_reference_get_file (_tmp160_);
			_tmp162_ = _tmp161_;
			_tmp163_ = vala_source_file_get_filename (_tmp162_);
			_tmp164_ = _tmp163_;
			_tmp165_ = g_path_get_basename (_tmp164_);
			_tmp166_ = _tmp165_;
			_tmp167_ = expr;
			_tmp168_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp167_);
			_tmp169_ = _tmp168_;
			vala_source_reference_get_begin (_tmp169_, &_tmp170_);
			_tmp171_ = _tmp170_;
			_tmp172_ = _tmp171_.line;
			_tmp173_ = format_arg;
			_tmp174_ = vala_string_literal_get_value (_tmp173_);
			_tmp175_ = _tmp174_;
			_tmp176_ = string_substring (_tmp175_, (glong) 1, (glong) -1);
			_tmp177_ = _tmp176_;
			_tmp178_ = g_strdup_printf ("\"%s:%d: %s", _tmp166_, _tmp172_, _tmp177_);
			_tmp179_ = _tmp178_;
			vala_string_literal_set_value (_tmp157_, _tmp179_);
			_g_free0 (_tmp179_);
			_g_free0 (_tmp177_);
			_g_free0 (_tmp166_);
		}
		_vala_code_node_unref0 (format_arg);
	}
	result = TRUE;
	_vala_iterator_unref0 (arg_it);
	_vala_code_node_unref0 (prev_arg);
	return result;
}


static gboolean vala_semantic_analyzer_check_argument (ValaSemanticAnalyzer* self, ValaExpression* arg, gint i, ValaParameterDirection direction) {
	gboolean result = FALSE;
	ValaExpression* _tmp0_;
	gboolean _tmp1_;
	gboolean _tmp2_;
	ValaExpression* _tmp130_;
	ValaDataType* _tmp131_;
	ValaDataType* _tmp132_;
	ValaMemberAccess* ma = NULL;
	ValaExpression* _tmp189_;
	ValaMemberAccess* _tmp190_;
	gboolean _tmp191_ = FALSE;
	ValaMemberAccess* _tmp192_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (arg != NULL, FALSE);
	_tmp0_ = arg;
	_tmp1_ = vala_code_node_get_error ((ValaCodeNode*) _tmp0_);
	_tmp2_ = _tmp1_;
	if (_tmp2_) {
		result = FALSE;
		return result;
	} else {
		ValaExpression* _tmp3_;
		_tmp3_ = arg;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_NAMED_ARGUMENT)) {
			ValaExpression* _tmp4_;
			ValaSourceReference* _tmp5_;
			ValaSourceReference* _tmp6_;
			_tmp4_ = arg;
			_tmp5_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp4_);
			_tmp6_ = _tmp5_;
			vala_report_error (_tmp6_, "Named arguments are not supported yet");
			result = FALSE;
			return result;
		} else {
			ValaExpression* _tmp7_;
			ValaDataType* _tmp8_;
			ValaDataType* _tmp9_;
			_tmp7_ = arg;
			_tmp8_ = vala_expression_get_value_type (_tmp7_);
			_tmp9_ = _tmp8_;
			if (_tmp9_ == NULL) {
				gboolean _tmp10_ = FALSE;
				ValaExpression* _tmp11_;
				ValaDataType* _tmp12_;
				ValaDataType* _tmp13_;
				_tmp11_ = arg;
				_tmp12_ = vala_expression_get_target_type (_tmp11_);
				_tmp13_ = _tmp12_;
				if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, VALA_TYPE_DELEGATE_TYPE)) {
					_tmp10_ = TRUE;
				} else {
					ValaExpression* _tmp14_;
					ValaSymbol* _tmp15_;
					ValaSymbol* _tmp16_;
					_tmp14_ = arg;
					_tmp15_ = vala_expression_get_symbol_reference (_tmp14_);
					_tmp16_ = _tmp15_;
					_tmp10_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, VALA_TYPE_METHOD);
				}
				if (_tmp10_) {
					ValaExpression* _tmp17_;
					ValaSourceReference* _tmp18_;
					ValaSourceReference* _tmp19_;
					gint _tmp20_;
					gchar* _tmp21_;
					gchar* _tmp22_;
					_tmp17_ = arg;
					_tmp18_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp17_);
					_tmp19_ = _tmp18_;
					_tmp20_ = i;
					_tmp21_ = g_strdup_printf ("Invalid type for argument %d", _tmp20_ + 1);
					_tmp22_ = _tmp21_;
					vala_report_error (_tmp19_, _tmp22_);
					_g_free0 (_tmp22_);
					result = FALSE;
					return result;
				}
			} else {
				gint arg_type = 0;
				ValaExpression* _tmp23_;
				ValaDataType* _tmp24_;
				ValaDataType* _tmp25_;
				gint _tmp35_;
				arg_type = 1;
				_tmp23_ = arg;
				_tmp24_ = vala_expression_get_value_type (_tmp23_);
				_tmp25_ = _tmp24_;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp25_, VALA_TYPE_NULL_TYPE)) {
					arg_type = 0;
				} else {
					ValaExpression* _tmp26_;
					_tmp26_ = arg;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp26_, VALA_TYPE_UNARY_EXPRESSION)) {
						ValaUnaryExpression* unary = NULL;
						ValaExpression* _tmp27_;
						ValaUnaryExpression* _tmp28_;
						ValaUnaryExpression* _tmp29_;
						ValaUnaryOperator _tmp30_;
						ValaUnaryOperator _tmp31_;
						_tmp27_ = arg;
						_tmp28_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp27_, VALA_TYPE_UNARY_EXPRESSION, ValaUnaryExpression));
						unary = _tmp28_;
						_tmp29_ = unary;
						_tmp30_ = vala_unary_expression_get_operator (_tmp29_);
						_tmp31_ = _tmp30_;
						if (_tmp31_ == VALA_UNARY_OPERATOR_REF) {
							arg_type = 2;
						} else {
							ValaUnaryExpression* _tmp32_;
							ValaUnaryOperator _tmp33_;
							ValaUnaryOperator _tmp34_;
							_tmp32_ = unary;
							_tmp33_ = vala_unary_expression_get_operator (_tmp32_);
							_tmp34_ = _tmp33_;
							if (_tmp34_ == VALA_UNARY_OPERATOR_OUT) {
								arg_type = 3;
							}
						}
						_vala_code_node_unref0 (unary);
					}
				}
				_tmp35_ = arg_type;
				if (_tmp35_ == 0) {
					ValaParameterDirection _tmp36_;
					_tmp36_ = direction;
					if (_tmp36_ == VALA_PARAMETER_DIRECTION_REF) {
						ValaExpression* _tmp37_;
						ValaSourceReference* _tmp38_;
						ValaSourceReference* _tmp39_;
						gint _tmp40_;
						gchar* _tmp41_;
						gchar* _tmp42_;
						_tmp37_ = arg;
						_tmp38_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp37_);
						_tmp39_ = _tmp38_;
						_tmp40_ = i;
						_tmp41_ = g_strdup_printf ("Argument %d: Cannot pass null to reference parameter", _tmp40_ + 1);
						_tmp42_ = _tmp41_;
						vala_report_error (_tmp39_, _tmp42_);
						_g_free0 (_tmp42_);
						result = FALSE;
						return result;
					} else {
						gboolean _tmp43_ = FALSE;
						ValaParameterDirection _tmp44_;
						_tmp44_ = direction;
						if (_tmp44_ != VALA_PARAMETER_DIRECTION_OUT) {
							ValaExpression* _tmp45_;
							ValaDataType* _tmp46_;
							ValaDataType* _tmp47_;
							gboolean _tmp48_;
							gboolean _tmp49_;
							_tmp45_ = arg;
							_tmp46_ = vala_expression_get_target_type (_tmp45_);
							_tmp47_ = _tmp46_;
							_tmp48_ = vala_data_type_get_nullable (_tmp47_);
							_tmp49_ = _tmp48_;
							_tmp43_ = !_tmp49_;
						} else {
							_tmp43_ = FALSE;
						}
						if (_tmp43_) {
							ValaExpression* _tmp50_;
							ValaSourceReference* _tmp51_;
							ValaSourceReference* _tmp52_;
							gint _tmp53_;
							gchar* _tmp54_;
							gchar* _tmp55_;
							_tmp50_ = arg;
							_tmp51_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp50_);
							_tmp52_ = _tmp51_;
							_tmp53_ = i;
							_tmp54_ = g_strdup_printf ("Argument %d: Cannot pass null to non-null parameter type", _tmp53_ + 1);
							_tmp55_ = _tmp54_;
							vala_report_warning (_tmp52_, _tmp55_);
							_g_free0 (_tmp55_);
						}
					}
				} else {
					gint _tmp56_;
					_tmp56_ = arg_type;
					if (_tmp56_ == 1) {
						ValaParameterDirection _tmp57_;
						_tmp57_ = direction;
						if (_tmp57_ != VALA_PARAMETER_DIRECTION_IN) {
							ValaExpression* _tmp58_;
							ValaSourceReference* _tmp59_;
							ValaSourceReference* _tmp60_;
							gint _tmp61_;
							gchar* _tmp62_;
							gchar* _tmp63_;
							_tmp58_ = arg;
							_tmp59_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp58_);
							_tmp60_ = _tmp59_;
							_tmp61_ = i;
							_tmp62_ = g_strdup_printf ("Argument %d: Cannot pass value to reference or output parameter", _tmp61_ + 1);
							_tmp63_ = _tmp62_;
							vala_report_error (_tmp60_, _tmp63_);
							_g_free0 (_tmp63_);
							result = FALSE;
							return result;
						}
					} else {
						gint _tmp64_;
						_tmp64_ = arg_type;
						if (_tmp64_ == 2) {
							ValaParameterDirection _tmp65_;
							ValaExpression* _tmp72_;
							ValaDataType* _tmp73_;
							ValaDataType* _tmp74_;
							gboolean _tmp75_;
							ValaExpression* _tmp91_;
							ValaDataType* _tmp92_;
							ValaDataType* _tmp93_;
							gboolean _tmp94_;
							_tmp65_ = direction;
							if (_tmp65_ != VALA_PARAMETER_DIRECTION_REF) {
								ValaExpression* _tmp66_;
								ValaSourceReference* _tmp67_;
								ValaSourceReference* _tmp68_;
								gint _tmp69_;
								gchar* _tmp70_;
								gchar* _tmp71_;
								_tmp66_ = arg;
								_tmp67_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp66_);
								_tmp68_ = _tmp67_;
								_tmp69_ = i;
								_tmp70_ = g_strdup_printf ("Argument %d: Cannot pass ref argument to non-reference parameter", _tmp69_ + 1);
								_tmp71_ = _tmp70_;
								vala_report_error (_tmp68_, _tmp71_);
								_g_free0 (_tmp71_);
								result = FALSE;
								return result;
							}
							_tmp72_ = arg;
							_tmp73_ = vala_expression_get_target_type (_tmp72_);
							_tmp74_ = _tmp73_;
							_tmp75_ = vala_data_type_is_disposable (_tmp74_);
							if (_tmp75_) {
								gboolean _tmp76_ = FALSE;
								ValaExpression* _tmp77_;
								ValaDataType* _tmp78_;
								ValaDataType* _tmp79_;
								_tmp77_ = arg;
								_tmp78_ = vala_expression_get_value_type (_tmp77_);
								_tmp79_ = _tmp78_;
								if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp79_, VALA_TYPE_POINTER_TYPE)) {
									ValaExpression* _tmp80_;
									ValaDataType* _tmp81_;
									ValaDataType* _tmp82_;
									gboolean _tmp83_;
									gboolean _tmp84_;
									_tmp80_ = arg;
									_tmp81_ = vala_expression_get_value_type (_tmp80_);
									_tmp82_ = _tmp81_;
									_tmp83_ = vala_data_type_get_value_owned (_tmp82_);
									_tmp84_ = _tmp83_;
									_tmp76_ = !_tmp84_;
								} else {
									_tmp76_ = FALSE;
								}
								if (_tmp76_) {
									ValaExpression* _tmp85_;
									ValaSourceReference* _tmp86_;
									ValaSourceReference* _tmp87_;
									gint _tmp88_;
									gchar* _tmp89_;
									gchar* _tmp90_;
									_tmp85_ = arg;
									_tmp86_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp85_);
									_tmp87_ = _tmp86_;
									_tmp88_ = i;
									_tmp89_ = g_strdup_printf ("Argument %d: Cannot pass unowned ref argument to owned reference param" \
"eter", _tmp88_ + 1);
									_tmp90_ = _tmp89_;
									vala_report_error (_tmp87_, _tmp90_);
									_g_free0 (_tmp90_);
									result = FALSE;
									return result;
								}
							}
							_tmp91_ = arg;
							_tmp92_ = vala_expression_get_value_type (_tmp91_);
							_tmp93_ = _tmp92_;
							_tmp94_ = vala_data_type_is_disposable (_tmp93_);
							if (_tmp94_) {
								ValaExpression* _tmp95_;
								ValaDataType* _tmp96_;
								ValaDataType* _tmp97_;
								gboolean _tmp98_;
								gboolean _tmp99_;
								_tmp95_ = arg;
								_tmp96_ = vala_expression_get_target_type (_tmp95_);
								_tmp97_ = _tmp96_;
								_tmp98_ = vala_data_type_get_value_owned (_tmp97_);
								_tmp99_ = _tmp98_;
								if (!_tmp99_) {
									ValaExpression* _tmp100_;
									ValaSourceReference* _tmp101_;
									ValaSourceReference* _tmp102_;
									gint _tmp103_;
									gchar* _tmp104_;
									gchar* _tmp105_;
									_tmp100_ = arg;
									_tmp101_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp100_);
									_tmp102_ = _tmp101_;
									_tmp103_ = i;
									_tmp104_ = g_strdup_printf ("Argument %d: Cannot pass owned ref argument to unowned reference param" \
"eter", _tmp103_ + 1);
									_tmp105_ = _tmp104_;
									vala_report_error (_tmp102_, _tmp105_);
									_g_free0 (_tmp105_);
									result = FALSE;
									return result;
								}
							}
						} else {
							gint _tmp106_;
							_tmp106_ = arg_type;
							if (_tmp106_ == 3) {
								ValaParameterDirection _tmp107_;
								ValaExpression* _tmp114_;
								ValaDataType* _tmp115_;
								ValaDataType* _tmp116_;
								gboolean _tmp117_;
								_tmp107_ = direction;
								if (_tmp107_ != VALA_PARAMETER_DIRECTION_OUT) {
									ValaExpression* _tmp108_;
									ValaSourceReference* _tmp109_;
									ValaSourceReference* _tmp110_;
									gint _tmp111_;
									gchar* _tmp112_;
									gchar* _tmp113_;
									_tmp108_ = arg;
									_tmp109_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp108_);
									_tmp110_ = _tmp109_;
									_tmp111_ = i;
									_tmp112_ = g_strdup_printf ("Argument %d: Cannot pass out argument to non-output parameter", _tmp111_ + 1);
									_tmp113_ = _tmp112_;
									vala_report_error (_tmp110_, _tmp113_);
									_g_free0 (_tmp113_);
									result = FALSE;
									return result;
								}
								_tmp114_ = arg;
								_tmp115_ = vala_expression_get_target_type (_tmp114_);
								_tmp116_ = _tmp115_;
								_tmp117_ = vala_data_type_is_disposable (_tmp116_);
								if (_tmp117_) {
									gboolean _tmp118_ = FALSE;
									ValaExpression* _tmp119_;
									ValaDataType* _tmp120_;
									ValaDataType* _tmp121_;
									_tmp119_ = arg;
									_tmp120_ = vala_expression_get_value_type (_tmp119_);
									_tmp121_ = _tmp120_;
									if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp121_, VALA_TYPE_POINTER_TYPE)) {
										ValaExpression* _tmp122_;
										ValaDataType* _tmp123_;
										ValaDataType* _tmp124_;
										gboolean _tmp125_;
										gboolean _tmp126_;
										_tmp122_ = arg;
										_tmp123_ = vala_expression_get_value_type (_tmp122_);
										_tmp124_ = _tmp123_;
										_tmp125_ = vala_data_type_get_value_owned (_tmp124_);
										_tmp126_ = _tmp125_;
										_tmp118_ = !_tmp126_;
									} else {
										_tmp118_ = FALSE;
									}
									if (_tmp118_) {
										ValaExpression* _tmp127_;
										ValaSourceReference* _tmp128_;
										ValaSourceReference* _tmp129_;
										_tmp127_ = arg;
										_tmp128_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp127_);
										_tmp129_ = _tmp128_;
										vala_report_error (_tmp129_, "Invalid assignment from owned expression to unowned variable");
										result = FALSE;
										return result;
									}
								}
							}
						}
					}
				}
			}
		}
	}
	_tmp130_ = arg;
	_tmp131_ = vala_expression_get_target_type (_tmp130_);
	_tmp132_ = _tmp131_;
	if (_tmp132_ != NULL) {
		gboolean _tmp133_ = FALSE;
		gboolean _tmp134_ = FALSE;
		ValaParameterDirection _tmp135_;
		_tmp135_ = direction;
		if (_tmp135_ == VALA_PARAMETER_DIRECTION_IN) {
			_tmp134_ = TRUE;
		} else {
			ValaParameterDirection _tmp136_;
			_tmp136_ = direction;
			_tmp134_ = _tmp136_ == VALA_PARAMETER_DIRECTION_REF;
		}
		if (_tmp134_) {
			ValaExpression* _tmp137_;
			ValaDataType* _tmp138_;
			ValaDataType* _tmp139_;
			ValaExpression* _tmp140_;
			ValaDataType* _tmp141_;
			ValaDataType* _tmp142_;
			gboolean _tmp143_;
			_tmp137_ = arg;
			_tmp138_ = vala_expression_get_value_type (_tmp137_);
			_tmp139_ = _tmp138_;
			_tmp140_ = arg;
			_tmp141_ = vala_expression_get_target_type (_tmp140_);
			_tmp142_ = _tmp141_;
			_tmp143_ = vala_data_type_compatible (_tmp139_, _tmp142_);
			_tmp133_ = !_tmp143_;
		} else {
			_tmp133_ = FALSE;
		}
		if (_tmp133_) {
			ValaExpression* _tmp144_;
			ValaSourceReference* _tmp145_;
			ValaSourceReference* _tmp146_;
			gint _tmp147_;
			ValaExpression* _tmp148_;
			ValaDataType* _tmp149_;
			ValaDataType* _tmp150_;
			gchar* _tmp151_;
			gchar* _tmp152_;
			ValaExpression* _tmp153_;
			ValaDataType* _tmp154_;
			ValaDataType* _tmp155_;
			gchar* _tmp156_;
			gchar* _tmp157_;
			gchar* _tmp158_;
			gchar* _tmp159_;
			_tmp144_ = arg;
			_tmp145_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp144_);
			_tmp146_ = _tmp145_;
			_tmp147_ = i;
			_tmp148_ = arg;
			_tmp149_ = vala_expression_get_value_type (_tmp148_);
			_tmp150_ = _tmp149_;
			_tmp151_ = vala_code_node_to_string ((ValaCodeNode*) _tmp150_);
			_tmp152_ = _tmp151_;
			_tmp153_ = arg;
			_tmp154_ = vala_expression_get_target_type (_tmp153_);
			_tmp155_ = _tmp154_;
			_tmp156_ = vala_code_node_to_string ((ValaCodeNode*) _tmp155_);
			_tmp157_ = _tmp156_;
			_tmp158_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", _tmp147_ + 1, _tmp152_, _tmp157_);
			_tmp159_ = _tmp158_;
			vala_report_error (_tmp146_, _tmp159_);
			_g_free0 (_tmp159_);
			_g_free0 (_tmp157_);
			_g_free0 (_tmp152_);
			result = FALSE;
			return result;
		} else {
			gboolean _tmp160_ = FALSE;
			gboolean _tmp161_ = FALSE;
			gboolean _tmp162_ = FALSE;
			ValaParameterDirection _tmp163_;
			_tmp163_ = direction;
			if (_tmp163_ == VALA_PARAMETER_DIRECTION_REF) {
				_tmp162_ = TRUE;
			} else {
				ValaParameterDirection _tmp164_;
				_tmp164_ = direction;
				_tmp162_ = _tmp164_ == VALA_PARAMETER_DIRECTION_OUT;
			}
			if (_tmp162_) {
				ValaExpression* _tmp165_;
				ValaDataType* _tmp166_;
				ValaDataType* _tmp167_;
				ValaExpression* _tmp168_;
				ValaDataType* _tmp169_;
				ValaDataType* _tmp170_;
				gboolean _tmp171_;
				_tmp165_ = arg;
				_tmp166_ = vala_expression_get_target_type (_tmp165_);
				_tmp167_ = _tmp166_;
				_tmp168_ = arg;
				_tmp169_ = vala_expression_get_value_type (_tmp168_);
				_tmp170_ = _tmp169_;
				_tmp171_ = vala_data_type_compatible (_tmp167_, _tmp170_);
				_tmp161_ = !_tmp171_;
			} else {
				_tmp161_ = FALSE;
			}
			if (_tmp161_) {
				ValaExpression* _tmp172_;
				_tmp172_ = arg;
				_tmp160_ = !G_TYPE_CHECK_INSTANCE_TYPE (_tmp172_, VALA_TYPE_NULL_LITERAL);
			} else {
				_tmp160_ = FALSE;
			}
			if (_tmp160_) {
				ValaExpression* _tmp173_;
				ValaSourceReference* _tmp174_;
				ValaSourceReference* _tmp175_;
				gint _tmp176_;
				ValaExpression* _tmp177_;
				ValaDataType* _tmp178_;
				ValaDataType* _tmp179_;
				gchar* _tmp180_;
				gchar* _tmp181_;
				ValaExpression* _tmp182_;
				ValaDataType* _tmp183_;
				ValaDataType* _tmp184_;
				gchar* _tmp185_;
				gchar* _tmp186_;
				gchar* _tmp187_;
				gchar* _tmp188_;
				_tmp173_ = arg;
				_tmp174_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp173_);
				_tmp175_ = _tmp174_;
				_tmp176_ = i;
				_tmp177_ = arg;
				_tmp178_ = vala_expression_get_target_type (_tmp177_);
				_tmp179_ = _tmp178_;
				_tmp180_ = vala_code_node_to_string ((ValaCodeNode*) _tmp179_);
				_tmp181_ = _tmp180_;
				_tmp182_ = arg;
				_tmp183_ = vala_expression_get_value_type (_tmp182_);
				_tmp184_ = _tmp183_;
				_tmp185_ = vala_code_node_to_string ((ValaCodeNode*) _tmp184_);
				_tmp186_ = _tmp185_;
				_tmp187_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", _tmp176_ + 1, _tmp181_, _tmp186_);
				_tmp188_ = _tmp187_;
				vala_report_error (_tmp175_, _tmp188_);
				_g_free0 (_tmp188_);
				_g_free0 (_tmp186_);
				_g_free0 (_tmp181_);
				result = FALSE;
				return result;
			}
		}
	}
	_tmp189_ = arg;
	_tmp190_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp189_, VALA_TYPE_MEMBER_ACCESS) ? ((ValaMemberAccess*) _tmp189_) : NULL);
	ma = _tmp190_;
	_tmp192_ = ma;
	if (_tmp192_ != NULL) {
		ValaMemberAccess* _tmp193_;
		gboolean _tmp194_;
		gboolean _tmp195_;
		_tmp193_ = ma;
		_tmp194_ = vala_member_access_get_prototype_access (_tmp193_);
		_tmp195_ = _tmp194_;
		_tmp191_ = _tmp195_;
	} else {
		_tmp191_ = FALSE;
	}
	if (_tmp191_) {
		ValaDelegateType* deleg_type = NULL;
		ValaExpression* _tmp196_;
		ValaDataType* _tmp197_;
		ValaDataType* _tmp198_;
		ValaDelegateType* _tmp199_;
		gboolean _tmp200_ = FALSE;
		ValaDelegateType* _tmp201_;
		_tmp196_ = arg;
		_tmp197_ = vala_expression_get_target_type (_tmp196_);
		_tmp198_ = _tmp197_;
		_tmp199_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp198_, VALA_TYPE_DELEGATE_TYPE) ? ((ValaDelegateType*) _tmp198_) : NULL);
		deleg_type = _tmp199_;
		_tmp201_ = deleg_type;
		if (_tmp201_ == NULL) {
			_tmp200_ = TRUE;
		} else {
			ValaDelegateType* _tmp202_;
			ValaDelegate* _tmp203_;
			ValaDelegate* _tmp204_;
			gboolean _tmp205_;
			gboolean _tmp206_;
			_tmp202_ = deleg_type;
			_tmp203_ = vala_delegate_type_get_delegate_symbol (_tmp202_);
			_tmp204_ = _tmp203_;
			_tmp205_ = vala_delegate_get_has_target (_tmp204_);
			_tmp206_ = _tmp205_;
			_tmp200_ = _tmp206_;
		}
		if (_tmp200_) {
			ValaExpression* _tmp207_;
			ValaSourceReference* _tmp208_;
			ValaSourceReference* _tmp209_;
			ValaExpression* _tmp210_;
			ValaSymbol* _tmp211_;
			ValaSymbol* _tmp212_;
			gchar* _tmp213_;
			gchar* _tmp214_;
			gchar* _tmp215_;
			gchar* _tmp216_;
			_tmp207_ = arg;
			_tmp208_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp207_);
			_tmp209_ = _tmp208_;
			_tmp210_ = arg;
			_tmp211_ = vala_expression_get_symbol_reference (_tmp210_);
			_tmp212_ = _tmp211_;
			_tmp213_ = vala_symbol_get_full_name (_tmp212_);
			_tmp214_ = _tmp213_;
			_tmp215_ = g_strdup_printf ("Access to instance member `%s' denied", _tmp214_);
			_tmp216_ = _tmp215_;
			vala_report_error (_tmp209_, _tmp216_);
			_g_free0 (_tmp216_);
			_g_free0 (_tmp214_);
			result = FALSE;
			_vala_code_node_unref0 (deleg_type);
			_vala_code_node_unref0 (ma);
			return result;
		}
		_vala_code_node_unref0 (deleg_type);
	}
	result = TRUE;
	_vala_code_node_unref0 (ma);
	return result;
}


gboolean vala_semantic_analyzer_check_variadic_arguments (ValaSemanticAnalyzer* self, ValaIterator* arg_it, gint i, ValaSourceReference* source_reference) {
	gboolean result = FALSE;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (source_reference != NULL, FALSE);
	while (TRUE) {
		gboolean _tmp0_ = FALSE;
		ValaIterator* _tmp1_;
		ValaExpression* arg = NULL;
		ValaIterator* _tmp4_;
		gpointer _tmp5_;
		ValaExpression* _tmp6_;
		gboolean _tmp7_;
		gboolean _tmp8_;
		gint _tmp53_;
		_tmp1_ = arg_it;
		if (_tmp1_ != NULL) {
			ValaIterator* _tmp2_;
			gboolean _tmp3_;
			_tmp2_ = arg_it;
			_tmp3_ = vala_iterator_next (_tmp2_);
			_tmp0_ = _tmp3_;
		} else {
			_tmp0_ = FALSE;
		}
		if (!_tmp0_) {
			break;
		}
		_tmp4_ = arg_it;
		_tmp5_ = vala_iterator_get (_tmp4_);
		arg = (ValaExpression*) _tmp5_;
		_tmp6_ = arg;
		_tmp7_ = vala_code_node_get_error ((ValaCodeNode*) _tmp6_);
		_tmp8_ = _tmp7_;
		if (_tmp8_) {
			result = FALSE;
			_vala_code_node_unref0 (arg);
			return result;
		} else {
			ValaExpression* _tmp9_;
			ValaDataType* _tmp10_;
			ValaDataType* _tmp11_;
			_tmp9_ = arg;
			_tmp10_ = vala_expression_get_value_type (_tmp9_);
			_tmp11_ = _tmp10_;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp11_, VALA_TYPE_SIGNAL_TYPE)) {
				ValaExpression* _tmp12_;
				ValaExpression* _tmp13_;
				ValaSourceReference* _tmp14_;
				ValaSourceReference* _tmp15_;
				_tmp12_ = arg;
				vala_code_node_set_error ((ValaCodeNode*) _tmp12_, TRUE);
				_tmp13_ = arg;
				_tmp14_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp13_);
				_tmp15_ = _tmp14_;
				vala_report_error (_tmp15_, "Cannot pass signals as arguments");
				result = FALSE;
				_vala_code_node_unref0 (arg);
				return result;
			} else {
				ValaExpression* _tmp16_;
				ValaDataType* _tmp17_;
				ValaDataType* _tmp18_;
				_tmp16_ = arg;
				_tmp17_ = vala_expression_get_value_type (_tmp16_);
				_tmp18_ = _tmp17_;
				if (_tmp18_ == NULL) {
					ValaExpression* _tmp19_;
					ValaSymbol* _tmp20_;
					ValaSymbol* _tmp21_;
					_tmp19_ = arg;
					_tmp20_ = vala_expression_get_symbol_reference (_tmp19_);
					_tmp21_ = _tmp20_;
					if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, VALA_TYPE_METHOD)) {
						ValaSourceReference* _tmp22_;
						gint _tmp23_;
						gchar* _tmp24_;
						gchar* _tmp25_;
						_tmp22_ = source_reference;
						_tmp23_ = i;
						_tmp24_ = g_strdup_printf ("Invalid type for argument %d", _tmp23_ + 1);
						_tmp25_ = _tmp24_;
						vala_report_error (_tmp22_, _tmp25_);
						_g_free0 (_tmp25_);
						result = FALSE;
						_vala_code_node_unref0 (arg);
						return result;
					}
				} else {
					gboolean _tmp26_ = FALSE;
					ValaExpression* _tmp27_;
					ValaDataType* _tmp28_;
					ValaDataType* _tmp29_;
					_tmp27_ = arg;
					_tmp28_ = vala_expression_get_target_type (_tmp27_);
					_tmp29_ = _tmp28_;
					if (_tmp29_ != NULL) {
						ValaExpression* _tmp30_;
						ValaDataType* _tmp31_;
						ValaDataType* _tmp32_;
						ValaExpression* _tmp33_;
						ValaDataType* _tmp34_;
						ValaDataType* _tmp35_;
						gboolean _tmp36_;
						_tmp30_ = arg;
						_tmp31_ = vala_expression_get_value_type (_tmp30_);
						_tmp32_ = _tmp31_;
						_tmp33_ = arg;
						_tmp34_ = vala_expression_get_target_type (_tmp33_);
						_tmp35_ = _tmp34_;
						_tmp36_ = vala_data_type_compatible (_tmp32_, _tmp35_);
						_tmp26_ = !_tmp36_;
					} else {
						_tmp26_ = FALSE;
					}
					if (_tmp26_) {
						ValaExpression* _tmp37_;
						ValaSourceReference* _tmp38_;
						ValaSourceReference* _tmp39_;
						gint _tmp40_;
						ValaExpression* _tmp41_;
						ValaDataType* _tmp42_;
						ValaDataType* _tmp43_;
						gchar* _tmp44_;
						gchar* _tmp45_;
						ValaExpression* _tmp46_;
						ValaDataType* _tmp47_;
						ValaDataType* _tmp48_;
						gchar* _tmp49_;
						gchar* _tmp50_;
						gchar* _tmp51_;
						gchar* _tmp52_;
						_tmp37_ = arg;
						_tmp38_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp37_);
						_tmp39_ = _tmp38_;
						_tmp40_ = i;
						_tmp41_ = arg;
						_tmp42_ = vala_expression_get_value_type (_tmp41_);
						_tmp43_ = _tmp42_;
						_tmp44_ = vala_code_node_to_string ((ValaCodeNode*) _tmp43_);
						_tmp45_ = _tmp44_;
						_tmp46_ = arg;
						_tmp47_ = vala_expression_get_target_type (_tmp46_);
						_tmp48_ = _tmp47_;
						_tmp49_ = vala_code_node_to_string ((ValaCodeNode*) _tmp48_);
						_tmp50_ = _tmp49_;
						_tmp51_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", _tmp40_ + 1, _tmp45_, _tmp50_);
						_tmp52_ = _tmp51_;
						vala_report_error (_tmp39_, _tmp52_);
						_g_free0 (_tmp52_);
						_g_free0 (_tmp50_);
						_g_free0 (_tmp45_);
						result = FALSE;
						_vala_code_node_unref0 (arg);
						return result;
					}
				}
			}
		}
		_tmp53_ = i;
		i = _tmp53_ + 1;
		_vala_code_node_unref0 (arg);
	}
	result = TRUE;
	return result;
}


static gunichar string_get_char (const gchar* self, glong index) {
	gunichar result = 0U;
	glong _tmp0_;
	gunichar _tmp1_;
	g_return_val_if_fail (self != NULL, 0U);
	_tmp0_ = index;
	_tmp1_ = g_utf8_get_char (((gchar*) self) + _tmp0_);
	result = _tmp1_;
	return result;
}


gboolean vala_semantic_analyzer_check_print_format (ValaSemanticAnalyzer* self, const gchar* format, ValaIterator* arg_it, ValaSourceReference* source_reference) {
	gboolean result = FALSE;
	gboolean unsupported_format = FALSE;
	const gchar* format_it = NULL;
	const gchar* _tmp0_;
	gunichar c = 0U;
	const gchar* _tmp1_;
	gunichar _tmp2_;
	gboolean _tmp181_ = FALSE;
	gboolean _tmp182_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (format != NULL, FALSE);
	g_return_val_if_fail (arg_it != NULL, FALSE);
	g_return_val_if_fail (source_reference != NULL, FALSE);
	unsupported_format = FALSE;
	_tmp0_ = format;
	format_it = _tmp0_;
	_tmp1_ = format_it;
	_tmp2_ = string_get_char (_tmp1_, (glong) 0);
	c = _tmp2_;
	while (TRUE) {
		gunichar _tmp3_;
		gunichar _tmp4_;
		const gchar* _tmp9_;
		const gchar* _tmp10_;
		const gchar* _tmp11_;
		gunichar _tmp12_;
		gunichar _tmp33_;
		gint length = 0;
		gunichar _tmp45_;
		ValaDataType* param_type = NULL;
		gboolean _tmp65_ = FALSE;
		gboolean _tmp66_ = FALSE;
		gunichar _tmp67_;
		gunichar _tmp168_;
		ValaDataType* _tmp173_;
		_tmp3_ = c;
		if (!(_tmp3_ != ((gunichar) '\0'))) {
			break;
		}
		_tmp4_ = c;
		if (_tmp4_ != ((gunichar) '%')) {
			const gchar* _tmp5_;
			const gchar* _tmp6_;
			const gchar* _tmp7_;
			gunichar _tmp8_;
			_tmp5_ = format_it;
			_tmp6_ = g_utf8_next_char (_tmp5_);
			format_it = _tmp6_;
			_tmp7_ = format_it;
			_tmp8_ = string_get_char (_tmp7_, (glong) 0);
			c = _tmp8_;
			continue;
		}
		_tmp9_ = format_it;
		_tmp10_ = g_utf8_next_char (_tmp9_);
		format_it = _tmp10_;
		_tmp11_ = format_it;
		_tmp12_ = string_get_char (_tmp11_, (glong) 0);
		c = _tmp12_;
		while (TRUE) {
			gboolean _tmp13_ = FALSE;
			gboolean _tmp14_ = FALSE;
			gboolean _tmp15_ = FALSE;
			gboolean _tmp16_ = FALSE;
			gunichar _tmp17_;
			const gchar* _tmp22_;
			const gchar* _tmp23_;
			const gchar* _tmp24_;
			gunichar _tmp25_;
			_tmp17_ = c;
			if (_tmp17_ == ((gunichar) '#')) {
				_tmp16_ = TRUE;
			} else {
				gunichar _tmp18_;
				_tmp18_ = c;
				_tmp16_ = _tmp18_ == ((gunichar) '0');
			}
			if (_tmp16_) {
				_tmp15_ = TRUE;
			} else {
				gunichar _tmp19_;
				_tmp19_ = c;
				_tmp15_ = _tmp19_ == ((gunichar) '-');
			}
			if (_tmp15_) {
				_tmp14_ = TRUE;
			} else {
				gunichar _tmp20_;
				_tmp20_ = c;
				_tmp14_ = _tmp20_ == ((gunichar) ' ');
			}
			if (_tmp14_) {
				_tmp13_ = TRUE;
			} else {
				gunichar _tmp21_;
				_tmp21_ = c;
				_tmp13_ = _tmp21_ == ((gunichar) '+');
			}
			if (!_tmp13_) {
				break;
			}
			_tmp22_ = format_it;
			_tmp23_ = g_utf8_next_char (_tmp22_);
			format_it = _tmp23_;
			_tmp24_ = format_it;
			_tmp25_ = string_get_char (_tmp24_, (glong) 0);
			c = _tmp25_;
		}
		while (TRUE) {
			gboolean _tmp26_ = FALSE;
			gunichar _tmp27_;
			const gchar* _tmp29_;
			const gchar* _tmp30_;
			const gchar* _tmp31_;
			gunichar _tmp32_;
			_tmp27_ = c;
			if (_tmp27_ >= ((gunichar) '0')) {
				gunichar _tmp28_;
				_tmp28_ = c;
				_tmp26_ = _tmp28_ <= ((gunichar) '9');
			} else {
				_tmp26_ = FALSE;
			}
			if (!_tmp26_) {
				break;
			}
			_tmp29_ = format_it;
			_tmp30_ = g_utf8_next_char (_tmp29_);
			format_it = _tmp30_;
			_tmp31_ = format_it;
			_tmp32_ = string_get_char (_tmp31_, (glong) 0);
			c = _tmp32_;
		}
		_tmp33_ = c;
		if (_tmp33_ == ((gunichar) '.')) {
			const gchar* _tmp34_;
			const gchar* _tmp35_;
			const gchar* _tmp36_;
			gunichar _tmp37_;
			_tmp34_ = format_it;
			_tmp35_ = g_utf8_next_char (_tmp34_);
			format_it = _tmp35_;
			_tmp36_ = format_it;
			_tmp37_ = string_get_char (_tmp36_, (glong) 0);
			c = _tmp37_;
			while (TRUE) {
				gboolean _tmp38_ = FALSE;
				gunichar _tmp39_;
				const gchar* _tmp41_;
				const gchar* _tmp42_;
				const gchar* _tmp43_;
				gunichar _tmp44_;
				_tmp39_ = c;
				if (_tmp39_ >= ((gunichar) '0')) {
					gunichar _tmp40_;
					_tmp40_ = c;
					_tmp38_ = _tmp40_ <= ((gunichar) '9');
				} else {
					_tmp38_ = FALSE;
				}
				if (!_tmp38_) {
					break;
				}
				_tmp41_ = format_it;
				_tmp42_ = g_utf8_next_char (_tmp41_);
				format_it = _tmp42_;
				_tmp43_ = format_it;
				_tmp44_ = string_get_char (_tmp43_, (glong) 0);
				c = _tmp44_;
			}
		}
		length = 0;
		_tmp45_ = c;
		if (_tmp45_ == ((gunichar) 'h')) {
			const gchar* _tmp46_;
			const gchar* _tmp47_;
			const gchar* _tmp48_;
			gunichar _tmp49_;
			gunichar _tmp50_;
			length = -1;
			_tmp46_ = format_it;
			_tmp47_ = g_utf8_next_char (_tmp46_);
			format_it = _tmp47_;
			_tmp48_ = format_it;
			_tmp49_ = string_get_char (_tmp48_, (glong) 0);
			c = _tmp49_;
			_tmp50_ = c;
			if (_tmp50_ == ((gunichar) 'h')) {
				const gchar* _tmp51_;
				const gchar* _tmp52_;
				const gchar* _tmp53_;
				gunichar _tmp54_;
				length = -2;
				_tmp51_ = format_it;
				_tmp52_ = g_utf8_next_char (_tmp51_);
				format_it = _tmp52_;
				_tmp53_ = format_it;
				_tmp54_ = string_get_char (_tmp53_, (glong) 0);
				c = _tmp54_;
			}
		} else {
			gunichar _tmp55_;
			_tmp55_ = c;
			if (_tmp55_ == ((gunichar) 'l')) {
				const gchar* _tmp56_;
				const gchar* _tmp57_;
				const gchar* _tmp58_;
				gunichar _tmp59_;
				length = 1;
				_tmp56_ = format_it;
				_tmp57_ = g_utf8_next_char (_tmp56_);
				format_it = _tmp57_;
				_tmp58_ = format_it;
				_tmp59_ = string_get_char (_tmp58_, (glong) 0);
				c = _tmp59_;
			} else {
				gunichar _tmp60_;
				_tmp60_ = c;
				if (_tmp60_ == ((gunichar) 'z')) {
					const gchar* _tmp61_;
					const gchar* _tmp62_;
					const gchar* _tmp63_;
					gunichar _tmp64_;
					length = 2;
					_tmp61_ = format_it;
					_tmp62_ = g_utf8_next_char (_tmp61_);
					format_it = _tmp62_;
					_tmp63_ = format_it;
					_tmp64_ = string_get_char (_tmp63_, (glong) 0);
					c = _tmp64_;
				}
			}
		}
		param_type = NULL;
		_tmp67_ = c;
		if (_tmp67_ == ((gunichar) 'd')) {
			_tmp66_ = TRUE;
		} else {
			gunichar _tmp68_;
			_tmp68_ = c;
			_tmp66_ = _tmp68_ == ((gunichar) 'i');
		}
		if (_tmp66_) {
			_tmp65_ = TRUE;
		} else {
			gunichar _tmp69_;
			_tmp69_ = c;
			_tmp65_ = _tmp69_ == ((gunichar) 'c');
		}
		if (_tmp65_) {
			gint _tmp70_;
			_tmp70_ = length;
			if (_tmp70_ == -2) {
				ValaCodeContext* _tmp71_;
				ValaSemanticAnalyzer* _tmp72_;
				ValaSemanticAnalyzer* _tmp73_;
				ValaDataType* _tmp74_;
				ValaDataType* _tmp75_;
				_tmp71_ = self->priv->_context;
				_tmp72_ = vala_code_context_get_analyzer (_tmp71_);
				_tmp73_ = _tmp72_;
				_tmp74_ = _tmp73_->int8_type;
				_tmp75_ = _vala_code_node_ref0 (_tmp74_);
				_vala_code_node_unref0 (param_type);
				param_type = _tmp75_;
			} else {
				gint _tmp76_;
				_tmp76_ = length;
				if (_tmp76_ == -1) {
					ValaCodeContext* _tmp77_;
					ValaSemanticAnalyzer* _tmp78_;
					ValaSemanticAnalyzer* _tmp79_;
					ValaDataType* _tmp80_;
					ValaDataType* _tmp81_;
					_tmp77_ = self->priv->_context;
					_tmp78_ = vala_code_context_get_analyzer (_tmp77_);
					_tmp79_ = _tmp78_;
					_tmp80_ = _tmp79_->short_type;
					_tmp81_ = _vala_code_node_ref0 (_tmp80_);
					_vala_code_node_unref0 (param_type);
					param_type = _tmp81_;
				} else {
					gint _tmp82_;
					_tmp82_ = length;
					if (_tmp82_ == 0) {
						ValaCodeContext* _tmp83_;
						ValaSemanticAnalyzer* _tmp84_;
						ValaSemanticAnalyzer* _tmp85_;
						ValaDataType* _tmp86_;
						ValaDataType* _tmp87_;
						_tmp83_ = self->priv->_context;
						_tmp84_ = vala_code_context_get_analyzer (_tmp83_);
						_tmp85_ = _tmp84_;
						_tmp86_ = _tmp85_->int_type;
						_tmp87_ = _vala_code_node_ref0 (_tmp86_);
						_vala_code_node_unref0 (param_type);
						param_type = _tmp87_;
					} else {
						gint _tmp88_;
						_tmp88_ = length;
						if (_tmp88_ == 1) {
							ValaCodeContext* _tmp89_;
							ValaSemanticAnalyzer* _tmp90_;
							ValaSemanticAnalyzer* _tmp91_;
							ValaDataType* _tmp92_;
							ValaDataType* _tmp93_;
							_tmp89_ = self->priv->_context;
							_tmp90_ = vala_code_context_get_analyzer (_tmp89_);
							_tmp91_ = _tmp90_;
							_tmp92_ = _tmp91_->long_type;
							_tmp93_ = _vala_code_node_ref0 (_tmp92_);
							_vala_code_node_unref0 (param_type);
							param_type = _tmp93_;
						} else {
							gint _tmp94_;
							_tmp94_ = length;
							if (_tmp94_ == 2) {
								ValaCodeContext* _tmp95_;
								ValaSemanticAnalyzer* _tmp96_;
								ValaSemanticAnalyzer* _tmp97_;
								ValaDataType* _tmp98_;
								ValaDataType* _tmp99_;
								_tmp95_ = self->priv->_context;
								_tmp96_ = vala_code_context_get_analyzer (_tmp95_);
								_tmp97_ = _tmp96_;
								_tmp98_ = _tmp97_->ssize_t_type;
								_tmp99_ = _vala_code_node_ref0 (_tmp98_);
								_vala_code_node_unref0 (param_type);
								param_type = _tmp99_;
							}
						}
					}
				}
			}
		} else {
			gboolean _tmp100_ = FALSE;
			gboolean _tmp101_ = FALSE;
			gboolean _tmp102_ = FALSE;
			gunichar _tmp103_;
			_tmp103_ = c;
			if (_tmp103_ == ((gunichar) 'o')) {
				_tmp102_ = TRUE;
			} else {
				gunichar _tmp104_;
				_tmp104_ = c;
				_tmp102_ = _tmp104_ == ((gunichar) 'u');
			}
			if (_tmp102_) {
				_tmp101_ = TRUE;
			} else {
				gunichar _tmp105_;
				_tmp105_ = c;
				_tmp101_ = _tmp105_ == ((gunichar) 'x');
			}
			if (_tmp101_) {
				_tmp100_ = TRUE;
			} else {
				gunichar _tmp106_;
				_tmp106_ = c;
				_tmp100_ = _tmp106_ == ((gunichar) 'X');
			}
			if (_tmp100_) {
				gint _tmp107_;
				_tmp107_ = length;
				if (_tmp107_ == -2) {
					ValaCodeContext* _tmp108_;
					ValaSemanticAnalyzer* _tmp109_;
					ValaSemanticAnalyzer* _tmp110_;
					ValaDataType* _tmp111_;
					ValaDataType* _tmp112_;
					_tmp108_ = self->priv->_context;
					_tmp109_ = vala_code_context_get_analyzer (_tmp108_);
					_tmp110_ = _tmp109_;
					_tmp111_ = _tmp110_->uchar_type;
					_tmp112_ = _vala_code_node_ref0 (_tmp111_);
					_vala_code_node_unref0 (param_type);
					param_type = _tmp112_;
				} else {
					gint _tmp113_;
					_tmp113_ = length;
					if (_tmp113_ == -1) {
						ValaCodeContext* _tmp114_;
						ValaSemanticAnalyzer* _tmp115_;
						ValaSemanticAnalyzer* _tmp116_;
						ValaDataType* _tmp117_;
						ValaDataType* _tmp118_;
						_tmp114_ = self->priv->_context;
						_tmp115_ = vala_code_context_get_analyzer (_tmp114_);
						_tmp116_ = _tmp115_;
						_tmp117_ = _tmp116_->ushort_type;
						_tmp118_ = _vala_code_node_ref0 (_tmp117_);
						_vala_code_node_unref0 (param_type);
						param_type = _tmp118_;
					} else {
						gint _tmp119_;
						_tmp119_ = length;
						if (_tmp119_ == 0) {
							ValaCodeContext* _tmp120_;
							ValaSemanticAnalyzer* _tmp121_;
							ValaSemanticAnalyzer* _tmp122_;
							ValaDataType* _tmp123_;
							ValaDataType* _tmp124_;
							_tmp120_ = self->priv->_context;
							_tmp121_ = vala_code_context_get_analyzer (_tmp120_);
							_tmp122_ = _tmp121_;
							_tmp123_ = _tmp122_->uint_type;
							_tmp124_ = _vala_code_node_ref0 (_tmp123_);
							_vala_code_node_unref0 (param_type);
							param_type = _tmp124_;
						} else {
							gint _tmp125_;
							_tmp125_ = length;
							if (_tmp125_ == 1) {
								ValaCodeContext* _tmp126_;
								ValaSemanticAnalyzer* _tmp127_;
								ValaSemanticAnalyzer* _tmp128_;
								ValaDataType* _tmp129_;
								ValaDataType* _tmp130_;
								_tmp126_ = self->priv->_context;
								_tmp127_ = vala_code_context_get_analyzer (_tmp126_);
								_tmp128_ = _tmp127_;
								_tmp129_ = _tmp128_->ulong_type;
								_tmp130_ = _vala_code_node_ref0 (_tmp129_);
								_vala_code_node_unref0 (param_type);
								param_type = _tmp130_;
							} else {
								gint _tmp131_;
								_tmp131_ = length;
								if (_tmp131_ == 2) {
									ValaCodeContext* _tmp132_;
									ValaSemanticAnalyzer* _tmp133_;
									ValaSemanticAnalyzer* _tmp134_;
									ValaDataType* _tmp135_;
									ValaDataType* _tmp136_;
									_tmp132_ = self->priv->_context;
									_tmp133_ = vala_code_context_get_analyzer (_tmp132_);
									_tmp134_ = _tmp133_;
									_tmp135_ = _tmp134_->size_t_type;
									_tmp136_ = _vala_code_node_ref0 (_tmp135_);
									_vala_code_node_unref0 (param_type);
									param_type = _tmp136_;
								}
							}
						}
					}
				}
			} else {
				gboolean _tmp137_ = FALSE;
				gboolean _tmp138_ = FALSE;
				gboolean _tmp139_ = FALSE;
				gboolean _tmp140_ = FALSE;
				gboolean _tmp141_ = FALSE;
				gboolean _tmp142_ = FALSE;
				gboolean _tmp143_ = FALSE;
				gunichar _tmp144_;
				_tmp144_ = c;
				if (_tmp144_ == ((gunichar) 'e')) {
					_tmp143_ = TRUE;
				} else {
					gunichar _tmp145_;
					_tmp145_ = c;
					_tmp143_ = _tmp145_ == ((gunichar) 'E');
				}
				if (_tmp143_) {
					_tmp142_ = TRUE;
				} else {
					gunichar _tmp146_;
					_tmp146_ = c;
					_tmp142_ = _tmp146_ == ((gunichar) 'f');
				}
				if (_tmp142_) {
					_tmp141_ = TRUE;
				} else {
					gunichar _tmp147_;
					_tmp147_ = c;
					_tmp141_ = _tmp147_ == ((gunichar) 'F');
				}
				if (_tmp141_) {
					_tmp140_ = TRUE;
				} else {
					gunichar _tmp148_;
					_tmp148_ = c;
					_tmp140_ = _tmp148_ == ((gunichar) 'g');
				}
				if (_tmp140_) {
					_tmp139_ = TRUE;
				} else {
					gunichar _tmp149_;
					_tmp149_ = c;
					_tmp139_ = _tmp149_ == ((gunichar) 'G');
				}
				if (_tmp139_) {
					_tmp138_ = TRUE;
				} else {
					gunichar _tmp150_;
					_tmp150_ = c;
					_tmp138_ = _tmp150_ == ((gunichar) 'a');
				}
				if (_tmp138_) {
					_tmp137_ = TRUE;
				} else {
					gunichar _tmp151_;
					_tmp151_ = c;
					_tmp137_ = _tmp151_ == ((gunichar) 'A');
				}
				if (_tmp137_) {
					ValaCodeContext* _tmp152_;
					ValaSemanticAnalyzer* _tmp153_;
					ValaSemanticAnalyzer* _tmp154_;
					ValaDataType* _tmp155_;
					ValaDataType* _tmp156_;
					_tmp152_ = self->priv->_context;
					_tmp153_ = vala_code_context_get_analyzer (_tmp152_);
					_tmp154_ = _tmp153_;
					_tmp155_ = _tmp154_->double_type;
					_tmp156_ = _vala_code_node_ref0 (_tmp155_);
					_vala_code_node_unref0 (param_type);
					param_type = _tmp156_;
				} else {
					gunichar _tmp157_;
					_tmp157_ = c;
					if (_tmp157_ == ((gunichar) 's')) {
						ValaCodeContext* _tmp158_;
						ValaSemanticAnalyzer* _tmp159_;
						ValaSemanticAnalyzer* _tmp160_;
						ValaDataType* _tmp161_;
						ValaDataType* _tmp162_;
						_tmp158_ = self->priv->_context;
						_tmp159_ = vala_code_context_get_analyzer (_tmp158_);
						_tmp160_ = _tmp159_;
						_tmp161_ = _tmp160_->string_type;
						_tmp162_ = _vala_code_node_ref0 (_tmp161_);
						_vala_code_node_unref0 (param_type);
						param_type = _tmp162_;
					} else {
						gunichar _tmp163_;
						_tmp163_ = c;
						if (_tmp163_ == ((gunichar) 'p')) {
							ValaVoidType* _tmp164_;
							ValaVoidType* _tmp165_;
							ValaPointerType* _tmp166_;
							_tmp164_ = vala_void_type_new (NULL);
							_tmp165_ = _tmp164_;
							_tmp166_ = vala_pointer_type_new ((ValaDataType*) _tmp165_, NULL);
							_vala_code_node_unref0 (param_type);
							param_type = (ValaDataType*) _tmp166_;
							_vala_code_node_unref0 (_tmp165_);
						} else {
							gunichar _tmp167_;
							_tmp167_ = c;
							if (_tmp167_ == ((gunichar) '%')) {
							} else {
								unsupported_format = TRUE;
								_vala_code_node_unref0 (param_type);
								break;
							}
						}
					}
				}
			}
		}
		_tmp168_ = c;
		if (_tmp168_ != ((gunichar) '\0')) {
			const gchar* _tmp169_;
			const gchar* _tmp170_;
			const gchar* _tmp171_;
			gunichar _tmp172_;
			_tmp169_ = format_it;
			_tmp170_ = g_utf8_next_char (_tmp169_);
			format_it = _tmp170_;
			_tmp171_ = format_it;
			_tmp172_ = string_get_char (_tmp171_, (glong) 0);
			c = _tmp172_;
		}
		_tmp173_ = param_type;
		if (_tmp173_ != NULL) {
			ValaIterator* _tmp174_;
			gboolean _tmp175_;
			_tmp174_ = arg_it;
			_tmp175_ = vala_iterator_next (_tmp174_);
			if (_tmp175_) {
				ValaExpression* arg = NULL;
				ValaIterator* _tmp176_;
				gpointer _tmp177_;
				ValaExpression* _tmp178_;
				ValaDataType* _tmp179_;
				_tmp176_ = arg_it;
				_tmp177_ = vala_iterator_get (_tmp176_);
				arg = (ValaExpression*) _tmp177_;
				_tmp178_ = arg;
				_tmp179_ = param_type;
				vala_expression_set_target_type (_tmp178_, _tmp179_);
				_vala_code_node_unref0 (arg);
			} else {
				ValaSourceReference* _tmp180_;
				_tmp180_ = source_reference;
				vala_report_error (_tmp180_, "Too few arguments for specified format");
				result = FALSE;
				_vala_code_node_unref0 (param_type);
				return result;
			}
		}
		_vala_code_node_unref0 (param_type);
	}
	_tmp182_ = unsupported_format;
	if (!_tmp182_) {
		ValaIterator* _tmp183_;
		gboolean _tmp184_;
		_tmp183_ = arg_it;
		_tmp184_ = vala_iterator_next (_tmp183_);
		_tmp181_ = _tmp184_;
	} else {
		_tmp181_ = FALSE;
	}
	if (_tmp181_) {
		ValaSourceReference* _tmp185_;
		_tmp185_ = source_reference;
		vala_report_error (_tmp185_, "Too many arguments for specified format");
		result = FALSE;
		return result;
	}
	result = TRUE;
	return result;
}


static ValaDataType* vala_semantic_analyzer_get_instance_base_type (ValaDataType* instance_type, ValaDataType* base_type, ValaCodeNode* node_reference) {
	ValaDataType* result = NULL;
	ValaDataType* instance_base_type = NULL;
	ValaDataType* _tmp0_;
	ValaTypeSymbol* _tmp1_;
	ValaTypeSymbol* _tmp2_;
	g_return_val_if_fail (instance_type != NULL, NULL);
	g_return_val_if_fail (base_type != NULL, NULL);
	g_return_val_if_fail (node_reference != NULL, NULL);
	_tmp0_ = base_type;
	_tmp1_ = vala_data_type_get_data_type (_tmp0_);
	_tmp2_ = _tmp1_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_OBJECT_TYPE_SYMBOL)) {
		ValaDataType* _tmp3_;
		ValaTypeSymbol* _tmp4_;
		ValaTypeSymbol* _tmp5_;
		ValaObjectType* _tmp6_;
		_tmp3_ = base_type;
		_tmp4_ = vala_data_type_get_data_type (_tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = vala_object_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, VALA_TYPE_OBJECT_TYPE_SYMBOL, ValaObjectTypeSymbol));
		_vala_code_node_unref0 (instance_base_type);
		instance_base_type = (ValaDataType*) _tmp6_;
	} else {
		ValaDataType* _tmp7_;
		ValaTypeSymbol* _tmp8_;
		ValaTypeSymbol* _tmp9_;
		_tmp7_ = base_type;
		_tmp8_ = vala_data_type_get_data_type (_tmp7_);
		_tmp9_ = _tmp8_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp9_, VALA_TYPE_STRUCT)) {
			ValaDataType* _tmp10_;
			ValaTypeSymbol* _tmp11_;
			ValaTypeSymbol* _tmp12_;
			ValaStructValueType* _tmp13_;
			_tmp10_ = base_type;
			_tmp11_ = vala_data_type_get_data_type (_tmp10_);
			_tmp12_ = _tmp11_;
			_tmp13_ = vala_struct_value_type_new (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, VALA_TYPE_STRUCT, ValaStruct));
			_vala_code_node_unref0 (instance_base_type);
			instance_base_type = (ValaDataType*) _tmp13_;
		} else {
			g_assert_not_reached ();
		}
	}
	{
		ValaList* _type_arg_list = NULL;
		ValaDataType* _tmp14_;
		ValaList* _tmp15_;
		gint _type_arg_size = 0;
		ValaList* _tmp16_;
		gint _tmp17_;
		gint _tmp18_;
		gint _type_arg_index = 0;
		_tmp14_ = base_type;
		_tmp15_ = vala_data_type_get_type_arguments (_tmp14_);
		_type_arg_list = _tmp15_;
		_tmp16_ = _type_arg_list;
		_tmp17_ = vala_collection_get_size ((ValaCollection*) _tmp16_);
		_tmp18_ = _tmp17_;
		_type_arg_size = _tmp18_;
		_type_arg_index = -1;
		while (TRUE) {
			gint _tmp19_;
			gint _tmp20_;
			gint _tmp21_;
			ValaDataType* type_arg = NULL;
			ValaList* _tmp22_;
			gint _tmp23_;
			gpointer _tmp24_;
			ValaDataType* _tmp25_;
			ValaDataType* _tmp26_;
			ValaCodeNode* _tmp27_;
			ValaDataType* _tmp28_;
			ValaDataType* _tmp29_;
			ValaDataType* _tmp30_;
			_tmp19_ = _type_arg_index;
			_type_arg_index = _tmp19_ + 1;
			_tmp20_ = _type_arg_index;
			_tmp21_ = _type_arg_size;
			if (!(_tmp20_ < _tmp21_)) {
				break;
			}
			_tmp22_ = _type_arg_list;
			_tmp23_ = _type_arg_index;
			_tmp24_ = vala_list_get (_tmp22_, _tmp23_);
			type_arg = (ValaDataType*) _tmp24_;
			_tmp25_ = type_arg;
			_tmp26_ = instance_type;
			_tmp27_ = node_reference;
			_tmp28_ = vala_data_type_get_actual_type (_tmp25_, _tmp26_, NULL, _tmp27_);
			_vala_code_node_unref0 (type_arg);
			type_arg = _tmp28_;
			_tmp29_ = instance_base_type;
			_tmp30_ = type_arg;
			vala_data_type_add_type_argument (_tmp29_, _tmp30_);
			_vala_code_node_unref0 (type_arg);
		}
		_vala_iterable_unref0 (_type_arg_list);
	}
	result = instance_base_type;
	return result;
}


G_GNUC_INTERNAL ValaDataType* vala_semantic_analyzer_get_instance_base_type_for_member (ValaDataType* derived_instance_type, ValaTypeSymbol* type_symbol, ValaCodeNode* node_reference) {
	ValaDataType* result = NULL;
	ValaDataType* instance_type = NULL;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	gboolean _tmp9_ = FALSE;
	ValaDataType* _tmp10_;
	ValaDataType* instance_base_type = NULL;
	ValaDataType* _tmp19_;
	ValaTypeSymbol* _tmp20_;
	ValaTypeSymbol* _tmp21_;
	g_return_val_if_fail (derived_instance_type != NULL, NULL);
	g_return_val_if_fail (type_symbol != NULL, NULL);
	g_return_val_if_fail (node_reference != NULL, NULL);
	_tmp0_ = derived_instance_type;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	instance_type = _tmp1_;
	while (TRUE) {
		ValaDataType* _tmp2_;
		ValaPointerType* instance_pointer_type = NULL;
		ValaDataType* _tmp3_;
		ValaPointerType* _tmp4_;
		ValaPointerType* _tmp5_;
		ValaDataType* _tmp6_;
		ValaDataType* _tmp7_;
		ValaDataType* _tmp8_;
		_tmp2_ = instance_type;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_POINTER_TYPE)) {
			break;
		}
		_tmp3_ = instance_type;
		_tmp4_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp3_, VALA_TYPE_POINTER_TYPE, ValaPointerType));
		instance_pointer_type = _tmp4_;
		_tmp5_ = instance_pointer_type;
		_tmp6_ = vala_pointer_type_get_base_type (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = _vala_code_node_ref0 (_tmp7_);
		_vala_code_node_unref0 (instance_type);
		instance_type = _tmp8_;
		_vala_code_node_unref0 (instance_pointer_type);
	}
	_tmp10_ = instance_type;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, VALA_TYPE_DELEGATE_TYPE)) {
		ValaDataType* _tmp11_;
		ValaDelegate* _tmp12_;
		ValaDelegate* _tmp13_;
		ValaTypeSymbol* _tmp14_;
		_tmp11_ = instance_type;
		_tmp12_ = vala_delegate_type_get_delegate_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, VALA_TYPE_DELEGATE_TYPE, ValaDelegateType));
		_tmp13_ = _tmp12_;
		_tmp14_ = type_symbol;
		_tmp9_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp13_, VALA_TYPE_TYPESYMBOL, ValaTypeSymbol) == _tmp14_;
	} else {
		_tmp9_ = FALSE;
	}
	if (_tmp9_) {
		result = instance_type;
		return result;
	} else {
		ValaDataType* _tmp15_;
		ValaTypeSymbol* _tmp16_;
		ValaTypeSymbol* _tmp17_;
		ValaTypeSymbol* _tmp18_;
		_tmp15_ = instance_type;
		_tmp16_ = vala_data_type_get_data_type (_tmp15_);
		_tmp17_ = _tmp16_;
		_tmp18_ = type_symbol;
		if (_tmp17_ == _tmp18_) {
			result = instance_type;
			return result;
		}
	}
	instance_base_type = NULL;
	_tmp19_ = instance_type;
	_tmp20_ = vala_data_type_get_data_type (_tmp19_);
	_tmp21_ = _tmp20_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp21_, VALA_TYPE_CLASS)) {
		ValaClass* cl = NULL;
		ValaDataType* _tmp22_;
		ValaTypeSymbol* _tmp23_;
		ValaTypeSymbol* _tmp24_;
		ValaClass* _tmp25_;
		ValaDataType* _tmp49_;
		_tmp22_ = instance_type;
		_tmp23_ = vala_data_type_get_data_type (_tmp22_);
		_tmp24_ = _tmp23_;
		_tmp25_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp24_, VALA_TYPE_CLASS, ValaClass));
		cl = _tmp25_;
		{
			ValaList* _base_type_list = NULL;
			ValaClass* _tmp26_;
			ValaList* _tmp27_;
			gint _base_type_size = 0;
			ValaList* _tmp28_;
			gint _tmp29_;
			gint _tmp30_;
			gint _base_type_index = 0;
			_tmp26_ = cl;
			_tmp27_ = vala_class_get_base_types (_tmp26_);
			_base_type_list = _tmp27_;
			_tmp28_ = _base_type_list;
			_tmp29_ = vala_collection_get_size ((ValaCollection*) _tmp28_);
			_tmp30_ = _tmp29_;
			_base_type_size = _tmp30_;
			_base_type_index = -1;
			while (TRUE) {
				gint _tmp31_;
				gint _tmp32_;
				gint _tmp33_;
				ValaDataType* base_type = NULL;
				ValaList* _tmp34_;
				gint _tmp35_;
				gpointer _tmp36_;
				ValaDataType* _tmp37_;
				ValaTypeSymbol* _tmp38_;
				ValaTypeSymbol* _tmp39_;
				_tmp31_ = _base_type_index;
				_base_type_index = _tmp31_ + 1;
				_tmp32_ = _base_type_index;
				_tmp33_ = _base_type_size;
				if (!(_tmp32_ < _tmp33_)) {
					break;
				}
				_tmp34_ = _base_type_list;
				_tmp35_ = _base_type_index;
				_tmp36_ = vala_list_get (_tmp34_, _tmp35_);
				base_type = (ValaDataType*) _tmp36_;
				_tmp37_ = base_type;
				_tmp38_ = vala_data_type_get_data_type (_tmp37_);
				_tmp39_ = _tmp38_;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp39_, VALA_TYPE_INTERFACE)) {
					ValaDataType* _tmp40_;
					ValaDataType* _tmp41_;
					ValaCodeNode* _tmp42_;
					ValaDataType* _tmp43_;
					ValaDataType* _tmp44_;
					ValaTypeSymbol* _tmp45_;
					ValaCodeNode* _tmp46_;
					ValaDataType* _tmp47_;
					ValaDataType* _tmp48_;
					_tmp40_ = instance_type;
					_tmp41_ = base_type;
					_tmp42_ = node_reference;
					_tmp43_ = vala_semantic_analyzer_get_instance_base_type (_tmp40_, _tmp41_, _tmp42_);
					_tmp44_ = _tmp43_;
					_tmp45_ = type_symbol;
					_tmp46_ = node_reference;
					_tmp47_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp44_, _tmp45_, _tmp46_);
					_vala_code_node_unref0 (instance_base_type);
					instance_base_type = _tmp47_;
					_vala_code_node_unref0 (_tmp44_);
					_tmp48_ = instance_base_type;
					if (_tmp48_ != NULL) {
						result = instance_base_type;
						_vala_code_node_unref0 (base_type);
						_vala_iterable_unref0 (_base_type_list);
						_vala_code_node_unref0 (cl);
						_vala_code_node_unref0 (instance_type);
						return result;
					}
				}
				_vala_code_node_unref0 (base_type);
			}
			_vala_iterable_unref0 (_base_type_list);
		}
		_tmp49_ = instance_base_type;
		if (_tmp49_ == NULL) {
			{
				ValaList* _base_type_list = NULL;
				ValaClass* _tmp50_;
				ValaList* _tmp51_;
				gint _base_type_size = 0;
				ValaList* _tmp52_;
				gint _tmp53_;
				gint _tmp54_;
				gint _base_type_index = 0;
				_tmp50_ = cl;
				_tmp51_ = vala_class_get_base_types (_tmp50_);
				_base_type_list = _tmp51_;
				_tmp52_ = _base_type_list;
				_tmp53_ = vala_collection_get_size ((ValaCollection*) _tmp52_);
				_tmp54_ = _tmp53_;
				_base_type_size = _tmp54_;
				_base_type_index = -1;
				while (TRUE) {
					gint _tmp55_;
					gint _tmp56_;
					gint _tmp57_;
					ValaDataType* base_type = NULL;
					ValaList* _tmp58_;
					gint _tmp59_;
					gpointer _tmp60_;
					ValaDataType* _tmp61_;
					ValaTypeSymbol* _tmp62_;
					ValaTypeSymbol* _tmp63_;
					_tmp55_ = _base_type_index;
					_base_type_index = _tmp55_ + 1;
					_tmp56_ = _base_type_index;
					_tmp57_ = _base_type_size;
					if (!(_tmp56_ < _tmp57_)) {
						break;
					}
					_tmp58_ = _base_type_list;
					_tmp59_ = _base_type_index;
					_tmp60_ = vala_list_get (_tmp58_, _tmp59_);
					base_type = (ValaDataType*) _tmp60_;
					_tmp61_ = base_type;
					_tmp62_ = vala_data_type_get_data_type (_tmp61_);
					_tmp63_ = _tmp62_;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp63_, VALA_TYPE_CLASS)) {
						ValaDataType* _tmp64_;
						ValaDataType* _tmp65_;
						ValaCodeNode* _tmp66_;
						ValaDataType* _tmp67_;
						ValaDataType* _tmp68_;
						ValaTypeSymbol* _tmp69_;
						ValaCodeNode* _tmp70_;
						ValaDataType* _tmp71_;
						ValaDataType* _tmp72_;
						_tmp64_ = instance_type;
						_tmp65_ = base_type;
						_tmp66_ = node_reference;
						_tmp67_ = vala_semantic_analyzer_get_instance_base_type (_tmp64_, _tmp65_, _tmp66_);
						_tmp68_ = _tmp67_;
						_tmp69_ = type_symbol;
						_tmp70_ = node_reference;
						_tmp71_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp68_, _tmp69_, _tmp70_);
						_vala_code_node_unref0 (instance_base_type);
						instance_base_type = _tmp71_;
						_vala_code_node_unref0 (_tmp68_);
						_tmp72_ = instance_base_type;
						if (_tmp72_ != NULL) {
							result = instance_base_type;
							_vala_code_node_unref0 (base_type);
							_vala_iterable_unref0 (_base_type_list);
							_vala_code_node_unref0 (cl);
							_vala_code_node_unref0 (instance_type);
							return result;
						}
					}
					_vala_code_node_unref0 (base_type);
				}
				_vala_iterable_unref0 (_base_type_list);
			}
		}
		_vala_code_node_unref0 (cl);
	} else {
		ValaDataType* _tmp73_;
		ValaTypeSymbol* _tmp74_;
		ValaTypeSymbol* _tmp75_;
		_tmp73_ = instance_type;
		_tmp74_ = vala_data_type_get_data_type (_tmp73_);
		_tmp75_ = _tmp74_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp75_, VALA_TYPE_STRUCT)) {
			ValaStruct* st = NULL;
			ValaDataType* _tmp76_;
			ValaTypeSymbol* _tmp77_;
			ValaTypeSymbol* _tmp78_;
			ValaStruct* _tmp79_;
			ValaStruct* _tmp80_;
			ValaDataType* _tmp81_;
			ValaDataType* _tmp82_;
			_tmp76_ = instance_type;
			_tmp77_ = vala_data_type_get_data_type (_tmp76_);
			_tmp78_ = _tmp77_;
			_tmp79_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, VALA_TYPE_STRUCT, ValaStruct));
			st = _tmp79_;
			_tmp80_ = st;
			_tmp81_ = vala_struct_get_base_type (_tmp80_);
			_tmp82_ = _tmp81_;
			if (_tmp82_ != NULL) {
				ValaDataType* _tmp83_;
				ValaStruct* _tmp84_;
				ValaDataType* _tmp85_;
				ValaDataType* _tmp86_;
				ValaCodeNode* _tmp87_;
				ValaDataType* _tmp88_;
				ValaDataType* _tmp89_;
				ValaTypeSymbol* _tmp90_;
				ValaCodeNode* _tmp91_;
				ValaDataType* _tmp92_;
				ValaDataType* _tmp93_;
				_tmp83_ = instance_type;
				_tmp84_ = st;
				_tmp85_ = vala_struct_get_base_type (_tmp84_);
				_tmp86_ = _tmp85_;
				_tmp87_ = node_reference;
				_tmp88_ = vala_semantic_analyzer_get_instance_base_type (_tmp83_, _tmp86_, _tmp87_);
				_tmp89_ = _tmp88_;
				_tmp90_ = type_symbol;
				_tmp91_ = node_reference;
				_tmp92_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp89_, _tmp90_, _tmp91_);
				_vala_code_node_unref0 (instance_base_type);
				instance_base_type = _tmp92_;
				_vala_code_node_unref0 (_tmp89_);
				_tmp93_ = instance_base_type;
				if (_tmp93_ != NULL) {
					result = instance_base_type;
					_vala_code_node_unref0 (st);
					_vala_code_node_unref0 (instance_type);
					return result;
				}
			}
			_vala_code_node_unref0 (st);
		} else {
			ValaDataType* _tmp94_;
			ValaTypeSymbol* _tmp95_;
			ValaTypeSymbol* _tmp96_;
			_tmp94_ = instance_type;
			_tmp95_ = vala_data_type_get_data_type (_tmp94_);
			_tmp96_ = _tmp95_;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp96_, VALA_TYPE_INTERFACE)) {
				ValaInterface* iface = NULL;
				ValaDataType* _tmp97_;
				ValaTypeSymbol* _tmp98_;
				ValaTypeSymbol* _tmp99_;
				ValaInterface* _tmp100_;
				ValaDataType* _tmp124_;
				_tmp97_ = instance_type;
				_tmp98_ = vala_data_type_get_data_type (_tmp97_);
				_tmp99_ = _tmp98_;
				_tmp100_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp99_, VALA_TYPE_INTERFACE, ValaInterface));
				iface = _tmp100_;
				{
					ValaList* _prerequisite_list = NULL;
					ValaInterface* _tmp101_;
					ValaList* _tmp102_;
					gint _prerequisite_size = 0;
					ValaList* _tmp103_;
					gint _tmp104_;
					gint _tmp105_;
					gint _prerequisite_index = 0;
					_tmp101_ = iface;
					_tmp102_ = vala_interface_get_prerequisites (_tmp101_);
					_prerequisite_list = _tmp102_;
					_tmp103_ = _prerequisite_list;
					_tmp104_ = vala_collection_get_size ((ValaCollection*) _tmp103_);
					_tmp105_ = _tmp104_;
					_prerequisite_size = _tmp105_;
					_prerequisite_index = -1;
					while (TRUE) {
						gint _tmp106_;
						gint _tmp107_;
						gint _tmp108_;
						ValaDataType* prerequisite = NULL;
						ValaList* _tmp109_;
						gint _tmp110_;
						gpointer _tmp111_;
						ValaDataType* _tmp112_;
						ValaTypeSymbol* _tmp113_;
						ValaTypeSymbol* _tmp114_;
						_tmp106_ = _prerequisite_index;
						_prerequisite_index = _tmp106_ + 1;
						_tmp107_ = _prerequisite_index;
						_tmp108_ = _prerequisite_size;
						if (!(_tmp107_ < _tmp108_)) {
							break;
						}
						_tmp109_ = _prerequisite_list;
						_tmp110_ = _prerequisite_index;
						_tmp111_ = vala_list_get (_tmp109_, _tmp110_);
						prerequisite = (ValaDataType*) _tmp111_;
						_tmp112_ = prerequisite;
						_tmp113_ = vala_data_type_get_data_type (_tmp112_);
						_tmp114_ = _tmp113_;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp114_, VALA_TYPE_INTERFACE)) {
							ValaDataType* _tmp115_;
							ValaDataType* _tmp116_;
							ValaCodeNode* _tmp117_;
							ValaDataType* _tmp118_;
							ValaDataType* _tmp119_;
							ValaTypeSymbol* _tmp120_;
							ValaCodeNode* _tmp121_;
							ValaDataType* _tmp122_;
							ValaDataType* _tmp123_;
							_tmp115_ = instance_type;
							_tmp116_ = prerequisite;
							_tmp117_ = node_reference;
							_tmp118_ = vala_semantic_analyzer_get_instance_base_type (_tmp115_, _tmp116_, _tmp117_);
							_tmp119_ = _tmp118_;
							_tmp120_ = type_symbol;
							_tmp121_ = node_reference;
							_tmp122_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp119_, _tmp120_, _tmp121_);
							_vala_code_node_unref0 (instance_base_type);
							instance_base_type = _tmp122_;
							_vala_code_node_unref0 (_tmp119_);
							_tmp123_ = instance_base_type;
							if (_tmp123_ != NULL) {
								result = instance_base_type;
								_vala_code_node_unref0 (prerequisite);
								_vala_iterable_unref0 (_prerequisite_list);
								_vala_code_node_unref0 (iface);
								_vala_code_node_unref0 (instance_type);
								return result;
							}
						}
						_vala_code_node_unref0 (prerequisite);
					}
					_vala_iterable_unref0 (_prerequisite_list);
				}
				_tmp124_ = instance_base_type;
				if (_tmp124_ == NULL) {
					{
						ValaList* _prerequisite_list = NULL;
						ValaInterface* _tmp125_;
						ValaList* _tmp126_;
						gint _prerequisite_size = 0;
						ValaList* _tmp127_;
						gint _tmp128_;
						gint _tmp129_;
						gint _prerequisite_index = 0;
						_tmp125_ = iface;
						_tmp126_ = vala_interface_get_prerequisites (_tmp125_);
						_prerequisite_list = _tmp126_;
						_tmp127_ = _prerequisite_list;
						_tmp128_ = vala_collection_get_size ((ValaCollection*) _tmp127_);
						_tmp129_ = _tmp128_;
						_prerequisite_size = _tmp129_;
						_prerequisite_index = -1;
						while (TRUE) {
							gint _tmp130_;
							gint _tmp131_;
							gint _tmp132_;
							ValaDataType* prerequisite = NULL;
							ValaList* _tmp133_;
							gint _tmp134_;
							gpointer _tmp135_;
							ValaDataType* _tmp136_;
							ValaTypeSymbol* _tmp137_;
							ValaTypeSymbol* _tmp138_;
							_tmp130_ = _prerequisite_index;
							_prerequisite_index = _tmp130_ + 1;
							_tmp131_ = _prerequisite_index;
							_tmp132_ = _prerequisite_size;
							if (!(_tmp131_ < _tmp132_)) {
								break;
							}
							_tmp133_ = _prerequisite_list;
							_tmp134_ = _prerequisite_index;
							_tmp135_ = vala_list_get (_tmp133_, _tmp134_);
							prerequisite = (ValaDataType*) _tmp135_;
							_tmp136_ = prerequisite;
							_tmp137_ = vala_data_type_get_data_type (_tmp136_);
							_tmp138_ = _tmp137_;
							if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp138_, VALA_TYPE_CLASS)) {
								ValaDataType* _tmp139_;
								ValaDataType* _tmp140_;
								ValaCodeNode* _tmp141_;
								ValaDataType* _tmp142_;
								ValaDataType* _tmp143_;
								ValaTypeSymbol* _tmp144_;
								ValaCodeNode* _tmp145_;
								ValaDataType* _tmp146_;
								ValaDataType* _tmp147_;
								_tmp139_ = instance_type;
								_tmp140_ = prerequisite;
								_tmp141_ = node_reference;
								_tmp142_ = vala_semantic_analyzer_get_instance_base_type (_tmp139_, _tmp140_, _tmp141_);
								_tmp143_ = _tmp142_;
								_tmp144_ = type_symbol;
								_tmp145_ = node_reference;
								_tmp146_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp143_, _tmp144_, _tmp145_);
								_vala_code_node_unref0 (instance_base_type);
								instance_base_type = _tmp146_;
								_vala_code_node_unref0 (_tmp143_);
								_tmp147_ = instance_base_type;
								if (_tmp147_ != NULL) {
									result = instance_base_type;
									_vala_code_node_unref0 (prerequisite);
									_vala_iterable_unref0 (_prerequisite_list);
									_vala_code_node_unref0 (iface);
									_vala_code_node_unref0 (instance_type);
									return result;
								}
							}
							_vala_code_node_unref0 (prerequisite);
						}
						_vala_iterable_unref0 (_prerequisite_list);
					}
				}
				_vala_code_node_unref0 (iface);
			}
		}
	}
	result = NULL;
	_vala_code_node_unref0 (instance_base_type);
	_vala_code_node_unref0 (instance_type);
	return result;
}


ValaDataType* vala_semantic_analyzer_get_actual_type (ValaDataType* derived_instance_type, ValaList* method_type_arguments, ValaGenericType* generic_type, ValaCodeNode* node_reference) {
	ValaDataType* result = NULL;
	ValaDataType* actual_type = NULL;
	ValaGenericType* _tmp0_;
	ValaTypeParameter* _tmp1_;
	ValaTypeParameter* _tmp2_;
	ValaSymbol* _tmp3_;
	ValaSymbol* _tmp4_;
	ValaDataType* _tmp91_;
	ValaDataType* _tmp94_;
	ValaDataType* _tmp95_;
	gboolean _tmp96_ = FALSE;
	ValaDataType* _tmp97_;
	gboolean _tmp98_;
	gboolean _tmp99_;
	ValaDataType* _tmp103_;
	g_return_val_if_fail (generic_type != NULL, NULL);
	g_return_val_if_fail (node_reference != NULL, NULL);
	actual_type = NULL;
	_tmp0_ = generic_type;
	_tmp1_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp2_);
	_tmp4_ = _tmp3_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_TYPESYMBOL)) {
		ValaDataType* _tmp5_;
		_tmp5_ = derived_instance_type;
		if (_tmp5_ != NULL) {
			ValaDataType* instance_type = NULL;
			ValaDataType* _tmp6_;
			ValaGenericType* _tmp7_;
			ValaTypeParameter* _tmp8_;
			ValaTypeParameter* _tmp9_;
			ValaSymbol* _tmp10_;
			ValaSymbol* _tmp11_;
			ValaCodeNode* _tmp12_;
			ValaDataType* _tmp13_;
			ValaDataType* _tmp14_;
			gint param_index = 0;
			ValaDataType* _tmp15_;
			gint _tmp34_;
			gint _tmp46_;
			ValaDataType* _tmp47_;
			ValaList* _tmp48_;
			ValaList* _tmp49_;
			gint _tmp50_;
			gint _tmp51_;
			gboolean _tmp52_;
			_tmp6_ = derived_instance_type;
			_tmp7_ = generic_type;
			_tmp8_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp7_);
			_tmp9_ = _tmp8_;
			_tmp10_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp9_);
			_tmp11_ = _tmp10_;
			_tmp12_ = node_reference;
			_tmp13_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp6_, G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, VALA_TYPE_TYPESYMBOL, ValaTypeSymbol), _tmp12_);
			instance_type = _tmp13_;
			_tmp14_ = instance_type;
			_vala_assert (_tmp14_ != NULL, "instance_type != null");
			_tmp15_ = instance_type;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, VALA_TYPE_DELEGATE_TYPE)) {
				ValaDataType* _tmp16_;
				ValaDelegate* _tmp17_;
				ValaDelegate* _tmp18_;
				ValaGenericType* _tmp19_;
				ValaTypeParameter* _tmp20_;
				ValaTypeParameter* _tmp21_;
				const gchar* _tmp22_;
				const gchar* _tmp23_;
				gint _tmp24_;
				_tmp16_ = instance_type;
				_tmp17_ = vala_delegate_type_get_delegate_symbol (G_TYPE_CHECK_INSTANCE_CAST (_tmp16_, VALA_TYPE_DELEGATE_TYPE, ValaDelegateType));
				_tmp18_ = _tmp17_;
				_tmp19_ = generic_type;
				_tmp20_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp19_);
				_tmp21_ = _tmp20_;
				_tmp22_ = vala_symbol_get_name ((ValaSymbol*) _tmp21_);
				_tmp23_ = _tmp22_;
				_tmp24_ = vala_typesymbol_get_type_parameter_index ((ValaTypeSymbol*) _tmp18_, _tmp23_);
				param_index = _tmp24_;
			} else {
				ValaDataType* _tmp25_;
				ValaTypeSymbol* _tmp26_;
				ValaTypeSymbol* _tmp27_;
				ValaGenericType* _tmp28_;
				ValaTypeParameter* _tmp29_;
				ValaTypeParameter* _tmp30_;
				const gchar* _tmp31_;
				const gchar* _tmp32_;
				gint _tmp33_;
				_tmp25_ = instance_type;
				_tmp26_ = vala_data_type_get_data_type (_tmp25_);
				_tmp27_ = _tmp26_;
				_tmp28_ = generic_type;
				_tmp29_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp28_);
				_tmp30_ = _tmp29_;
				_tmp31_ = vala_symbol_get_name ((ValaSymbol*) _tmp30_);
				_tmp32_ = _tmp31_;
				_tmp33_ = vala_typesymbol_get_type_parameter_index (_tmp27_, _tmp32_);
				param_index = _tmp33_;
			}
			_tmp34_ = param_index;
			if (_tmp34_ == -1) {
				ValaCodeNode* _tmp35_;
				ValaSourceReference* _tmp36_;
				ValaSourceReference* _tmp37_;
				ValaGenericType* _tmp38_;
				ValaTypeParameter* _tmp39_;
				ValaTypeParameter* _tmp40_;
				const gchar* _tmp41_;
				const gchar* _tmp42_;
				gchar* _tmp43_;
				gchar* _tmp44_;
				ValaCodeNode* _tmp45_;
				_tmp35_ = node_reference;
				_tmp36_ = vala_code_node_get_source_reference (_tmp35_);
				_tmp37_ = _tmp36_;
				_tmp38_ = generic_type;
				_tmp39_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp38_);
				_tmp40_ = _tmp39_;
				_tmp41_ = vala_symbol_get_name ((ValaSymbol*) _tmp40_);
				_tmp42_ = _tmp41_;
				_tmp43_ = g_strdup_printf ("internal error: unknown type parameter %s", _tmp42_);
				_tmp44_ = _tmp43_;
				vala_report_error (_tmp37_, _tmp44_);
				_g_free0 (_tmp44_);
				_tmp45_ = node_reference;
				vala_code_node_set_error (_tmp45_, TRUE);
				result = NULL;
				_vala_code_node_unref0 (instance_type);
				_vala_code_node_unref0 (actual_type);
				return result;
			}
			_tmp46_ = param_index;
			_tmp47_ = instance_type;
			_tmp48_ = vala_data_type_get_type_arguments (_tmp47_);
			_tmp49_ = _tmp48_;
			_tmp50_ = vala_collection_get_size ((ValaCollection*) _tmp49_);
			_tmp51_ = _tmp50_;
			_tmp52_ = _tmp46_ < _tmp51_;
			_vala_iterable_unref0 (_tmp49_);
			if (_tmp52_) {
				ValaDataType* _tmp53_;
				ValaList* _tmp54_;
				ValaList* _tmp55_;
				gint _tmp56_;
				gpointer _tmp57_;
				_tmp53_ = instance_type;
				_tmp54_ = vala_data_type_get_type_arguments (_tmp53_);
				_tmp55_ = _tmp54_;
				_tmp56_ = param_index;
				_tmp57_ = vala_list_get (_tmp55_, _tmp56_);
				_vala_code_node_unref0 (actual_type);
				actual_type = G_TYPE_CHECK_INSTANCE_CAST ((ValaDataType*) _tmp57_, VALA_TYPE_DATA_TYPE, ValaDataType);
				_vala_iterable_unref0 (_tmp55_);
			}
			_vala_code_node_unref0 (instance_type);
		}
	} else {
		ValaMethod* m = NULL;
		ValaGenericType* _tmp58_;
		ValaTypeParameter* _tmp59_;
		ValaTypeParameter* _tmp60_;
		ValaSymbol* _tmp61_;
		ValaSymbol* _tmp62_;
		ValaMethod* _tmp63_;
		gint param_index = 0;
		ValaMethod* _tmp64_;
		ValaGenericType* _tmp65_;
		ValaTypeParameter* _tmp66_;
		ValaTypeParameter* _tmp67_;
		const gchar* _tmp68_;
		const gchar* _tmp69_;
		gint _tmp70_;
		gint _tmp71_;
		ValaList* _tmp83_;
		_tmp58_ = generic_type;
		_tmp59_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp58_);
		_tmp60_ = _tmp59_;
		_tmp61_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp60_);
		_tmp62_ = _tmp61_;
		_tmp63_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, VALA_TYPE_METHOD, ValaMethod));
		m = _tmp63_;
		_tmp64_ = m;
		_tmp65_ = generic_type;
		_tmp66_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp65_);
		_tmp67_ = _tmp66_;
		_tmp68_ = vala_symbol_get_name ((ValaSymbol*) _tmp67_);
		_tmp69_ = _tmp68_;
		_tmp70_ = vala_method_get_type_parameter_index (_tmp64_, _tmp69_);
		param_index = _tmp70_;
		_tmp71_ = param_index;
		if (_tmp71_ == -1) {
			ValaCodeNode* _tmp72_;
			ValaSourceReference* _tmp73_;
			ValaSourceReference* _tmp74_;
			ValaGenericType* _tmp75_;
			ValaTypeParameter* _tmp76_;
			ValaTypeParameter* _tmp77_;
			const gchar* _tmp78_;
			const gchar* _tmp79_;
			gchar* _tmp80_;
			gchar* _tmp81_;
			ValaCodeNode* _tmp82_;
			_tmp72_ = node_reference;
			_tmp73_ = vala_code_node_get_source_reference (_tmp72_);
			_tmp74_ = _tmp73_;
			_tmp75_ = generic_type;
			_tmp76_ = vala_data_type_get_type_parameter ((ValaDataType*) _tmp75_);
			_tmp77_ = _tmp76_;
			_tmp78_ = vala_symbol_get_name ((ValaSymbol*) _tmp77_);
			_tmp79_ = _tmp78_;
			_tmp80_ = g_strdup_printf ("internal error: unknown type parameter %s", _tmp79_);
			_tmp81_ = _tmp80_;
			vala_report_error (_tmp74_, _tmp81_);
			_g_free0 (_tmp81_);
			_tmp82_ = node_reference;
			vala_code_node_set_error (_tmp82_, TRUE);
			result = NULL;
			_vala_code_node_unref0 (m);
			_vala_code_node_unref0 (actual_type);
			return result;
		}
		_tmp83_ = method_type_arguments;
		if (_tmp83_ != NULL) {
			gint _tmp84_;
			ValaList* _tmp85_;
			gint _tmp86_;
			gint _tmp87_;
			_tmp84_ = param_index;
			_tmp85_ = method_type_arguments;
			_tmp86_ = vala_collection_get_size ((ValaCollection*) _tmp85_);
			_tmp87_ = _tmp86_;
			if (_tmp84_ < _tmp87_) {
				ValaList* _tmp88_;
				gint _tmp89_;
				gpointer _tmp90_;
				_tmp88_ = method_type_arguments;
				_tmp89_ = param_index;
				_tmp90_ = vala_list_get (_tmp88_, _tmp89_);
				_vala_code_node_unref0 (actual_type);
				actual_type = G_TYPE_CHECK_INSTANCE_CAST ((ValaDataType*) _tmp90_, VALA_TYPE_DATA_TYPE, ValaDataType);
			}
		}
		_vala_code_node_unref0 (m);
	}
	_tmp91_ = actual_type;
	if (_tmp91_ == NULL) {
		ValaGenericType* _tmp92_;
		ValaDataType* _tmp93_;
		_tmp92_ = generic_type;
		_tmp93_ = _vala_code_node_ref0 ((ValaDataType*) _tmp92_);
		result = _tmp93_;
		_vala_code_node_unref0 (actual_type);
		return result;
	}
	_tmp94_ = actual_type;
	_tmp95_ = vala_data_type_copy (_tmp94_);
	_vala_code_node_unref0 (actual_type);
	actual_type = _tmp95_;
	_tmp97_ = actual_type;
	_tmp98_ = vala_data_type_get_value_owned (_tmp97_);
	_tmp99_ = _tmp98_;
	if (_tmp99_) {
		ValaGenericType* _tmp100_;
		gboolean _tmp101_;
		gboolean _tmp102_;
		_tmp100_ = generic_type;
		_tmp101_ = vala_data_type_get_value_owned ((ValaDataType*) _tmp100_);
		_tmp102_ = _tmp101_;
		_tmp96_ = _tmp102_;
	} else {
		_tmp96_ = FALSE;
	}
	_tmp103_ = actual_type;
	vala_data_type_set_value_owned (_tmp103_, _tmp96_);
	result = actual_type;
	return result;
}


gboolean vala_semantic_analyzer_is_in_instance_method (ValaSemanticAnalyzer* self) {
	gboolean result = FALSE;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp28_;
		ValaSymbol* _tmp29_;
		ValaSymbol* _tmp30_;
		ValaSymbol* _tmp31_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_CREATION_METHOD)) {
			result = TRUE;
			_vala_code_node_unref0 (sym);
			return result;
		} else {
			ValaSymbol* _tmp4_;
			_tmp4_ = sym;
			if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_METHOD)) {
				ValaMethod* m = NULL;
				ValaSymbol* _tmp5_;
				ValaMethod* _tmp6_;
				ValaMethod* _tmp7_;
				ValaMemberBinding _tmp8_;
				ValaMemberBinding _tmp9_;
				_tmp5_ = sym;
				_tmp6_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, VALA_TYPE_METHOD, ValaMethod));
				m = _tmp6_;
				_tmp7_ = m;
				_tmp8_ = vala_method_get_binding (_tmp7_);
				_tmp9_ = _tmp8_;
				result = _tmp9_ == VALA_MEMBER_BINDING_INSTANCE;
				_vala_code_node_unref0 (m);
				_vala_code_node_unref0 (sym);
				return result;
			} else {
				ValaSymbol* _tmp10_;
				_tmp10_ = sym;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp10_, VALA_TYPE_CONSTRUCTOR)) {
					ValaConstructor* c = NULL;
					ValaSymbol* _tmp11_;
					ValaConstructor* _tmp12_;
					ValaConstructor* _tmp13_;
					ValaMemberBinding _tmp14_;
					ValaMemberBinding _tmp15_;
					_tmp11_ = sym;
					_tmp12_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp11_, VALA_TYPE_CONSTRUCTOR, ValaConstructor));
					c = _tmp12_;
					_tmp13_ = c;
					_tmp14_ = vala_constructor_get_binding (_tmp13_);
					_tmp15_ = _tmp14_;
					result = _tmp15_ == VALA_MEMBER_BINDING_INSTANCE;
					_vala_code_node_unref0 (c);
					_vala_code_node_unref0 (sym);
					return result;
				} else {
					ValaSymbol* _tmp16_;
					_tmp16_ = sym;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp16_, VALA_TYPE_DESTRUCTOR)) {
						ValaDestructor* d = NULL;
						ValaSymbol* _tmp17_;
						ValaDestructor* _tmp18_;
						ValaDestructor* _tmp19_;
						ValaMemberBinding _tmp20_;
						ValaMemberBinding _tmp21_;
						_tmp17_ = sym;
						_tmp18_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, VALA_TYPE_DESTRUCTOR, ValaDestructor));
						d = _tmp18_;
						_tmp19_ = d;
						_tmp20_ = vala_destructor_get_binding (_tmp19_);
						_tmp21_ = _tmp20_;
						result = _tmp21_ == VALA_MEMBER_BINDING_INSTANCE;
						_vala_code_node_unref0 (d);
						_vala_code_node_unref0 (sym);
						return result;
					} else {
						ValaSymbol* _tmp22_;
						_tmp22_ = sym;
						if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp22_, VALA_TYPE_PROPERTY)) {
							ValaProperty* p = NULL;
							ValaSymbol* _tmp23_;
							ValaProperty* _tmp24_;
							ValaProperty* _tmp25_;
							ValaMemberBinding _tmp26_;
							ValaMemberBinding _tmp27_;
							_tmp23_ = sym;
							_tmp24_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, VALA_TYPE_PROPERTY, ValaProperty));
							p = _tmp24_;
							_tmp25_ = p;
							_tmp26_ = vala_property_get_binding (_tmp25_);
							_tmp27_ = _tmp26_;
							result = _tmp27_ == VALA_MEMBER_BINDING_INSTANCE;
							_vala_code_node_unref0 (p);
							_vala_code_node_unref0 (sym);
							return result;
						}
					}
				}
			}
		}
		_tmp28_ = sym;
		_tmp29_ = vala_symbol_get_parent_symbol (_tmp28_);
		_tmp30_ = _tmp29_;
		_tmp31_ = _vala_code_node_ref0 (_tmp30_);
		_vala_code_node_unref0 (sym);
		sym = _tmp31_;
	}
	result = FALSE;
	_vala_code_node_unref0 (sym);
	return result;
}


ValaExpression* vala_semantic_analyzer_create_temp_access (ValaLocalVariable* local, ValaDataType* target_type) {
	ValaExpression* result = NULL;
	ValaExpression* temp_access = NULL;
	ValaLocalVariable* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	ValaLocalVariable* _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaMemberAccess* _tmp6_;
	gboolean _tmp7_ = FALSE;
	ValaDataType* _tmp8_;
	gboolean target_owned = FALSE;
	gboolean _tmp12_ = FALSE;
	gboolean _tmp13_;
	g_return_val_if_fail (local != NULL, NULL);
	_tmp0_ = local;
	_tmp1_ = vala_symbol_get_name ((ValaSymbol*) _tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = local;
	_tmp4_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_member_access_new_simple (_tmp2_, _tmp5_);
	temp_access = (ValaExpression*) _tmp6_;
	_tmp8_ = target_type;
	if (_tmp8_ == NULL) {
		_tmp7_ = TRUE;
	} else {
		ValaDataType* _tmp9_;
		gboolean _tmp10_;
		gboolean _tmp11_;
		_tmp9_ = target_type;
		_tmp10_ = vala_data_type_get_value_owned (_tmp9_);
		_tmp11_ = _tmp10_;
		_tmp7_ = _tmp11_;
	}
	target_owned = _tmp7_;
	_tmp13_ = target_owned;
	if (_tmp13_) {
		ValaLocalVariable* _tmp14_;
		ValaDataType* _tmp15_;
		ValaDataType* _tmp16_;
		gboolean _tmp17_;
		_tmp14_ = local;
		_tmp15_ = vala_variable_get_variable_type ((ValaVariable*) _tmp14_);
		_tmp16_ = _tmp15_;
		_tmp17_ = vala_data_type_is_disposable (_tmp16_);
		_tmp12_ = _tmp17_;
	} else {
		_tmp12_ = FALSE;
	}
	if (_tmp12_) {
		ValaExpression* _tmp18_;
		ValaLocalVariable* _tmp19_;
		ValaSourceReference* _tmp20_;
		ValaSourceReference* _tmp21_;
		ValaReferenceTransferExpression* _tmp22_;
		ValaDataType* _tmp23_ = NULL;
		ValaDataType* _tmp24_;
		ValaExpression* _tmp31_;
		ValaExpression* _tmp32_;
		ValaDataType* _tmp33_;
		ValaDataType* _tmp34_;
		_tmp18_ = temp_access;
		_tmp19_ = local;
		_tmp20_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp19_);
		_tmp21_ = _tmp20_;
		_tmp22_ = vala_reference_transfer_expression_new (_tmp18_, _tmp21_);
		_vala_code_node_unref0 (temp_access);
		temp_access = (ValaExpression*) _tmp22_;
		_tmp24_ = target_type;
		if (_tmp24_ != NULL) {
			ValaDataType* _tmp25_;
			ValaDataType* _tmp26_;
			_tmp25_ = target_type;
			_tmp26_ = vala_data_type_copy (_tmp25_);
			_vala_code_node_unref0 (_tmp23_);
			_tmp23_ = _tmp26_;
		} else {
			ValaLocalVariable* _tmp27_;
			ValaDataType* _tmp28_;
			ValaDataType* _tmp29_;
			ValaDataType* _tmp30_;
			_tmp27_ = local;
			_tmp28_ = vala_variable_get_variable_type ((ValaVariable*) _tmp27_);
			_tmp29_ = _tmp28_;
			_tmp30_ = vala_data_type_copy (_tmp29_);
			_vala_code_node_unref0 (_tmp23_);
			_tmp23_ = _tmp30_;
		}
		_tmp31_ = temp_access;
		vala_expression_set_target_type (_tmp31_, _tmp23_);
		_tmp32_ = temp_access;
		_tmp33_ = vala_expression_get_target_type (_tmp32_);
		_tmp34_ = _tmp33_;
		vala_data_type_set_value_owned (_tmp34_, TRUE);
		_vala_code_node_unref0 (_tmp23_);
	} else {
		ValaDataType* _tmp35_ = NULL;
		ValaDataType* _tmp36_;
		ValaExpression* _tmp39_;
		_tmp36_ = target_type;
		if (_tmp36_ != NULL) {
			ValaDataType* _tmp37_;
			ValaDataType* _tmp38_;
			_tmp37_ = target_type;
			_tmp38_ = vala_data_type_copy (_tmp37_);
			_vala_code_node_unref0 (_tmp35_);
			_tmp35_ = _tmp38_;
		} else {
			_vala_code_node_unref0 (_tmp35_);
			_tmp35_ = NULL;
		}
		_tmp39_ = temp_access;
		vala_expression_set_target_type (_tmp39_, _tmp35_);
		_vala_code_node_unref0 (_tmp35_);
	}
	result = temp_access;
	return result;
}


void vala_semantic_analyzer_visit_member_initializer (ValaSemanticAnalyzer* self, ValaMemberInitializer* init, ValaDataType* type) {
	ValaMemberInitializer* _tmp0_;
	ValaDataType* _tmp1_;
	ValaTypeSymbol* _tmp2_;
	ValaTypeSymbol* _tmp3_;
	ValaMemberInitializer* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	ValaSymbol* _tmp7_;
	ValaSymbol* _tmp8_;
	gboolean _tmp9_ = FALSE;
	ValaMemberInitializer* _tmp10_;
	ValaSymbol* _tmp11_;
	ValaSymbol* _tmp12_;
	ValaMemberInitializer* _tmp30_;
	ValaSymbol* _tmp31_;
	ValaSymbol* _tmp32_;
	ValaSymbolAccessibility _tmp33_;
	ValaSymbolAccessibility _tmp34_;
	ValaDataType* member_type = NULL;
	ValaMemberInitializer* _tmp46_;
	ValaSymbol* _tmp47_;
	ValaSymbol* _tmp48_;
	ValaMemberInitializer* _tmp86_;
	ValaExpression* _tmp87_;
	ValaExpression* _tmp88_;
	ValaDataType* _tmp89_;
	ValaMemberInitializer* _tmp90_;
	ValaExpression* _tmp91_;
	ValaExpression* _tmp92_;
	ValaMemberInitializer* _tmp93_;
	ValaExpression* _tmp94_;
	ValaExpression* _tmp95_;
	ValaDataType* _tmp96_;
	ValaDataType* _tmp97_;
	ValaDataType* _tmp98_;
	ValaMemberInitializer* _tmp99_;
	ValaDataType* _tmp100_;
	ValaDataType* _tmp101_;
	ValaMemberInitializer* _tmp102_;
	ValaCodeContext* _tmp103_;
	gboolean _tmp104_ = FALSE;
	ValaMemberInitializer* _tmp105_;
	ValaExpression* _tmp106_;
	ValaExpression* _tmp107_;
	ValaDataType* _tmp108_;
	ValaDataType* _tmp109_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (init != NULL);
	g_return_if_fail (type != NULL);
	_tmp0_ = init;
	_tmp1_ = type;
	_tmp2_ = vala_data_type_get_data_type (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = init;
	_tmp5_ = vala_member_initializer_get_name (_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp3_, _tmp6_);
	_tmp8_ = _tmp7_;
	vala_member_initializer_set_symbol_reference (_tmp0_, _tmp8_);
	_vala_code_node_unref0 (_tmp8_);
	_tmp10_ = init;
	_tmp11_ = vala_member_initializer_get_symbol_reference (_tmp10_);
	_tmp12_ = _tmp11_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp12_, VALA_TYPE_FIELD)) {
		_tmp9_ = TRUE;
	} else {
		ValaMemberInitializer* _tmp13_;
		ValaSymbol* _tmp14_;
		ValaSymbol* _tmp15_;
		_tmp13_ = init;
		_tmp14_ = vala_member_initializer_get_symbol_reference (_tmp13_);
		_tmp15_ = _tmp14_;
		_tmp9_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp15_, VALA_TYPE_PROPERTY);
	}
	if (!_tmp9_) {
		ValaMemberInitializer* _tmp16_;
		ValaMemberInitializer* _tmp17_;
		ValaSourceReference* _tmp18_;
		ValaSourceReference* _tmp19_;
		ValaMemberInitializer* _tmp20_;
		const gchar* _tmp21_;
		const gchar* _tmp22_;
		ValaDataType* _tmp23_;
		ValaTypeSymbol* _tmp24_;
		ValaTypeSymbol* _tmp25_;
		gchar* _tmp26_;
		gchar* _tmp27_;
		gchar* _tmp28_;
		gchar* _tmp29_;
		_tmp16_ = init;
		vala_code_node_set_error ((ValaCodeNode*) _tmp16_, TRUE);
		_tmp17_ = init;
		_tmp18_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp17_);
		_tmp19_ = _tmp18_;
		_tmp20_ = init;
		_tmp21_ = vala_member_initializer_get_name (_tmp20_);
		_tmp22_ = _tmp21_;
		_tmp23_ = type;
		_tmp24_ = vala_data_type_get_data_type (_tmp23_);
		_tmp25_ = _tmp24_;
		_tmp26_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp25_);
		_tmp27_ = _tmp26_;
		_tmp28_ = g_strdup_printf ("Invalid member `%s' in `%s'", _tmp22_, _tmp27_);
		_tmp29_ = _tmp28_;
		vala_report_error (_tmp19_, _tmp29_);
		_g_free0 (_tmp29_);
		_g_free0 (_tmp27_);
		return;
	}
	_tmp30_ = init;
	_tmp31_ = vala_member_initializer_get_symbol_reference (_tmp30_);
	_tmp32_ = _tmp31_;
	_tmp33_ = vala_symbol_get_access (_tmp32_);
	_tmp34_ = _tmp33_;
	if (_tmp34_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC) {
		ValaMemberInitializer* _tmp35_;
		ValaMemberInitializer* _tmp36_;
		ValaSourceReference* _tmp37_;
		ValaSourceReference* _tmp38_;
		ValaMemberInitializer* _tmp39_;
		ValaSymbol* _tmp40_;
		ValaSymbol* _tmp41_;
		gchar* _tmp42_;
		gchar* _tmp43_;
		gchar* _tmp44_;
		gchar* _tmp45_;
		_tmp35_ = init;
		vala_code_node_set_error ((ValaCodeNode*) _tmp35_, TRUE);
		_tmp36_ = init;
		_tmp37_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp36_);
		_tmp38_ = _tmp37_;
		_tmp39_ = init;
		_tmp40_ = vala_member_initializer_get_symbol_reference (_tmp39_);
		_tmp41_ = _tmp40_;
		_tmp42_ = vala_symbol_get_full_name (_tmp41_);
		_tmp43_ = _tmp42_;
		_tmp44_ = g_strdup_printf ("Access to private member `%s' denied", _tmp43_);
		_tmp45_ = _tmp44_;
		vala_report_error (_tmp38_, _tmp45_);
		_g_free0 (_tmp45_);
		_g_free0 (_tmp43_);
		return;
	}
	member_type = NULL;
	_tmp46_ = init;
	_tmp47_ = vala_member_initializer_get_symbol_reference (_tmp46_);
	_tmp48_ = _tmp47_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp48_, VALA_TYPE_FIELD)) {
		ValaField* f = NULL;
		ValaMemberInitializer* _tmp49_;
		ValaSymbol* _tmp50_;
		ValaSymbol* _tmp51_;
		ValaField* _tmp52_;
		ValaField* _tmp53_;
		ValaDataType* _tmp54_;
		ValaDataType* _tmp55_;
		ValaDataType* _tmp56_;
		_tmp49_ = init;
		_tmp50_ = vala_member_initializer_get_symbol_reference (_tmp49_);
		_tmp51_ = _tmp50_;
		_tmp52_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp51_, VALA_TYPE_FIELD, ValaField));
		f = _tmp52_;
		_tmp53_ = f;
		_tmp54_ = vala_variable_get_variable_type ((ValaVariable*) _tmp53_);
		_tmp55_ = _tmp54_;
		_tmp56_ = _vala_code_node_ref0 (_tmp55_);
		_vala_code_node_unref0 (member_type);
		member_type = _tmp56_;
		_vala_code_node_unref0 (f);
	} else {
		ValaMemberInitializer* _tmp57_;
		ValaSymbol* _tmp58_;
		ValaSymbol* _tmp59_;
		_tmp57_ = init;
		_tmp58_ = vala_member_initializer_get_symbol_reference (_tmp57_);
		_tmp59_ = _tmp58_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp59_, VALA_TYPE_PROPERTY)) {
			ValaProperty* prop = NULL;
			ValaMemberInitializer* _tmp60_;
			ValaSymbol* _tmp61_;
			ValaSymbol* _tmp62_;
			ValaProperty* _tmp63_;
			ValaProperty* _tmp64_;
			ValaDataType* _tmp65_;
			ValaDataType* _tmp66_;
			ValaDataType* _tmp67_;
			gboolean _tmp68_ = FALSE;
			ValaProperty* _tmp69_;
			ValaPropertyAccessor* _tmp70_;
			ValaPropertyAccessor* _tmp71_;
			_tmp60_ = init;
			_tmp61_ = vala_member_initializer_get_symbol_reference (_tmp60_);
			_tmp62_ = _tmp61_;
			_tmp63_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp62_, VALA_TYPE_PROPERTY, ValaProperty));
			prop = _tmp63_;
			_tmp64_ = prop;
			_tmp65_ = vala_property_get_property_type (_tmp64_);
			_tmp66_ = _tmp65_;
			_tmp67_ = _vala_code_node_ref0 (_tmp66_);
			_vala_code_node_unref0 (member_type);
			member_type = _tmp67_;
			_tmp69_ = prop;
			_tmp70_ = vala_property_get_set_accessor (_tmp69_);
			_tmp71_ = _tmp70_;
			if (_tmp71_ == NULL) {
				_tmp68_ = TRUE;
			} else {
				ValaProperty* _tmp72_;
				ValaPropertyAccessor* _tmp73_;
				ValaPropertyAccessor* _tmp74_;
				gboolean _tmp75_;
				gboolean _tmp76_;
				_tmp72_ = prop;
				_tmp73_ = vala_property_get_set_accessor (_tmp72_);
				_tmp74_ = _tmp73_;
				_tmp75_ = vala_property_accessor_get_writable (_tmp74_);
				_tmp76_ = _tmp75_;
				_tmp68_ = !_tmp76_;
			}
			if (_tmp68_) {
				ValaMemberInitializer* _tmp77_;
				ValaMemberInitializer* _tmp78_;
				ValaSourceReference* _tmp79_;
				ValaSourceReference* _tmp80_;
				ValaProperty* _tmp81_;
				gchar* _tmp82_;
				gchar* _tmp83_;
				gchar* _tmp84_;
				gchar* _tmp85_;
				_tmp77_ = init;
				vala_code_node_set_error ((ValaCodeNode*) _tmp77_, TRUE);
				_tmp78_ = init;
				_tmp79_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp78_);
				_tmp80_ = _tmp79_;
				_tmp81_ = prop;
				_tmp82_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp81_);
				_tmp83_ = _tmp82_;
				_tmp84_ = g_strdup_printf ("Property `%s' is read-only", _tmp83_);
				_tmp85_ = _tmp84_;
				vala_report_error (_tmp80_, _tmp85_);
				_g_free0 (_tmp85_);
				_g_free0 (_tmp83_);
				_vala_code_node_unref0 (prop);
				_vala_code_node_unref0 (member_type);
				return;
			}
			_vala_code_node_unref0 (prop);
		}
	}
	_tmp86_ = init;
	_tmp87_ = vala_member_initializer_get_initializer (_tmp86_);
	_tmp88_ = _tmp87_;
	_tmp89_ = member_type;
	vala_expression_set_formal_target_type (_tmp88_, _tmp89_);
	_tmp90_ = init;
	_tmp91_ = vala_member_initializer_get_initializer (_tmp90_);
	_tmp92_ = _tmp91_;
	_tmp93_ = init;
	_tmp94_ = vala_member_initializer_get_initializer (_tmp93_);
	_tmp95_ = _tmp94_;
	_tmp96_ = vala_expression_get_formal_target_type (_tmp95_);
	_tmp97_ = _tmp96_;
	_tmp98_ = type;
	_tmp99_ = init;
	_tmp100_ = vala_data_type_get_actual_type (_tmp97_, _tmp98_, NULL, (ValaCodeNode*) _tmp99_);
	_tmp101_ = _tmp100_;
	vala_expression_set_target_type (_tmp92_, _tmp101_);
	_vala_code_node_unref0 (_tmp101_);
	_tmp102_ = init;
	_tmp103_ = self->priv->_context;
	vala_code_node_check ((ValaCodeNode*) _tmp102_, _tmp103_);
	_tmp105_ = init;
	_tmp106_ = vala_member_initializer_get_initializer (_tmp105_);
	_tmp107_ = _tmp106_;
	_tmp108_ = vala_expression_get_value_type (_tmp107_);
	_tmp109_ = _tmp108_;
	if (_tmp109_ == NULL) {
		_tmp104_ = TRUE;
	} else {
		ValaMemberInitializer* _tmp110_;
		ValaExpression* _tmp111_;
		ValaExpression* _tmp112_;
		ValaDataType* _tmp113_;
		ValaDataType* _tmp114_;
		ValaMemberInitializer* _tmp115_;
		ValaExpression* _tmp116_;
		ValaExpression* _tmp117_;
		ValaDataType* _tmp118_;
		ValaDataType* _tmp119_;
		gboolean _tmp120_;
		_tmp110_ = init;
		_tmp111_ = vala_member_initializer_get_initializer (_tmp110_);
		_tmp112_ = _tmp111_;
		_tmp113_ = vala_expression_get_value_type (_tmp112_);
		_tmp114_ = _tmp113_;
		_tmp115_ = init;
		_tmp116_ = vala_member_initializer_get_initializer (_tmp115_);
		_tmp117_ = _tmp116_;
		_tmp118_ = vala_expression_get_target_type (_tmp117_);
		_tmp119_ = _tmp118_;
		_tmp120_ = vala_data_type_compatible (_tmp114_, _tmp119_);
		_tmp104_ = !_tmp120_;
	}
	if (_tmp104_) {
		ValaMemberInitializer* _tmp121_;
		ValaMemberInitializer* _tmp122_;
		ValaSourceReference* _tmp123_;
		ValaSourceReference* _tmp124_;
		ValaMemberInitializer* _tmp125_;
		const gchar* _tmp126_;
		const gchar* _tmp127_;
		gchar* _tmp128_;
		gchar* _tmp129_;
		_tmp121_ = init;
		vala_code_node_set_error ((ValaCodeNode*) _tmp121_, TRUE);
		_tmp122_ = init;
		_tmp123_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp122_);
		_tmp124_ = _tmp123_;
		_tmp125_ = init;
		_tmp126_ = vala_member_initializer_get_name (_tmp125_);
		_tmp127_ = _tmp126_;
		_tmp128_ = g_strdup_printf ("Invalid type for member `%s'", _tmp127_);
		_tmp129_ = _tmp128_;
		vala_report_error (_tmp124_, _tmp129_);
		_g_free0 (_tmp129_);
		_vala_code_node_unref0 (member_type);
		return;
	}
	_vala_code_node_unref0 (member_type);
}


static ValaStruct* vala_semantic_analyzer_get_arithmetic_struct (ValaSemanticAnalyzer* self, ValaDataType* type) {
	ValaStruct* result = NULL;
	ValaStruct* _result_ = NULL;
	ValaDataType* _tmp0_;
	ValaTypeSymbol* _tmp1_;
	ValaTypeSymbol* _tmp2_;
	ValaStruct* _tmp3_;
	gboolean _tmp4_ = FALSE;
	ValaStruct* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (type != NULL, NULL);
	_tmp0_ = type;
	_tmp1_ = vala_data_type_get_data_type (_tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_STRUCT) ? ((ValaStruct*) _tmp2_) : NULL);
	_result_ = _tmp3_;
	_tmp5_ = _result_;
	if (_tmp5_ == NULL) {
		ValaDataType* _tmp6_;
		_tmp6_ = type;
		_tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, VALA_TYPE_ENUM_VALUE_TYPE);
	} else {
		_tmp4_ = FALSE;
	}
	if (_tmp4_) {
		ValaDataType* _tmp7_;
		ValaTypeSymbol* _tmp8_;
		ValaTypeSymbol* _tmp9_;
		ValaStruct* _tmp10_;
		_tmp7_ = self->int_type;
		_tmp8_ = vala_data_type_get_data_type (_tmp7_);
		_tmp9_ = _tmp8_;
		_tmp10_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp9_, VALA_TYPE_STRUCT, ValaStruct));
		result = _tmp10_;
		_vala_code_node_unref0 (_result_);
		return result;
	}
	result = _result_;
	return result;
}


ValaDataType* vala_semantic_analyzer_get_arithmetic_result_type (ValaSemanticAnalyzer* self, ValaDataType* left_type, ValaDataType* right_type) {
	ValaDataType* result = NULL;
	ValaStruct* left = NULL;
	ValaDataType* _tmp0_;
	ValaStruct* _tmp1_;
	ValaStruct* right = NULL;
	ValaDataType* _tmp2_;
	ValaStruct* _tmp3_;
	gboolean _tmp4_ = FALSE;
	ValaStruct* _tmp5_;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	ValaStruct* _tmp9_;
	gboolean _tmp10_;
	ValaStruct* _tmp18_;
	gboolean _tmp19_;
	ValaStruct* _tmp20_;
	gboolean _tmp21_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (left_type != NULL, NULL);
	g_return_val_if_fail (right_type != NULL, NULL);
	_tmp0_ = left_type;
	_tmp1_ = vala_semantic_analyzer_get_arithmetic_struct (self, _tmp0_);
	left = _tmp1_;
	_tmp2_ = right_type;
	_tmp3_ = vala_semantic_analyzer_get_arithmetic_struct (self, _tmp2_);
	right = _tmp3_;
	_tmp5_ = left;
	if (_tmp5_ == NULL) {
		_tmp4_ = TRUE;
	} else {
		ValaStruct* _tmp6_;
		_tmp6_ = right;
		_tmp4_ = _tmp6_ == NULL;
	}
	if (_tmp4_) {
		result = NULL;
		_vala_code_node_unref0 (right);
		_vala_code_node_unref0 (left);
		return result;
	}
	_tmp9_ = left;
	_tmp10_ = vala_struct_is_floating_type (_tmp9_);
	if (!_tmp10_) {
		ValaStruct* _tmp11_;
		gboolean _tmp12_;
		_tmp11_ = left;
		_tmp12_ = vala_struct_is_integer_type (_tmp11_);
		_tmp8_ = !_tmp12_;
	} else {
		_tmp8_ = FALSE;
	}
	if (_tmp8_) {
		_tmp7_ = TRUE;
	} else {
		gboolean _tmp13_ = FALSE;
		ValaStruct* _tmp14_;
		gboolean _tmp15_;
		_tmp14_ = right;
		_tmp15_ = vala_struct_is_floating_type (_tmp14_);
		if (!_tmp15_) {
			ValaStruct* _tmp16_;
			gboolean _tmp17_;
			_tmp16_ = right;
			_tmp17_ = vala_struct_is_integer_type (_tmp16_);
			_tmp13_ = !_tmp17_;
		} else {
			_tmp13_ = FALSE;
		}
		_tmp7_ = _tmp13_;
	}
	if (_tmp7_) {
		result = NULL;
		_vala_code_node_unref0 (right);
		_vala_code_node_unref0 (left);
		return result;
	}
	_tmp18_ = left;
	_tmp19_ = vala_struct_is_floating_type (_tmp18_);
	_tmp20_ = right;
	_tmp21_ = vala_struct_is_floating_type (_tmp20_);
	if (_tmp19_ == _tmp21_) {
		ValaStruct* _tmp22_;
		gint _tmp23_;
		ValaStruct* _tmp24_;
		gint _tmp25_;
		_tmp22_ = left;
		_tmp23_ = vala_struct_get_rank (_tmp22_);
		_tmp24_ = right;
		_tmp25_ = vala_struct_get_rank (_tmp24_);
		if (_tmp23_ >= _tmp25_) {
			ValaDataType* _tmp26_;
			ValaDataType* _tmp27_;
			_tmp26_ = left_type;
			_tmp27_ = _vala_code_node_ref0 (_tmp26_);
			result = _tmp27_;
			_vala_code_node_unref0 (right);
			_vala_code_node_unref0 (left);
			return result;
		} else {
			ValaDataType* _tmp28_;
			ValaDataType* _tmp29_;
			_tmp28_ = right_type;
			_tmp29_ = _vala_code_node_ref0 (_tmp28_);
			result = _tmp29_;
			_vala_code_node_unref0 (right);
			_vala_code_node_unref0 (left);
			return result;
		}
	} else {
		ValaStruct* _tmp30_;
		gboolean _tmp31_;
		_tmp30_ = left;
		_tmp31_ = vala_struct_is_floating_type (_tmp30_);
		if (_tmp31_) {
			ValaDataType* _tmp32_;
			ValaDataType* _tmp33_;
			_tmp32_ = left_type;
			_tmp33_ = _vala_code_node_ref0 (_tmp32_);
			result = _tmp33_;
			_vala_code_node_unref0 (right);
			_vala_code_node_unref0 (left);
			return result;
		} else {
			ValaDataType* _tmp34_;
			ValaDataType* _tmp35_;
			_tmp34_ = right_type;
			_tmp35_ = _vala_code_node_ref0 (_tmp34_);
			result = _tmp35_;
			_vala_code_node_unref0 (right);
			_vala_code_node_unref0 (left);
			return result;
		}
	}
	_vala_code_node_unref0 (right);
	_vala_code_node_unref0 (left);
}


ValaMethod* vala_semantic_analyzer_find_current_method (ValaSemanticAnalyzer* self) {
	ValaMethod* result = NULL;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp6_;
		ValaSymbol* _tmp7_;
		ValaSymbol* _tmp8_;
		ValaSymbol* _tmp9_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_METHOD)) {
			ValaSymbol* _tmp4_;
			ValaMethod* _tmp5_;
			_tmp4_ = sym;
			_tmp5_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALA_TYPE_METHOD, ValaMethod));
			result = _tmp5_;
			_vala_code_node_unref0 (sym);
			return result;
		}
		_tmp6_ = sym;
		_tmp7_ = vala_symbol_get_parent_symbol (_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = _vala_code_node_ref0 (_tmp8_);
		_vala_code_node_unref0 (sym);
		sym = _tmp9_;
	}
	result = NULL;
	_vala_code_node_unref0 (sym);
	return result;
}


ValaMethod* vala_semantic_analyzer_find_parent_method (ValaSemanticAnalyzer* self, ValaSymbol* sym) {
	ValaMethod* result = NULL;
	ValaSymbol* _tmp4_;
	ValaMethod* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (sym != NULL, NULL);
	while (TRUE) {
		ValaSymbol* _tmp0_;
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		_tmp0_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp1_ = sym;
		_tmp2_ = vala_symbol_get_parent_symbol (_tmp1_);
		_tmp3_ = _tmp2_;
		sym = _tmp3_;
	}
	_tmp4_ = sym;
	_tmp5_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_METHOD) ? ((ValaMethod*) _tmp4_) : NULL);
	result = _tmp5_;
	return result;
}


ValaSymbol* vala_semantic_analyzer_find_parent_method_or_property_accessor (ValaSemanticAnalyzer* self, ValaSymbol* sym) {
	ValaSymbol* result = NULL;
	ValaSymbol* _tmp4_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (sym != NULL, NULL);
	while (TRUE) {
		ValaSymbol* _tmp0_;
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		_tmp0_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp1_ = sym;
		_tmp2_ = vala_symbol_get_parent_symbol (_tmp1_);
		_tmp3_ = _tmp2_;
		sym = _tmp3_;
	}
	_tmp4_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_METHOD)) {
		ValaSymbol* _tmp5_;
		ValaSymbol* _tmp6_;
		_tmp5_ = sym;
		_tmp6_ = _vala_code_node_ref0 (_tmp5_);
		result = _tmp6_;
		return result;
	} else {
		ValaSymbol* _tmp7_;
		_tmp7_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, VALA_TYPE_PROPERTY_ACCESSOR)) {
			ValaSymbol* _tmp8_;
			ValaSymbol* _tmp9_;
			_tmp8_ = sym;
			_tmp9_ = _vala_code_node_ref0 (_tmp8_);
			result = _tmp9_;
			return result;
		} else {
			result = NULL;
			return result;
		}
	}
}


gboolean vala_semantic_analyzer_is_in_constructor (ValaSemanticAnalyzer* self) {
	gboolean result = FALSE;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		ValaSymbol* _tmp5_;
		ValaSymbol* _tmp6_;
		ValaSymbol* _tmp7_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_CONSTRUCTOR)) {
			result = TRUE;
			_vala_code_node_unref0 (sym);
			return result;
		}
		_tmp4_ = sym;
		_tmp5_ = vala_symbol_get_parent_symbol (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp7_ = _vala_code_node_ref0 (_tmp6_);
		_vala_code_node_unref0 (sym);
		sym = _tmp7_;
	}
	result = FALSE;
	_vala_code_node_unref0 (sym);
	return result;
}


gboolean vala_semantic_analyzer_is_in_destructor (ValaSemanticAnalyzer* self) {
	gboolean result = FALSE;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		ValaSymbol* _tmp5_;
		ValaSymbol* _tmp6_;
		ValaSymbol* _tmp7_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_DESTRUCTOR)) {
			result = TRUE;
			_vala_code_node_unref0 (sym);
			return result;
		}
		_tmp4_ = sym;
		_tmp5_ = vala_symbol_get_parent_symbol (_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp7_ = _vala_code_node_ref0 (_tmp6_);
		_vala_code_node_unref0 (sym);
		sym = _tmp7_;
	}
	result = FALSE;
	_vala_code_node_unref0 (sym);
	return result;
}


ValaCodeContext* vala_semantic_analyzer_get_context (ValaSemanticAnalyzer* self) {
	ValaCodeContext* result;
	ValaCodeContext* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_context;
	result = _tmp0_;
	return result;
}


static gpointer _vala_code_context_ref0 (gpointer self) {
	return self ? vala_code_context_ref (self) : NULL;
}


void vala_semantic_analyzer_set_context (ValaSemanticAnalyzer* self, ValaCodeContext* value) {
	ValaCodeContext* _tmp0_;
	ValaCodeContext* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = _vala_code_context_ref0 (_tmp0_);
	_vala_code_context_unref0 (self->priv->_context);
	self->priv->_context = _tmp1_;
}


ValaSymbol* vala_semantic_analyzer_get_current_symbol (ValaSemanticAnalyzer* self) {
	ValaSymbol* result;
	ValaSymbol* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	result = _tmp0_;
	return result;
}


void vala_semantic_analyzer_set_current_symbol (ValaSemanticAnalyzer* self, ValaSymbol* value) {
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	_vala_code_node_unref0 (self->priv->_current_symbol);
	self->priv->_current_symbol = _tmp1_;
}


ValaSourceFile* vala_semantic_analyzer_get_current_source_file (ValaSemanticAnalyzer* self) {
	ValaSourceFile* result;
	ValaSourceFile* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_source_file;
	result = _tmp0_;
	return result;
}


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


void vala_semantic_analyzer_set_current_source_file (ValaSemanticAnalyzer* self, ValaSourceFile* value) {
	ValaSourceFile* _tmp0_;
	ValaSourceFile* _tmp1_;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp1_ = _vala_source_file_ref0 (_tmp0_);
	_vala_source_file_unref0 (self->priv->_current_source_file);
	self->priv->_current_source_file = _tmp1_;
}


ValaTypeSymbol* vala_semantic_analyzer_get_current_type_symbol (ValaSemanticAnalyzer* self) {
	ValaTypeSymbol* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	_tmp1_ = _vala_code_node_ref0 (_tmp0_);
	sym = _tmp1_;
	while (TRUE) {
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp5_;
		ValaSymbol* _tmp6_;
		ValaSymbol* _tmp7_;
		ValaSymbol* _tmp8_;
		_tmp2_ = sym;
		if (!(_tmp2_ != NULL)) {
			break;
		}
		_tmp3_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_TYPESYMBOL)) {
			ValaSymbol* _tmp4_;
			_tmp4_ = sym;
			result = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALA_TYPE_TYPESYMBOL, ValaTypeSymbol);
			_vala_code_node_unref0 (sym);
			return result;
		}
		_tmp5_ = sym;
		_tmp6_ = vala_symbol_get_parent_symbol (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = _vala_code_node_ref0 (_tmp7_);
		_vala_code_node_unref0 (sym);
		sym = _tmp8_;
	}
	result = NULL;
	_vala_code_node_unref0 (sym);
	return result;
}


ValaClass* vala_semantic_analyzer_get_current_class (ValaSemanticAnalyzer* self) {
	ValaClass* result;
	ValaTypeSymbol* _tmp0_;
	ValaTypeSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_semantic_analyzer_get_current_type_symbol (self);
	_tmp1_ = _tmp0_;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_CLASS) ? ((ValaClass*) _tmp1_) : NULL;
	return result;
}


ValaStruct* vala_semantic_analyzer_get_current_struct (ValaSemanticAnalyzer* self) {
	ValaStruct* result;
	ValaTypeSymbol* _tmp0_;
	ValaTypeSymbol* _tmp1_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_semantic_analyzer_get_current_type_symbol (self);
	_tmp1_ = _tmp0_;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_STRUCT) ? ((ValaStruct*) _tmp1_) : NULL;
	return result;
}


ValaMethod* vala_semantic_analyzer_get_current_method (ValaSemanticAnalyzer* self) {
	ValaMethod* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	sym = _tmp0_;
	while (TRUE) {
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		_tmp1_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp2_ = sym;
		_tmp3_ = vala_symbol_get_parent_symbol (_tmp2_);
		_tmp4_ = _tmp3_;
		sym = _tmp4_;
	}
	_tmp5_ = sym;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_METHOD) ? ((ValaMethod*) _tmp5_) : NULL;
	return result;
}


ValaMethod* vala_semantic_analyzer_get_current_async_method (ValaSemanticAnalyzer* self) {
	ValaMethod* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp14_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	sym = _tmp0_;
	while (TRUE) {
		gboolean _tmp1_ = FALSE;
		ValaSymbol* _tmp2_;
		ValaMethod* m = NULL;
		ValaSymbol* _tmp4_;
		ValaMethod* _tmp5_;
		gboolean _tmp6_ = FALSE;
		ValaMethod* _tmp7_;
		ValaSymbol* _tmp11_;
		ValaSymbol* _tmp12_;
		ValaSymbol* _tmp13_;
		_tmp2_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_BLOCK)) {
			_tmp1_ = TRUE;
		} else {
			ValaSymbol* _tmp3_;
			_tmp3_ = sym;
			_tmp1_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_METHOD);
		}
		if (!_tmp1_) {
			break;
		}
		_tmp4_ = sym;
		_tmp5_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, VALA_TYPE_METHOD) ? ((ValaMethod*) _tmp4_) : NULL);
		m = _tmp5_;
		_tmp7_ = m;
		if (_tmp7_ != NULL) {
			ValaMethod* _tmp8_;
			gboolean _tmp9_;
			gboolean _tmp10_;
			_tmp8_ = m;
			_tmp9_ = vala_method_get_coroutine (_tmp8_);
			_tmp10_ = _tmp9_;
			_tmp6_ = _tmp10_;
		} else {
			_tmp6_ = FALSE;
		}
		if (_tmp6_) {
			_vala_code_node_unref0 (m);
			break;
		}
		_tmp11_ = sym;
		_tmp12_ = vala_symbol_get_parent_symbol (_tmp11_);
		_tmp13_ = _tmp12_;
		sym = _tmp13_;
		_vala_code_node_unref0 (m);
	}
	_tmp14_ = sym;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp14_, VALA_TYPE_METHOD) ? ((ValaMethod*) _tmp14_) : NULL;
	return result;
}


ValaPropertyAccessor* vala_semantic_analyzer_get_current_property_accessor (ValaSemanticAnalyzer* self) {
	ValaPropertyAccessor* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	sym = _tmp0_;
	while (TRUE) {
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		_tmp1_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp2_ = sym;
		_tmp3_ = vala_symbol_get_parent_symbol (_tmp2_);
		_tmp4_ = _tmp3_;
		sym = _tmp4_;
	}
	_tmp5_ = sym;
	result = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_PROPERTY_ACCESSOR) ? ((ValaPropertyAccessor*) _tmp5_) : NULL;
	return result;
}


ValaSymbol* vala_semantic_analyzer_get_current_method_or_property_accessor (ValaSemanticAnalyzer* self) {
	ValaSymbol* result;
	ValaSymbol* sym = NULL;
	ValaSymbol* _tmp0_;
	ValaSymbol* _tmp5_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_current_symbol;
	sym = _tmp0_;
	while (TRUE) {
		ValaSymbol* _tmp1_;
		ValaSymbol* _tmp2_;
		ValaSymbol* _tmp3_;
		ValaSymbol* _tmp4_;
		_tmp1_ = sym;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_BLOCK)) {
			break;
		}
		_tmp2_ = sym;
		_tmp3_ = vala_symbol_get_parent_symbol (_tmp2_);
		_tmp4_ = _tmp3_;
		sym = _tmp4_;
	}
	_tmp5_ = sym;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_METHOD)) {
		ValaSymbol* _tmp6_;
		_tmp6_ = sym;
		result = _tmp6_;
		return result;
	} else {
		ValaSymbol* _tmp7_;
		_tmp7_ = sym;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, VALA_TYPE_PROPERTY_ACCESSOR)) {
			ValaSymbol* _tmp8_;
			_tmp8_ = sym;
			result = _tmp8_;
			return result;
		} else {
			result = NULL;
			return result;
		}
	}
}


ValaDataType* vala_semantic_analyzer_get_current_return_type (ValaSemanticAnalyzer* self) {
	ValaDataType* result;
	ValaMethod* m = NULL;
	ValaMethod* _tmp0_;
	ValaMethod* _tmp1_;
	ValaMethod* _tmp2_;
	ValaMethod* _tmp3_;
	ValaPropertyAccessor* acc = NULL;
	ValaPropertyAccessor* _tmp7_;
	ValaPropertyAccessor* _tmp8_;
	ValaPropertyAccessor* _tmp9_;
	ValaPropertyAccessor* _tmp10_;
	gboolean _tmp18_ = FALSE;
	gboolean _tmp19_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_semantic_analyzer_get_current_method (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = _vala_code_node_ref0 (_tmp1_);
	m = _tmp2_;
	_tmp3_ = m;
	if (_tmp3_ != NULL) {
		ValaMethod* _tmp4_;
		ValaDataType* _tmp5_;
		ValaDataType* _tmp6_;
		_tmp4_ = m;
		_tmp5_ = vala_callable_get_return_type ((ValaCallable*) _tmp4_);
		_tmp6_ = _tmp5_;
		result = _tmp6_;
		_vala_code_node_unref0 (m);
		return result;
	}
	_tmp7_ = vala_semantic_analyzer_get_current_property_accessor (self);
	_tmp8_ = _tmp7_;
	_tmp9_ = _vala_code_node_ref0 (_tmp8_);
	acc = _tmp9_;
	_tmp10_ = acc;
	if (_tmp10_ != NULL) {
		ValaPropertyAccessor* _tmp11_;
		gboolean _tmp12_;
		gboolean _tmp13_;
		_tmp11_ = acc;
		_tmp12_ = vala_property_accessor_get_readable (_tmp11_);
		_tmp13_ = _tmp12_;
		if (_tmp13_) {
			ValaPropertyAccessor* _tmp14_;
			ValaDataType* _tmp15_;
			ValaDataType* _tmp16_;
			_tmp14_ = acc;
			_tmp15_ = vala_property_accessor_get_value_type (_tmp14_);
			_tmp16_ = _tmp15_;
			result = _tmp16_;
			_vala_code_node_unref0 (acc);
			_vala_code_node_unref0 (m);
			return result;
		} else {
			ValaDataType* _tmp17_;
			_tmp17_ = self->void_type;
			result = _tmp17_;
			_vala_code_node_unref0 (acc);
			_vala_code_node_unref0 (m);
			return result;
		}
	}
	_tmp19_ = vala_semantic_analyzer_is_in_constructor (self);
	if (_tmp19_) {
		_tmp18_ = TRUE;
	} else {
		gboolean _tmp20_;
		_tmp20_ = vala_semantic_analyzer_is_in_destructor (self);
		_tmp18_ = _tmp20_;
	}
	if (_tmp18_) {
		ValaDataType* _tmp21_;
		_tmp21_ = self->void_type;
		result = _tmp21_;
		_vala_code_node_unref0 (acc);
		_vala_code_node_unref0 (m);
		return result;
	}
	result = NULL;
	_vala_code_node_unref0 (acc);
	_vala_code_node_unref0 (m);
	return result;
}


static void vala_semantic_analyzer_class_init (ValaSemanticAnalyzerClass * klass) {
	vala_semantic_analyzer_parent_class = g_type_class_peek_parent (klass);
	((ValaCodeVisitorClass *) klass)->finalize = vala_semantic_analyzer_finalize;
	g_type_class_add_private (klass, sizeof (ValaSemanticAnalyzerPrivate));
	((ValaCodeVisitorClass *) klass)->visit_source_file = (void (*) (ValaCodeVisitor *, ValaSourceFile*)) vala_semantic_analyzer_real_visit_source_file;
}


static void vala_semantic_analyzer_instance_init (ValaSemanticAnalyzer * self) {
	ValaVoidType* _tmp0_;
	GEqualFunc _tmp1_;
	ValaArrayList* _tmp2_;
	self->priv = VALA_SEMANTIC_ANALYZER_GET_PRIVATE (self);
	_tmp0_ = vala_void_type_new (NULL);
	self->void_type = (ValaDataType*) _tmp0_;
	self->next_lambda_id = 0;
	_tmp1_ = g_direct_equal;
	_tmp2_ = vala_array_list_new (VALA_TYPE_CODE_NODE, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp1_);
	self->replaced_nodes = (ValaList*) _tmp2_;
}


static void vala_semantic_analyzer_finalize (ValaCodeVisitor * obj) {
	ValaSemanticAnalyzer * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_SEMANTIC_ANALYZER, ValaSemanticAnalyzer);
	_vala_code_context_unref0 (self->priv->_context);
	_vala_code_node_unref0 (self->root_symbol);
	_vala_code_node_unref0 (self->priv->_current_symbol);
	_vala_source_file_unref0 (self->priv->_current_source_file);
	_vala_code_node_unref0 (self->insert_block);
	_vala_code_node_unref0 (self->void_type);
	_vala_code_node_unref0 (self->bool_type);
	_vala_code_node_unref0 (self->string_type);
	_vala_code_node_unref0 (self->regex_type);
	_vala_code_node_unref0 (self->uchar_type);
	_vala_code_node_unref0 (self->short_type);
	_vala_code_node_unref0 (self->ushort_type);
	_vala_code_node_unref0 (self->int_type);
	_vala_code_node_unref0 (self->uint_type);
	_vala_code_node_unref0 (self->long_type);
	_vala_code_node_unref0 (self->ulong_type);
	_vala_code_node_unref0 (self->size_t_type);
	_vala_code_node_unref0 (self->ssize_t_type);
	_vala_code_node_unref0 (self->int8_type);
	_vala_code_node_unref0 (self->unichar_type);
	_vala_code_node_unref0 (self->double_type);
	_vala_code_node_unref0 (self->type_type);
	_vala_code_node_unref0 (self->va_list_type);
	_vala_code_node_unref0 (self->object_type);
	_vala_code_node_unref0 (self->gvalue_type);
	_vala_code_node_unref0 (self->gvariant_type);
	_vala_code_node_unref0 (self->glist_type);
	_vala_code_node_unref0 (self->gslist_type);
	_vala_code_node_unref0 (self->garray_type);
	_vala_code_node_unref0 (self->gvaluearray_type);
	_vala_code_node_unref0 (self->gerror_type);
	_vala_code_node_unref0 (self->list_type);
	_vala_code_node_unref0 (self->tuple_type);
	_vala_code_node_unref0 (self->error_type);
	_vala_code_node_unref0 (self->gsource_type);
	_vala_iterable_unref0 (self->replaced_nodes);
	VALA_CODE_VISITOR_CLASS (vala_semantic_analyzer_parent_class)->finalize (obj);
}


/**
 * Code visitor analyzing and checking code.
 */
GType vala_semantic_analyzer_get_type (void) {
	static volatile gsize vala_semantic_analyzer_type_id__volatile = 0;
	if (g_once_init_enter (&vala_semantic_analyzer_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValaSemanticAnalyzerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_semantic_analyzer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaSemanticAnalyzer), 0, (GInstanceInitFunc) vala_semantic_analyzer_instance_init, NULL };
		GType vala_semantic_analyzer_type_id;
		vala_semantic_analyzer_type_id = g_type_register_static (VALA_TYPE_CODE_VISITOR, "ValaSemanticAnalyzer", &g_define_type_info, 0);
		g_once_init_leave (&vala_semantic_analyzer_type_id__volatile, vala_semantic_analyzer_type_id);
	}
	return vala_semantic_analyzer_type_id__volatile;
}



