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

valasemanticanalyzer.c

/* 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_LIST_LITERAL (vala_list_literal_get_type ())
#define VALA_LIST_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_LIST_LITERAL, ValaListLiteral))
#define VALA_LIST_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_LIST_LITERAL, ValaListLiteralClass))
#define VALA_IS_LIST_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_LIST_LITERAL))
#define VALA_IS_LIST_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_LIST_LITERAL))
#define VALA_LIST_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_LIST_LITERAL, ValaListLiteralClass))

typedef struct _ValaListLiteral ValaListLiteral;
typedef struct _ValaListLiteralClass ValaListLiteralClass;

#define VALA_TYPE_SET_LITERAL (vala_set_literal_get_type ())
#define VALA_SET_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_SET_LITERAL, ValaSetLiteral))
#define VALA_SET_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_SET_LITERAL, ValaSetLiteralClass))
#define VALA_IS_SET_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_SET_LITERAL))
#define VALA_IS_SET_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_SET_LITERAL))
#define VALA_SET_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_SET_LITERAL, ValaSetLiteralClass))

typedef struct _ValaSetLiteral ValaSetLiteral;
typedef struct _ValaSetLiteralClass ValaSetLiteralClass;

#define VALA_TYPE_MAP_LITERAL (vala_map_literal_get_type ())
#define VALA_MAP_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_MAP_LITERAL, ValaMapLiteral))
#define VALA_MAP_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_MAP_LITERAL, ValaMapLiteralClass))
#define VALA_IS_MAP_LITERAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_MAP_LITERAL))
#define VALA_IS_MAP_LITERAL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_MAP_LITERAL))
#define VALA_MAP_LITERAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_MAP_LITERAL, ValaMapLiteralClass))

typedef struct _ValaMapLiteral ValaMapLiteral;
typedef struct _ValaMapLiteralClass ValaMapLiteralClass;

#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_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_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_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_PROFILE (vala_profile_get_type ())

#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_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_ARRAY_TYPE (vala_array_type_get_type ())
#define VALA_ARRAY_TYPE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_ARRAY_TYPE, ValaArrayType))
#define VALA_ARRAY_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_ARRAY_TYPE, ValaArrayTypeClass))
#define VALA_IS_ARRAY_TYPE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_ARRAY_TYPE))
#define VALA_IS_ARRAY_TYPE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_ARRAY_TYPE))
#define VALA_ARRAY_TYPE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_ARRAY_TYPE, ValaArrayTypeClass))

typedef struct _ValaArrayType ValaArrayType;
typedef struct _ValaArrayTypeClass ValaArrayTypeClass;

#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 ())

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_list_literal) (ValaCodeVisitor* self, ValaListLiteral* lit);
      void (*visit_set_literal) (ValaCodeVisitor* self, ValaSetLiteral* lit);
      void (*visit_map_literal) (ValaCodeVisitor* self, ValaMapLiteral* lit);
      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;
      ValaClass* object_type;
      ValaStructValueType* gvalue_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;
      gint next_lambda_id;
      ValaList* replaced_nodes;
};

struct _ValaSemanticAnalyzerClass {
      ValaCodeVisitorClass parent_class;
};

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

typedef enum  {
      VALA_PROFILE_POSIX,
      VALA_PROFILE_GOBJECT,
      VALA_PROFILE_DOVA
} ValaProfile;

typedef enum  {
      VALA_PARAMETER_DIRECTION_IN,
      VALA_PARAMETER_DIRECTION_OUT,
      VALA_PARAMETER_DIRECTION_REF
} ValaParameterDirection;

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;


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_list_literal_get_type (void) G_GNUC_CONST;
GType vala_set_literal_get_type (void) G_GNUC_CONST;
GType vala_map_literal_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;
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);
GType vala_reference_type_get_type (void) G_GNUC_CONST;
GType vala_object_type_get_type (void) G_GNUC_CONST;
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;
GType vala_profile_get_type (void) G_GNUC_CONST;
ValaProfile vala_code_context_get_profile (ValaCodeContext* self);
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);
gboolean vala_local_variable_get_floating (ValaLocalVariable* 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;
ValaGenericType* vala_generic_type_new (ValaTypeParameter* type_parameter);
ValaGenericType* vala_generic_type_construct (GType object_type, ValaTypeParameter* type_parameter);
GType vala_generic_type_get_type (void) G_GNUC_CONST;
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_code_node_get_error (ValaCodeNode* self);
ValaDataType* vala_expression_get_value_type (ValaExpression* self);
ValaSymbol* vala_expression_get_symbol_reference (ValaExpression* self);
ValaDataType* vala_expression_get_target_type (ValaExpression* self);
gboolean vala_data_type_compatible (ValaDataType* self, ValaDataType* target_type);
ValaSourceFile* vala_source_reference_get_file (ValaSourceReference* self);
const gchar* vala_source_file_get_filename (ValaSourceFile* self);
gint vala_source_reference_get_first_line (ValaSourceReference* self);
const gchar* vala_string_literal_get_value (ValaStringLiteral* self);
void vala_string_literal_set_value (ValaStringLiteral* self, const gchar* value);
GType vala_delegate_type_get_type (void) G_GNUC_CONST;
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_member_access_get_prototype_access (ValaMemberAccess* self);
ValaDelegate* vala_delegate_type_get_delegate_symbol (ValaDelegateType* self);
gboolean vala_delegate_get_has_target (ValaDelegate* self);
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, ValaMemberAccess* method_access, ValaCodeNode* node_reference);
static 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);
ValaCodeContext* vala_code_context_get (void);
GType vala_array_type_get_type (void) G_GNUC_CONST;
ValaDataType* vala_array_type_get_element_type (ValaArrayType* self);
ValaDataType* vala_semantic_analyzer_get_actual_type (ValaDataType* derived_instance_type, ValaMemberAccess* method_access, 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);
ValaList* vala_member_access_get_type_arguments (ValaMemberAccess* self);
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_property_get_binding (ValaProperty* self);
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);
void vala_expression_set_target_type (ValaExpression* self, ValaDataType* value);
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);
ValaDataType* vala_method_get_return_type (ValaMethod* 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) {
      ValaNamespace* _tmp0_ = NULL;
      ValaSymbol* _tmp1_;
      ValaScope* _tmp2_ = NULL;
      ValaSymbol* _tmp3_ = NULL;
      ValaStruct* _tmp4_;
      ValaBooleanType* _tmp5_ = NULL;
      ValaScope* _tmp6_ = NULL;
      ValaSymbol* _tmp7_ = NULL;
      ValaClass* _tmp8_;
      ValaObjectType* _tmp9_ = NULL;
      ValaScope* _tmp10_ = NULL;
      ValaSymbol* _tmp11_ = NULL;
      ValaStruct* _tmp12_;
      ValaIntegerType* _tmp13_ = NULL;
      ValaScope* _tmp14_ = NULL;
      ValaSymbol* _tmp15_ = NULL;
      ValaStruct* _tmp16_;
      ValaIntegerType* _tmp17_ = NULL;
      ValaScope* _tmp18_ = NULL;
      ValaSymbol* _tmp19_ = NULL;
      ValaStruct* _tmp20_;
      ValaFloatingType* _tmp21_ = NULL;
      ValaProfile _tmp22_;
      ValaScope* _tmp59_ = NULL;
      ValaSymbol* _tmp60_ = NULL;
      ValaStruct* unichar_struct;
      ValaProfile _tmp62_;
      ValaNamespace* _tmp121_ = NULL;
      g_return_if_fail (self != NULL);
      g_return_if_fail (context != NULL);
      vala_semantic_analyzer_set_context (self, context);
      _tmp0_ = vala_code_context_get_root (context);
      _tmp1_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp0_);
      _vala_code_node_unref0 (self->root_symbol);
      self->root_symbol = _tmp1_;
      _tmp2_ = vala_symbol_get_scope (self->root_symbol);
      _tmp3_ = vala_scope_lookup (_tmp2_, "bool");
      _tmp4_ = VALA_STRUCT (_tmp3_);
      _tmp5_ = vala_boolean_type_new (_tmp4_);
      _vala_code_node_unref0 (self->bool_type);
      self->bool_type = (ValaDataType*) _tmp5_;
      _vala_code_node_unref0 (_tmp4_);
      _tmp6_ = vala_symbol_get_scope (self->root_symbol);
      _tmp7_ = vala_scope_lookup (_tmp6_, "string");
      _tmp8_ = VALA_CLASS (_tmp7_);
      _tmp9_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp8_);
      _vala_code_node_unref0 (self->string_type);
      self->string_type = (ValaDataType*) _tmp9_;
      _vala_code_node_unref0 (_tmp8_);
      _tmp10_ = vala_symbol_get_scope (self->root_symbol);
      _tmp11_ = vala_scope_lookup (_tmp10_, "int");
      _tmp12_ = VALA_STRUCT (_tmp11_);
      _tmp13_ = vala_integer_type_new (_tmp12_, NULL, NULL);
      _vala_code_node_unref0 (self->int_type);
      self->int_type = (ValaDataType*) _tmp13_;
      _vala_code_node_unref0 (_tmp12_);
      _tmp14_ = vala_symbol_get_scope (self->root_symbol);
      _tmp15_ = vala_scope_lookup (_tmp14_, "uint");
      _tmp16_ = VALA_STRUCT (_tmp15_);
      _tmp17_ = vala_integer_type_new (_tmp16_, NULL, NULL);
      _vala_code_node_unref0 (self->uint_type);
      self->uint_type = (ValaDataType*) _tmp17_;
      _vala_code_node_unref0 (_tmp16_);
      _tmp18_ = vala_symbol_get_scope (self->root_symbol);
      _tmp19_ = vala_scope_lookup (_tmp18_, "double");
      _tmp20_ = VALA_STRUCT (_tmp19_);
      _tmp21_ = vala_floating_type_new (_tmp20_);
      _vala_code_node_unref0 (self->double_type);
      self->double_type = (ValaDataType*) _tmp21_;
      _vala_code_node_unref0 (_tmp20_);
      _tmp22_ = vala_code_context_get_profile (context);
      if (_tmp22_ != VALA_PROFILE_DOVA) {
            ValaScope* _tmp23_ = NULL;
            ValaSymbol* _tmp24_ = NULL;
            ValaStruct* _tmp25_;
            ValaIntegerType* _tmp26_ = NULL;
            ValaScope* _tmp27_ = NULL;
            ValaSymbol* _tmp28_ = NULL;
            ValaStruct* _tmp29_;
            ValaIntegerType* _tmp30_ = NULL;
            ValaScope* _tmp31_ = NULL;
            ValaSymbol* _tmp32_ = NULL;
            ValaStruct* _tmp33_;
            ValaIntegerType* _tmp34_ = NULL;
            ValaScope* _tmp35_ = NULL;
            ValaSymbol* _tmp36_ = NULL;
            ValaStruct* _tmp37_;
            ValaIntegerType* _tmp38_ = NULL;
            ValaScope* _tmp39_ = NULL;
            ValaSymbol* _tmp40_ = NULL;
            ValaStruct* _tmp41_;
            ValaIntegerType* _tmp42_ = NULL;
            ValaScope* _tmp43_ = NULL;
            ValaSymbol* _tmp44_ = NULL;
            ValaStruct* _tmp45_;
            ValaIntegerType* _tmp46_ = NULL;
            ValaScope* _tmp47_ = NULL;
            ValaSymbol* _tmp48_ = NULL;
            ValaStruct* _tmp49_;
            ValaIntegerType* _tmp50_ = NULL;
            ValaScope* _tmp51_ = NULL;
            ValaSymbol* _tmp52_ = NULL;
            ValaStruct* _tmp53_;
            ValaIntegerType* _tmp54_ = NULL;
            _tmp23_ = vala_symbol_get_scope (self->root_symbol);
            _tmp24_ = vala_scope_lookup (_tmp23_, "uchar");
            _tmp25_ = VALA_STRUCT (_tmp24_);
            _tmp26_ = vala_integer_type_new (_tmp25_, NULL, NULL);
            _vala_code_node_unref0 (self->uchar_type);
            self->uchar_type = (ValaDataType*) _tmp26_;
            _vala_code_node_unref0 (_tmp25_);
            _tmp27_ = vala_symbol_get_scope (self->root_symbol);
            _tmp28_ = vala_scope_lookup (_tmp27_, "int8");
            _tmp29_ = VALA_STRUCT (_tmp28_);
            _tmp30_ = vala_integer_type_new (_tmp29_, NULL, NULL);
            _vala_code_node_unref0 (self->int8_type);
            self->int8_type = (ValaDataType*) _tmp30_;
            _vala_code_node_unref0 (_tmp29_);
            _tmp31_ = vala_symbol_get_scope (self->root_symbol);
            _tmp32_ = vala_scope_lookup (_tmp31_, "short");
            _tmp33_ = VALA_STRUCT (_tmp32_);
            _tmp34_ = vala_integer_type_new (_tmp33_, NULL, NULL);
            _vala_code_node_unref0 (self->short_type);
            self->short_type = (ValaDataType*) _tmp34_;
            _vala_code_node_unref0 (_tmp33_);
            _tmp35_ = vala_symbol_get_scope (self->root_symbol);
            _tmp36_ = vala_scope_lookup (_tmp35_, "ushort");
            _tmp37_ = VALA_STRUCT (_tmp36_);
            _tmp38_ = vala_integer_type_new (_tmp37_, NULL, NULL);
            _vala_code_node_unref0 (self->ushort_type);
            self->ushort_type = (ValaDataType*) _tmp38_;
            _vala_code_node_unref0 (_tmp37_);
            _tmp39_ = vala_symbol_get_scope (self->root_symbol);
            _tmp40_ = vala_scope_lookup (_tmp39_, "long");
            _tmp41_ = VALA_STRUCT (_tmp40_);
            _tmp42_ = vala_integer_type_new (_tmp41_, NULL, NULL);
            _vala_code_node_unref0 (self->long_type);
            self->long_type = (ValaDataType*) _tmp42_;
            _vala_code_node_unref0 (_tmp41_);
            _tmp43_ = vala_symbol_get_scope (self->root_symbol);
            _tmp44_ = vala_scope_lookup (_tmp43_, "ulong");
            _tmp45_ = VALA_STRUCT (_tmp44_);
            _tmp46_ = vala_integer_type_new (_tmp45_, NULL, NULL);
            _vala_code_node_unref0 (self->ulong_type);
            self->ulong_type = (ValaDataType*) _tmp46_;
            _vala_code_node_unref0 (_tmp45_);
            _tmp47_ = vala_symbol_get_scope (self->root_symbol);
            _tmp48_ = vala_scope_lookup (_tmp47_, "size_t");
            _tmp49_ = VALA_STRUCT (_tmp48_);
            _tmp50_ = vala_integer_type_new (_tmp49_, NULL, NULL);
            _vala_code_node_unref0 (self->size_t_type);
            self->size_t_type = (ValaDataType*) _tmp50_;
            _vala_code_node_unref0 (_tmp49_);
            _tmp51_ = vala_symbol_get_scope (self->root_symbol);
            _tmp52_ = vala_scope_lookup (_tmp51_, "ssize_t");
            _tmp53_ = VALA_STRUCT (_tmp52_);
            _tmp54_ = vala_integer_type_new (_tmp53_, NULL, NULL);
            _vala_code_node_unref0 (self->ssize_t_type);
            self->ssize_t_type = (ValaDataType*) _tmp54_;
            _vala_code_node_unref0 (_tmp53_);
      } else {
            ValaDataType* _tmp55_;
            ValaDataType* _tmp56_;
            ValaDataType* _tmp57_;
            ValaDataType* _tmp58_;
            _tmp55_ = _vala_code_node_ref0 (self->int_type);
            _vala_code_node_unref0 (self->long_type);
            self->long_type = _tmp55_;
            _tmp56_ = _vala_code_node_ref0 (self->uint_type);
            _vala_code_node_unref0 (self->ulong_type);
            self->ulong_type = _tmp56_;
            _tmp57_ = _vala_code_node_ref0 (self->uint_type);
            _vala_code_node_unref0 (self->size_t_type);
            self->size_t_type = _tmp57_;
            _tmp58_ = _vala_code_node_ref0 (self->int_type);
            _vala_code_node_unref0 (self->ssize_t_type);
            self->ssize_t_type = _tmp58_;
      }
      _tmp59_ = vala_symbol_get_scope (self->root_symbol);
      _tmp60_ = vala_scope_lookup (_tmp59_, "unichar");
      unichar_struct = VALA_STRUCT (_tmp60_);
      if (unichar_struct != NULL) {
            ValaIntegerType* _tmp61_ = NULL;
            _tmp61_ = vala_integer_type_new (unichar_struct, NULL, NULL);
            _vala_code_node_unref0 (self->unichar_type);
            self->unichar_type = (ValaDataType*) _tmp61_;
      }
      _tmp62_ = vala_code_context_get_profile (context);
      if (_tmp62_ == VALA_PROFILE_GOBJECT) {
            ValaScope* _tmp63_ = NULL;
            ValaSymbol* _tmp64_ = NULL;
            ValaSymbol* glib_ns;
            ValaScope* _tmp65_ = NULL;
            ValaSymbol* _tmp66_ = NULL;
            ValaScope* _tmp67_ = NULL;
            ValaSymbol* _tmp68_ = NULL;
            ValaStruct* _tmp69_;
            ValaIntegerType* _tmp70_ = NULL;
            ValaScope* _tmp71_ = NULL;
            ValaSymbol* _tmp72_ = NULL;
            ValaStruct* _tmp73_;
            ValaStructValueType* _tmp74_ = NULL;
            ValaScope* _tmp75_ = NULL;
            ValaSymbol* _tmp76_ = NULL;
            ValaClass* _tmp77_;
            ValaObjectType* _tmp78_ = NULL;
            ValaScope* _tmp79_ = NULL;
            ValaSymbol* _tmp80_ = NULL;
            ValaClass* _tmp81_;
            ValaObjectType* _tmp82_ = NULL;
            ValaScope* _tmp83_ = NULL;
            ValaSymbol* _tmp84_ = NULL;
            ValaClass* _tmp85_;
            ValaObjectType* _tmp86_ = NULL;
            ValaScope* _tmp87_ = NULL;
            ValaSymbol* _tmp88_ = NULL;
            ValaClass* _tmp89_;
            ValaObjectType* _tmp90_ = NULL;
            ValaScope* _tmp91_ = NULL;
            ValaSymbol* _tmp92_ = NULL;
            ValaScope* _tmp93_ = NULL;
            ValaSymbol* _tmp94_ = NULL;
            ValaSymbol* _tmp95_;
            ValaScope* _tmp96_ = NULL;
            ValaSymbol* _tmp97_ = NULL;
            ValaClass* _tmp98_;
            ValaObjectType* _tmp99_ = NULL;
            _tmp63_ = vala_symbol_get_scope (self->root_symbol);
            _tmp64_ = vala_scope_lookup (_tmp63_, "GLib");
            glib_ns = _tmp64_;
            _tmp65_ = vala_symbol_get_scope (glib_ns);
            _tmp66_ = vala_scope_lookup (_tmp65_, "Object");
            _vala_code_node_unref0 (self->object_type);
            self->object_type = VALA_CLASS (_tmp66_);
            _tmp67_ = vala_symbol_get_scope (glib_ns);
            _tmp68_ = vala_scope_lookup (_tmp67_, "Type");
            _tmp69_ = VALA_STRUCT (_tmp68_);
            _tmp70_ = vala_integer_type_new (_tmp69_, NULL, NULL);
            _vala_code_node_unref0 (self->type_type);
            self->type_type = (ValaDataType*) _tmp70_;
            _vala_code_node_unref0 (_tmp69_);
            _tmp71_ = vala_symbol_get_scope (glib_ns);
            _tmp72_ = vala_scope_lookup (_tmp71_, "Value");
            _tmp73_ = VALA_STRUCT (_tmp72_);
            _tmp74_ = vala_struct_value_type_new (_tmp73_);
            _vala_code_node_unref0 (self->gvalue_type);
            self->gvalue_type = _tmp74_;
            _vala_code_node_unref0 (_tmp73_);
            _tmp75_ = vala_symbol_get_scope (glib_ns);
            _tmp76_ = vala_scope_lookup (_tmp75_, "List");
            _tmp77_ = VALA_CLASS (_tmp76_);
            _tmp78_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp77_);
            _vala_code_node_unref0 (self->glist_type);
            self->glist_type = (ValaDataType*) _tmp78_;
            _vala_code_node_unref0 (_tmp77_);
            _tmp79_ = vala_symbol_get_scope (glib_ns);
            _tmp80_ = vala_scope_lookup (_tmp79_, "SList");
            _tmp81_ = VALA_CLASS (_tmp80_);
            _tmp82_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp81_);
            _vala_code_node_unref0 (self->gslist_type);
            self->gslist_type = (ValaDataType*) _tmp82_;
            _vala_code_node_unref0 (_tmp81_);
            _tmp83_ = vala_symbol_get_scope (glib_ns);
            _tmp84_ = vala_scope_lookup (_tmp83_, "Array");
            _tmp85_ = VALA_CLASS (_tmp84_);
            _tmp86_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp85_);
            _vala_code_node_unref0 (self->garray_type);
            self->garray_type = (ValaDataType*) _tmp86_;
            _vala_code_node_unref0 (_tmp85_);
            _tmp87_ = vala_symbol_get_scope (glib_ns);
            _tmp88_ = vala_scope_lookup (_tmp87_, "ValueArray");
            _tmp89_ = VALA_CLASS (_tmp88_);
            _tmp90_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp89_);
            _vala_code_node_unref0 (self->gvaluearray_type);
            self->gvaluearray_type = (ValaDataType*) _tmp90_;
            _vala_code_node_unref0 (_tmp89_);
            _tmp91_ = vala_symbol_get_scope (glib_ns);
            _tmp92_ = vala_scope_lookup (_tmp91_, "Error");
            _vala_code_node_unref0 (self->gerror_type);
            self->gerror_type = VALA_CLASS (_tmp92_);
            _tmp93_ = vala_symbol_get_scope (self->root_symbol);
            _tmp94_ = vala_scope_lookup (_tmp93_, "GLib");
            _tmp95_ = _tmp94_;
            _tmp96_ = vala_symbol_get_scope (_tmp95_);
            _tmp97_ = vala_scope_lookup (_tmp96_, "Regex");
            _tmp98_ = VALA_CLASS (_tmp97_);
            _tmp99_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp98_);
            _vala_code_node_unref0 (self->regex_type);
            self->regex_type = (ValaDataType*) _tmp99_;
            _vala_code_node_unref0 (_tmp98_);
            _vala_code_node_unref0 (_tmp95_);
            _vala_code_node_unref0 (glib_ns);
      } else {
            ValaProfile _tmp100_;
            _tmp100_ = vala_code_context_get_profile (context);
            if (_tmp100_ == VALA_PROFILE_DOVA) {
                  ValaScope* _tmp101_ = NULL;
                  ValaSymbol* _tmp102_ = NULL;
                  ValaSymbol* dova_ns;
                  ValaScope* _tmp103_ = NULL;
                  ValaSymbol* _tmp104_ = NULL;
                  ValaScope* _tmp105_ = NULL;
                  ValaSymbol* _tmp106_ = NULL;
                  ValaClass* _tmp107_;
                  ValaObjectType* _tmp108_ = NULL;
                  ValaScope* _tmp109_ = NULL;
                  ValaSymbol* _tmp110_ = NULL;
                  ValaClass* _tmp111_;
                  ValaObjectType* _tmp112_ = NULL;
                  ValaScope* _tmp113_ = NULL;
                  ValaSymbol* _tmp114_ = NULL;
                  ValaClass* _tmp115_;
                  ValaObjectType* _tmp116_ = NULL;
                  ValaScope* _tmp117_ = NULL;
                  ValaSymbol* _tmp118_ = NULL;
                  ValaClass* _tmp119_;
                  ValaObjectType* _tmp120_ = NULL;
                  _tmp101_ = vala_symbol_get_scope (self->root_symbol);
                  _tmp102_ = vala_scope_lookup (_tmp101_, "Dova");
                  dova_ns = _tmp102_;
                  _tmp103_ = vala_symbol_get_scope (dova_ns);
                  _tmp104_ = vala_scope_lookup (_tmp103_, "Object");
                  _vala_code_node_unref0 (self->object_type);
                  self->object_type = VALA_CLASS (_tmp104_);
                  _tmp105_ = vala_symbol_get_scope (dova_ns);
                  _tmp106_ = vala_scope_lookup (_tmp105_, "Type");
                  _tmp107_ = VALA_CLASS (_tmp106_);
                  _tmp108_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp107_);
                  _vala_code_node_unref0 (self->type_type);
                  self->type_type = (ValaDataType*) _tmp108_;
                  _vala_code_node_unref0 (_tmp107_);
                  _tmp109_ = vala_symbol_get_scope (dova_ns);
                  _tmp110_ = vala_scope_lookup (_tmp109_, "List");
                  _tmp111_ = VALA_CLASS (_tmp110_);
                  _tmp112_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp111_);
                  _vala_code_node_unref0 (self->list_type);
                  self->list_type = (ValaDataType*) _tmp112_;
                  _vala_code_node_unref0 (_tmp111_);
                  _tmp113_ = vala_symbol_get_scope (dova_ns);
                  _tmp114_ = vala_scope_lookup (_tmp113_, "Tuple");
                  _tmp115_ = VALA_CLASS (_tmp114_);
                  _tmp116_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp115_);
                  _vala_code_node_unref0 (self->tuple_type);
                  self->tuple_type = (ValaDataType*) _tmp116_;
                  _vala_code_node_unref0 (_tmp115_);
                  _tmp117_ = vala_symbol_get_scope (dova_ns);
                  _tmp118_ = vala_scope_lookup (_tmp117_, "Error");
                  _tmp119_ = VALA_CLASS (_tmp118_);
                  _tmp120_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp119_);
                  _vala_code_node_unref0 (self->error_type);
                  self->error_type = (ValaDataType*) _tmp120_;
                  _vala_code_node_unref0 (_tmp119_);
                  _vala_code_node_unref0 (dova_ns);
            }
      }
      vala_semantic_analyzer_set_current_symbol (self, self->root_symbol);
      _tmp121_ = vala_code_context_get_root (context);
      vala_code_node_check ((ValaCodeNode*) _tmp121_, context);
      vala_code_context_accept (context, (ValaCodeVisitor*) self);
      _vala_code_node_unref0 (unichar_struct);
}


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


gboolean vala_semantic_analyzer_is_type_accessible (ValaSemanticAnalyzer* self, ValaSymbol* sym, ValaDataType* type) {
      gboolean result = FALSE;
      gboolean _tmp0_;
      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_ = vala_data_type_is_accessible (type, sym);
      result = _tmp0_;
      return result;
}


ValaDataType* vala_semantic_analyzer_get_value_type_for_symbol (ValaSemanticAnalyzer* self, ValaSymbol* sym, gboolean lvalue) {
      ValaDataType* result = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (sym != NULL, NULL);
      if (VALA_IS_FIELD (sym)) {
            ValaField* _tmp0_;
            ValaField* f;
            ValaDataType* _tmp1_ = NULL;
            ValaDataType* _tmp2_ = NULL;
            ValaDataType* type;
            _tmp0_ = _vala_code_node_ref0 (VALA_FIELD (sym));
            f = _tmp0_;
            _tmp1_ = vala_variable_get_variable_type ((ValaVariable*) f);
            _tmp2_ = vala_data_type_copy (_tmp1_);
            type = _tmp2_;
            if (!lvalue) {
                  vala_data_type_set_value_owned (type, FALSE);
            }
            result = type;
            _vala_code_node_unref0 (f);
            return result;
      } else {
            if (VALA_IS_ENUM_VALUE (sym)) {
                  ValaSymbol* _tmp3_ = NULL;
                  ValaEnumValueType* _tmp4_ = NULL;
                  _tmp3_ = vala_symbol_get_parent_symbol (sym);
                  _tmp4_ = vala_enum_value_type_new (VALA_ENUM (_tmp3_));
                  result = (ValaDataType*) _tmp4_;
                  return result;
            } else {
                  if (VALA_IS_CONSTANT (sym)) {
                        ValaConstant* _tmp5_;
                        ValaConstant* c;
                        ValaDataType* _tmp6_ = NULL;
                        ValaDataType* _tmp7_;
                        _tmp5_ = _vala_code_node_ref0 (VALA_CONSTANT (sym));
                        c = _tmp5_;
                        _tmp6_ = vala_constant_get_type_reference (c);
                        _tmp7_ = _vala_code_node_ref0 (_tmp6_);
                        result = _tmp7_;
                        _vala_code_node_unref0 (c);
                        return result;
                  } else {
                        if (VALA_IS_PROPERTY (sym)) {
                              ValaProperty* _tmp8_;
                              ValaProperty* prop;
                              _tmp8_ = _vala_code_node_ref0 (VALA_PROPERTY (sym));
                              prop = _tmp8_;
                              if (lvalue) {
                                    gboolean _tmp9_ = FALSE;
                                    ValaPropertyAccessor* _tmp10_ = NULL;
                                    _tmp10_ = vala_property_get_set_accessor (prop);
                                    if (_tmp10_ != NULL) {
                                          ValaPropertyAccessor* _tmp11_ = NULL;
                                          ValaDataType* _tmp12_ = NULL;
                                          _tmp11_ = vala_property_get_set_accessor (prop);
                                          _tmp12_ = vala_property_accessor_get_value_type (_tmp11_);
                                          _tmp9_ = _tmp12_ != NULL;
                                    } else {
                                          _tmp9_ = FALSE;
                                    }
                                    if (_tmp9_) {
                                          ValaPropertyAccessor* _tmp13_ = NULL;
                                          ValaDataType* _tmp14_ = NULL;
                                          ValaDataType* _tmp15_ = NULL;
                                          _tmp13_ = vala_property_get_set_accessor (prop);
                                          _tmp14_ = vala_property_accessor_get_value_type (_tmp13_);
                                          _tmp15_ = vala_data_type_copy (_tmp14_);
                                          result = _tmp15_;
                                          _vala_code_node_unref0 (prop);
                                          return result;
                                    }
                              } else {
                                    gboolean _tmp16_ = FALSE;
                                    ValaPropertyAccessor* _tmp17_ = NULL;
                                    _tmp17_ = vala_property_get_get_accessor (prop);
                                    if (_tmp17_ != NULL) {
                                          ValaPropertyAccessor* _tmp18_ = NULL;
                                          ValaDataType* _tmp19_ = NULL;
                                          _tmp18_ = vala_property_get_get_accessor (prop);
                                          _tmp19_ = vala_property_accessor_get_value_type (_tmp18_);
                                          _tmp16_ = _tmp19_ != NULL;
                                    } else {
                                          _tmp16_ = FALSE;
                                    }
                                    if (_tmp16_) {
                                          ValaPropertyAccessor* _tmp20_ = NULL;
                                          ValaDataType* _tmp21_ = NULL;
                                          ValaDataType* _tmp22_ = NULL;
                                          _tmp20_ = vala_property_get_get_accessor (prop);
                                          _tmp21_ = vala_property_accessor_get_value_type (_tmp20_);
                                          _tmp22_ = vala_data_type_copy (_tmp21_);
                                          result = _tmp22_;
                                          _vala_code_node_unref0 (prop);
                                          return result;
                                    }
                              }
                              _vala_code_node_unref0 (prop);
                        } else {
                              if (VALA_IS_PARAMETER (sym)) {
                                    ValaParameter* _tmp23_;
                                    ValaParameter* p;
                                    ValaDataType* _tmp24_ = NULL;
                                    ValaDataType* _tmp25_ = NULL;
                                    ValaDataType* type;
                                    _tmp23_ = _vala_code_node_ref0 (VALA_PARAMETER (sym));
                                    p = _tmp23_;
                                    _tmp24_ = vala_variable_get_variable_type ((ValaVariable*) p);
                                    _tmp25_ = vala_data_type_copy (_tmp24_);
                                    type = _tmp25_;
                                    if (!lvalue) {
                                          vala_data_type_set_value_owned (type, FALSE);
                                    }
                                    result = type;
                                    _vala_code_node_unref0 (p);
                                    return result;
                              } else {
                                    if (VALA_IS_LOCAL_VARIABLE (sym)) {
                                          ValaLocalVariable* _tmp26_;
                                          ValaLocalVariable* local;
                                          ValaDataType* _tmp27_ = NULL;
                                          ValaDataType* _tmp28_ = NULL;
                                          ValaDataType* type;
                                          gboolean _tmp29_ = FALSE;
                                          _tmp26_ = _vala_code_node_ref0 (VALA_LOCAL_VARIABLE (sym));
                                          local = _tmp26_;
                                          _tmp27_ = vala_variable_get_variable_type ((ValaVariable*) local);
                                          _tmp28_ = vala_data_type_copy (_tmp27_);
                                          type = _tmp28_;
                                          if (!lvalue) {
                                                gboolean _tmp30_;
                                                _tmp30_ = vala_local_variable_get_floating (local);
                                                _tmp29_ = !_tmp30_;
                                          } else {
                                                _tmp29_ = FALSE;
                                          }
                                          if (_tmp29_) {
                                                vala_data_type_set_value_owned (type, FALSE);
                                          }
                                          result = type;
                                          _vala_code_node_unref0 (local);
                                          return result;
                                    } else {
                                          if (VALA_IS_METHOD (sym)) {
                                                ValaMethodType* _tmp31_ = NULL;
                                                _tmp31_ = vala_method_type_new (VALA_METHOD (sym));
                                                result = (ValaDataType*) _tmp31_;
                                                return result;
                                          } else {
                                                if (VALA_IS_SIGNAL (sym)) {
                                                      ValaSignalType* _tmp32_ = NULL;
                                                      _tmp32_ = vala_signal_type_new (VALA_SIGNAL (sym));
                                                      result = (ValaDataType*) _tmp32_;
                                                      return result;
                                                }
                                          }
                                    }
                              }
                        }
                  }
            }
      }
      result = NULL;
      return result;
}


ValaSymbol* vala_semantic_analyzer_symbol_lookup_inherited (ValaSymbol* sym, const gchar* name) {
      ValaSymbol* result = NULL;
      ValaScope* _tmp0_ = NULL;
      ValaSymbol* _tmp1_ = NULL;
      ValaSymbol* _result_;
      g_return_val_if_fail (sym != NULL, NULL);
      g_return_val_if_fail (name != NULL, NULL);
      _tmp0_ = vala_symbol_get_scope (sym);
      _tmp1_ = vala_scope_lookup (_tmp0_, name);
      _result_ = _tmp1_;
      if (_result_ != NULL) {
            result = _result_;
            return result;
      }
      if (VALA_IS_CLASS (sym)) {
            ValaClass* _tmp2_;
            ValaClass* cl;
            ValaClass* _tmp10_ = NULL;
            _tmp2_ = _vala_code_node_ref0 (VALA_CLASS (sym));
            cl = _tmp2_;
            {
                  ValaList* _tmp3_ = NULL;
                  ValaList* _base_type_list;
                  gint _tmp4_;
                  gint _base_type_size;
                  gint _base_type_index;
                  _tmp3_ = vala_class_get_base_types (cl);
                  _base_type_list = _tmp3_;
                  _tmp4_ = vala_collection_get_size ((ValaCollection*) _base_type_list);
                  _base_type_size = _tmp4_;
                  _base_type_index = -1;
                  while (TRUE) {
                        gpointer _tmp5_ = NULL;
                        ValaDataType* base_type;
                        ValaTypeSymbol* _tmp6_ = NULL;
                        _base_type_index = _base_type_index + 1;
                        if (!(_base_type_index < _base_type_size)) {
                              break;
                        }
                        _tmp5_ = vala_list_get (_base_type_list, _base_type_index);
                        base_type = (ValaDataType*) _tmp5_;
                        _tmp6_ = vala_data_type_get_data_type (base_type);
                        if (VALA_IS_INTERFACE (_tmp6_)) {
                              ValaTypeSymbol* _tmp7_ = NULL;
                              ValaScope* _tmp8_ = NULL;
                              ValaSymbol* _tmp9_ = NULL;
                              _tmp7_ = vala_data_type_get_data_type (base_type);
                              _tmp8_ = vala_symbol_get_scope ((ValaSymbol*) _tmp7_);
                              _tmp9_ = vala_scope_lookup (_tmp8_, name);
                              _vala_code_node_unref0 (_result_);
                              _result_ = _tmp9_;
                              if (_result_ != 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);
            }
            _tmp10_ = vala_class_get_base_class (cl);
            if (_tmp10_ != NULL) {
                  ValaClass* _tmp11_ = NULL;
                  ValaSymbol* _tmp12_ = NULL;
                  _tmp11_ = vala_class_get_base_class (cl);
                  _tmp12_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp11_, name);
                  result = _tmp12_;
                  _vala_code_node_unref0 (cl);
                  _vala_code_node_unref0 (_result_);
                  return result;
            }
            _vala_code_node_unref0 (cl);
      } else {
            if (VALA_IS_STRUCT (sym)) {
                  ValaStruct* _tmp13_;
                  ValaStruct* st;
                  ValaDataType* _tmp14_ = NULL;
                  _tmp13_ = _vala_code_node_ref0 (VALA_STRUCT (sym));
                  st = _tmp13_;
                  _tmp14_ = vala_struct_get_base_type (st);
                  if (_tmp14_ != NULL) {
                        ValaDataType* _tmp15_ = NULL;
                        ValaTypeSymbol* _tmp16_ = NULL;
                        ValaSymbol* _tmp17_ = NULL;
                        _tmp15_ = vala_struct_get_base_type (st);
                        _tmp16_ = vala_data_type_get_data_type (_tmp15_);
                        _tmp17_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp16_, name);
                        _vala_code_node_unref0 (_result_);
                        _result_ = _tmp17_;
                        if (_result_ != NULL) {
                              result = _result_;
                              _vala_code_node_unref0 (st);
                              return result;
                        }
                  }
                  _vala_code_node_unref0 (st);
            } else {
                  if (VALA_IS_INTERFACE (sym)) {
                        ValaInterface* _tmp18_;
                        ValaInterface* iface;
                        _tmp18_ = _vala_code_node_ref0 (VALA_INTERFACE (sym));
                        iface = _tmp18_;
                        {
                              ValaList* _tmp19_ = NULL;
                              ValaList* _prerequisite_list;
                              gint _tmp20_;
                              gint _prerequisite_size;
                              gint _prerequisite_index;
                              _tmp19_ = vala_interface_get_prerequisites (iface);
                              _prerequisite_list = _tmp19_;
                              _tmp20_ = vala_collection_get_size ((ValaCollection*) _prerequisite_list);
                              _prerequisite_size = _tmp20_;
                              _prerequisite_index = -1;
                              while (TRUE) {
                                    gpointer _tmp21_ = NULL;
                                    ValaDataType* prerequisite;
                                    ValaTypeSymbol* _tmp22_ = NULL;
                                    _prerequisite_index = _prerequisite_index + 1;
                                    if (!(_prerequisite_index < _prerequisite_size)) {
                                          break;
                                    }
                                    _tmp21_ = vala_list_get (_prerequisite_list, _prerequisite_index);
                                    prerequisite = (ValaDataType*) _tmp21_;
                                    _tmp22_ = vala_data_type_get_data_type (prerequisite);
                                    if (VALA_IS_INTERFACE (_tmp22_)) {
                                          ValaTypeSymbol* _tmp23_ = NULL;
                                          ValaSymbol* _tmp24_ = NULL;
                                          _tmp23_ = vala_data_type_get_data_type (prerequisite);
                                          _tmp24_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp23_, name);
                                          _vala_code_node_unref0 (_result_);
                                          _result_ = _tmp24_;
                                          if (_result_ != 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* _tmp25_ = NULL;
                              ValaList* _prerequisite_list;
                              gint _tmp26_;
                              gint _prerequisite_size;
                              gint _prerequisite_index;
                              _tmp25_ = vala_interface_get_prerequisites (iface);
                              _prerequisite_list = _tmp25_;
                              _tmp26_ = vala_collection_get_size ((ValaCollection*) _prerequisite_list);
                              _prerequisite_size = _tmp26_;
                              _prerequisite_index = -1;
                              while (TRUE) {
                                    gpointer _tmp27_ = NULL;
                                    ValaDataType* prerequisite;
                                    ValaTypeSymbol* _tmp28_ = NULL;
                                    _prerequisite_index = _prerequisite_index + 1;
                                    if (!(_prerequisite_index < _prerequisite_size)) {
                                          break;
                                    }
                                    _tmp27_ = vala_list_get (_prerequisite_list, _prerequisite_index);
                                    prerequisite = (ValaDataType*) _tmp27_;
                                    _tmp28_ = vala_data_type_get_data_type (prerequisite);
                                    if (VALA_IS_CLASS (_tmp28_)) {
                                          ValaTypeSymbol* _tmp29_ = NULL;
                                          ValaSymbol* _tmp30_ = NULL;
                                          _tmp29_ = vala_data_type_get_data_type (prerequisite);
                                          _tmp30_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp29_, name);
                                          _vala_code_node_unref0 (_result_);
                                          _result_ = _tmp30_;
                                          if (_result_ != 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;
      ValaList* type_parameters;
      g_return_val_if_fail (sym != NULL, NULL);
      type = NULL;
      type_parameters = NULL;
      if (VALA_IS_OBJECT_TYPE_SYMBOL (sym)) {
            ValaObjectType* _tmp0_ = NULL;
            ValaList* _tmp1_ = NULL;
            _tmp0_ = vala_object_type_new (VALA_OBJECT_TYPE_SYMBOL (sym));
            _vala_code_node_unref0 (type);
            type = (ValaDataType*) _tmp0_;
            _tmp1_ = vala_object_type_symbol_get_type_parameters (VALA_OBJECT_TYPE_SYMBOL (sym));
            _vala_iterable_unref0 (type_parameters);
            type_parameters = _tmp1_;
      } else {
            if (VALA_IS_STRUCT (sym)) {
                  ValaStruct* _tmp2_;
                  ValaStruct* st;
                  gboolean _tmp3_;
                  ValaList* _tmp10_ = NULL;
                  _tmp2_ = _vala_code_node_ref0 (VALA_STRUCT (sym));
                  st = _tmp2_;
                  _tmp3_ = vala_struct_is_boolean_type (st);
                  if (_tmp3_) {
                        ValaBooleanType* _tmp4_ = NULL;
                        _tmp4_ = vala_boolean_type_new (st);
                        _vala_code_node_unref0 (type);
                        type = (ValaDataType*) _tmp4_;
                  } else {
                        gboolean _tmp5_;
                        _tmp5_ = vala_struct_is_integer_type (st);
                        if (_tmp5_) {
                              ValaIntegerType* _tmp6_ = NULL;
                              _tmp6_ = vala_integer_type_new (st, NULL, NULL);
                              _vala_code_node_unref0 (type);
                              type = (ValaDataType*) _tmp6_;
                        } else {
                              gboolean _tmp7_;
                              _tmp7_ = vala_struct_is_floating_type (st);
                              if (_tmp7_) {
                                    ValaFloatingType* _tmp8_ = NULL;
                                    _tmp8_ = vala_floating_type_new (st);
                                    _vala_code_node_unref0 (type);
                                    type = (ValaDataType*) _tmp8_;
                              } else {
                                    ValaStructValueType* _tmp9_ = NULL;
                                    _tmp9_ = vala_struct_value_type_new (st);
                                    _vala_code_node_unref0 (type);
                                    type = (ValaDataType*) _tmp9_;
                              }
                        }
                  }
                  _tmp10_ = vala_struct_get_type_parameters (st);
                  _vala_iterable_unref0 (type_parameters);
                  type_parameters = _tmp10_;
                  _vala_code_node_unref0 (st);
            } else {
                  if (VALA_IS_ENUM (sym)) {
                        ValaEnumValueType* _tmp11_ = NULL;
                        _tmp11_ = vala_enum_value_type_new (VALA_ENUM (sym));
                        _vala_code_node_unref0 (type);
                        type = (ValaDataType*) _tmp11_;
                  } else {
                        if (VALA_IS_ERROR_DOMAIN (sym)) {
                              ValaErrorType* _tmp12_ = NULL;
                              _tmp12_ = vala_error_type_new (VALA_ERROR_DOMAIN (sym), NULL, NULL);
                              _vala_code_node_unref0 (type);
                              type = (ValaDataType*) _tmp12_;
                        } else {
                              if (VALA_IS_ERROR_CODE (sym)) {
                                    ValaSymbol* _tmp13_ = NULL;
                                    ValaErrorType* _tmp14_ = NULL;
                                    _tmp13_ = vala_symbol_get_parent_symbol ((ValaSymbol*) sym);
                                    _tmp14_ = vala_error_type_new (VALA_ERROR_DOMAIN (_tmp13_), VALA_ERROR_CODE (sym), NULL);
                                    _vala_code_node_unref0 (type);
                                    type = (ValaDataType*) _tmp14_;
                              } else {
                                    gchar* _tmp15_ = NULL;
                                    gchar* _tmp16_;
                                    gchar* _tmp17_ = NULL;
                                    gchar* _tmp18_;
                                    ValaInvalidType* _tmp19_ = NULL;
                                    _tmp15_ = vala_symbol_get_full_name ((ValaSymbol*) sym);
                                    _tmp16_ = _tmp15_;
                                    _tmp17_ = g_strdup_printf ("internal error: `%s' is not a supported type", _tmp16_);
                                    _tmp18_ = _tmp17_;
                                    vala_report_error (NULL, _tmp18_);
                                    _g_free0 (_tmp18_);
                                    _g_free0 (_tmp16_);
                                    _tmp19_ = vala_invalid_type_new ();
                                    result = (ValaDataType*) _tmp19_;
                                    _vala_iterable_unref0 (type_parameters);
                                    _vala_code_node_unref0 (type);
                                    return result;
                              }
                        }
                  }
            }
      }
      if (type_parameters != NULL) {
            {
                  ValaList* _tmp20_;
                  ValaList* _type_param_list;
                  gint _tmp21_;
                  gint _type_param_size;
                  gint _type_param_index;
                  _tmp20_ = _vala_iterable_ref0 (type_parameters);
                  _type_param_list = _tmp20_;
                  _tmp21_ = vala_collection_get_size ((ValaCollection*) _type_param_list);
                  _type_param_size = _tmp21_;
                  _type_param_index = -1;
                  while (TRUE) {
                        gpointer _tmp22_ = NULL;
                        ValaTypeParameter* type_param;
                        ValaGenericType* _tmp23_ = NULL;
                        ValaGenericType* type_arg;
                        _type_param_index = _type_param_index + 1;
                        if (!(_type_param_index < _type_param_size)) {
                              break;
                        }
                        _tmp22_ = vala_list_get (_type_param_list, _type_param_index);
                        type_param = (ValaTypeParameter*) _tmp22_;
                        _tmp23_ = vala_generic_type_new (type_param);
                        type_arg = _tmp23_;
                        vala_data_type_set_value_owned ((ValaDataType*) type_arg, TRUE);
                        vala_data_type_add_type_argument (type, (ValaDataType*) type_arg);
                        _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* _tmp0_ = NULL;
      gchar* end;
      _tmp0_ = memchr (str, 0, (gsize) maxlen);
      end = _tmp0_;
      if (end == NULL) {
            result = maxlen;
            return result;
      } else {
            result = (glong) (end - str);
            return result;
      }
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
      gchar* result = NULL;
      glong string_length = 0L;
      gboolean _tmp0_ = FALSE;
      gchar* _tmp3_ = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      if (offset >= ((glong) 0)) {
            _tmp0_ = len >= ((glong) 0);
      } else {
            _tmp0_ = FALSE;
      }
      if (_tmp0_) {
            glong _tmp1_;
            _tmp1_ = string_strnlen ((gchar*) self, offset + len);
            string_length = _tmp1_;
      } else {
            gint _tmp2_;
            _tmp2_ = strlen (self);
            string_length = (glong) _tmp2_;
      }
      if (offset < ((glong) 0)) {
            offset = string_length + offset;
            g_return_val_if_fail (offset >= ((glong) 0), NULL);
      } else {
            g_return_val_if_fail (offset <= string_length, NULL);
      }
      if (len < ((glong) 0)) {
            len = string_length - offset;
      }
      g_return_val_if_fail ((offset + len) <= string_length, NULL);
      _tmp3_ = g_strndup (((gchar*) self) + offset, (gsize) len);
      result = _tmp3_;
      return result;
}


gboolean vala_semantic_analyzer_check_arguments (ValaSemanticAnalyzer* self, ValaExpression* expr, ValaDataType* mtype, ValaList* params, ValaList* args) {
      gboolean result = FALSE;
      ValaExpression* prev_arg;
      ValaIterator* _tmp0_ = NULL;
      ValaIterator* arg_it;
      gboolean _tmp1_ = FALSE;
      gboolean diag;
      gboolean ellipsis;
      gint i;
      gboolean _tmp90_ = FALSE;
      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_ = vala_iterable_iterator ((ValaIterable*) args);
      arg_it = _tmp0_;
      if (VALA_IS_METHOD_TYPE (mtype)) {
            ValaMethod* _tmp2_ = NULL;
            ValaAttribute* _tmp3_ = NULL;
            ValaAttribute* _tmp4_;
            _tmp2_ = vala_method_type_get_method_symbol (VALA_METHOD_TYPE (mtype));
            _tmp3_ = vala_code_node_get_attribute ((ValaCodeNode*) _tmp2_, "Diagnostics");
            _tmp4_ = _tmp3_;
            _tmp1_ = _tmp4_ != NULL;
            _vala_code_node_unref0 (_tmp4_);
      } else {
            _tmp1_ = FALSE;
      }
      diag = _tmp1_;
      ellipsis = FALSE;
      i = 0;
      {
            ValaList* _tmp5_;
            ValaList* _param_list;
            gint _tmp6_;
            gint _param_size;
            gint _param_index;
            _tmp5_ = _vala_iterable_ref0 (params);
            _param_list = _tmp5_;
            _tmp6_ = vala_collection_get_size ((ValaCollection*) _param_list);
            _param_size = _tmp6_;
            _param_index = -1;
            while (TRUE) {
                  gpointer _tmp7_ = NULL;
                  ValaParameter* param;
                  gboolean _tmp8_;
                  gboolean _tmp9_;
                  gboolean _tmp10_;
                  gboolean _tmp15_ = FALSE;
                  _param_index = _param_index + 1;
                  if (!(_param_index < _param_size)) {
                        break;
                  }
                  _tmp7_ = vala_list_get (_param_list, _param_index);
                  param = (ValaParameter*) _tmp7_;
                  _tmp8_ = vala_code_node_check ((ValaCodeNode*) param, self->priv->_context);
                  if (!_tmp8_) {
                        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;
                  }
                  _tmp9_ = vala_parameter_get_ellipsis (param);
                  if (_tmp9_) {
                        ellipsis = TRUE;
                        _vala_code_node_unref0 (param);
                        break;
                  }
                  _tmp10_ = vala_parameter_get_params_array (param);
                  if (_tmp10_) {
                        while (TRUE) {
                              gboolean _tmp11_;
                              gpointer _tmp12_ = NULL;
                              ValaExpression* arg;
                              ValaParameterDirection _tmp13_;
                              gboolean _tmp14_;
                              _tmp11_ = vala_iterator_next (arg_it);
                              if (!_tmp11_) {
                                    break;
                              }
                              _tmp12_ = vala_iterator_get (arg_it);
                              arg = (ValaExpression*) _tmp12_;
                              _tmp13_ = vala_parameter_get_direction (param);
                              _tmp14_ = vala_semantic_analyzer_check_argument (self, arg, i, _tmp13_);
                              if (!_tmp14_) {
                                    vala_code_node_set_error ((ValaCodeNode*) expr, 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;
                              }
                              i++;
                              _vala_code_node_unref0 (arg);
                        }
                        _vala_code_node_unref0 (param);
                        break;
                  }
                  if (arg_it == NULL) {
                        _tmp15_ = TRUE;
                  } else {
                        gboolean _tmp16_;
                        _tmp16_ = vala_iterator_next (arg_it);
                        _tmp15_ = !_tmp16_;
                  }
                  if (_tmp15_) {
                        ValaExpression* _tmp17_ = NULL;
                        _tmp17_ = vala_variable_get_initializer ((ValaVariable*) param);
                        if (_tmp17_ == NULL) {
                              ValaDataType* _tmp18_;
                              ValaMethodType* _tmp19_;
                              ValaMethodType* m;
                              vala_code_node_set_error ((ValaCodeNode*) expr, TRUE);
                              _tmp18_ = mtype;
                              _tmp19_ = _vala_code_node_ref0 (VALA_IS_METHOD_TYPE (_tmp18_) ? ((ValaMethodType*) _tmp18_) : NULL);
                              m = _tmp19_;
                              if (m != NULL) {
                                    ValaSourceReference* _tmp20_ = NULL;
                                    ValaList* _tmp21_ = NULL;
                                    ValaList* _tmp22_;
                                    gint _tmp23_;
                                    gint _tmp24_;
                                    gchar* _tmp25_ = NULL;
                                    gchar* _tmp26_;
                                    gchar* _tmp27_ = NULL;
                                    gchar* _tmp28_;
                                    _tmp20_ = vala_code_node_get_source_reference ((ValaCodeNode*) expr);
                                    _tmp21_ = vala_data_type_get_parameters ((ValaDataType*) m);
                                    _tmp22_ = _tmp21_;
                                    _tmp23_ = vala_collection_get_size ((ValaCollection*) _tmp22_);
                                    _tmp24_ = vala_collection_get_size ((ValaCollection*) args);
                                    _tmp25_ = vala_method_type_to_prototype_string (m, FALSE);
                                    _tmp26_ = _tmp25_;
                                    _tmp27_ = g_strdup_printf ("%d missing arguments for `%s'", _tmp23_ - _tmp24_, _tmp26_);
                                    _tmp28_ = _tmp27_;
                                    vala_report_error (_tmp20_, _tmp28_);
                                    _g_free0 (_tmp28_);
                                    _g_free0 (_tmp26_);
                                    _vala_iterable_unref0 (_tmp22_);
                              } else {
                                    ValaSourceReference* _tmp29_ = NULL;
                                    gchar* _tmp30_ = NULL;
                                    gchar* _tmp31_;
                                    gint _tmp32_;
                                    gchar* _tmp33_ = NULL;
                                    gchar* _tmp34_;
                                    _tmp29_ = vala_code_node_get_source_reference ((ValaCodeNode*) expr);
                                    _tmp30_ = vala_code_node_to_string ((ValaCodeNode*) mtype);
                                    _tmp31_ = _tmp30_;
                                    _tmp32_ = vala_collection_get_size ((ValaCollection*) args);
                                    _tmp33_ = g_strdup_printf ("Too few arguments, method `%s' does not take %d arguments", _tmp31_, _tmp32_);
                                    _tmp34_ = _tmp33_;
                                    vala_report_error (_tmp29_, _tmp34_);
                                    _g_free0 (_tmp34_);
                                    _g_free0 (_tmp31_);
                              }
                              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 {
                              ValaExpression* _tmp35_;
                              ValaMethodCall* _tmp36_;
                              ValaMethodCall* invocation_expr;
                              ValaExpression* _tmp37_;
                              ValaObjectCreationExpression* _tmp38_;
                              ValaObjectCreationExpression* object_creation_expr;
                              _tmp35_ = expr;
                              _tmp36_ = _vala_code_node_ref0 (VALA_IS_METHOD_CALL (_tmp35_) ? ((ValaMethodCall*) _tmp35_) : NULL);
                              invocation_expr = _tmp36_;
                              _tmp37_ = expr;
                              _tmp38_ = _vala_code_node_ref0 (VALA_IS_OBJECT_CREATION_EXPRESSION (_tmp37_) ? ((ValaObjectCreationExpression*) _tmp37_) : NULL);
                              object_creation_expr = _tmp38_;
                              if (invocation_expr != NULL) {
                                    ValaExpression* _tmp39_ = NULL;
                                    _tmp39_ = vala_variable_get_initializer ((ValaVariable*) param);
                                    vala_method_call_add_argument (invocation_expr, _tmp39_);
                              } else {
                                    if (object_creation_expr != NULL) {
                                          ValaExpression* _tmp40_ = NULL;
                                          _tmp40_ = vala_variable_get_initializer ((ValaVariable*) param);
                                          vala_object_creation_expression_add_argument (object_creation_expr, _tmp40_);
                                    } 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 {
                        gpointer _tmp41_ = NULL;
                        ValaExpression* arg;
                        ValaParameterDirection _tmp42_;
                        gboolean _tmp43_;
                        ValaExpression* _tmp44_;
                        _tmp41_ = vala_iterator_get (arg_it);
                        arg = (ValaExpression*) _tmp41_;
                        _tmp42_ = vala_parameter_get_direction (param);
                        _tmp43_ = vala_semantic_analyzer_check_argument (self, arg, i, _tmp42_);
                        if (!_tmp43_) {
                              vala_code_node_set_error ((ValaCodeNode*) expr, 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;
                        }
                        _tmp44_ = _vala_code_node_ref0 (arg);
                        _vala_code_node_unref0 (prev_arg);
                        prev_arg = _tmp44_;
                        i++;
                        _vala_code_node_unref0 (arg);
                  }
                  _vala_code_node_unref0 (param);
            }
            _vala_iterable_unref0 (_param_list);
      }
      if (ellipsis) {
            while (TRUE) {
                  gboolean _tmp45_ = FALSE;
                  gpointer _tmp47_ = NULL;
                  ValaExpression* arg;
                  gboolean _tmp48_;
                  if (arg_it != NULL) {
                        gboolean _tmp46_;
                        _tmp46_ = vala_iterator_next (arg_it);
                        _tmp45_ = _tmp46_;
                  } else {
                        _tmp45_ = FALSE;
                  }
                  if (!_tmp45_) {
                        break;
                  }
                  _tmp47_ = vala_iterator_get (arg_it);
                  arg = (ValaExpression*) _tmp47_;
                  _tmp48_ = vala_code_node_get_error ((ValaCodeNode*) arg);
                  if (_tmp48_) {
                        vala_code_node_set_error ((ValaCodeNode*) expr, TRUE);
                        result = FALSE;
                        _vala_code_node_unref0 (arg);
                        _vala_iterator_unref0 (arg_it);
                        _vala_code_node_unref0 (prev_arg);
                        return result;
                  } else {
                        ValaDataType* _tmp49_ = NULL;
                        _tmp49_ = vala_expression_get_value_type (arg);
                        if (VALA_IS_SIGNAL_TYPE (_tmp49_)) {
                              ValaSourceReference* _tmp50_ = NULL;
                              vala_code_node_set_error ((ValaCodeNode*) arg, TRUE);
                              _tmp50_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                              vala_report_error (_tmp50_, "Cannot pass signals as arguments");
                              result = FALSE;
                              _vala_code_node_unref0 (arg);
                              _vala_iterator_unref0 (arg_it);
                              _vala_code_node_unref0 (prev_arg);
                              return result;
                        } else {
                              ValaDataType* _tmp51_ = NULL;
                              _tmp51_ = vala_expression_get_value_type (arg);
                              if (_tmp51_ == NULL) {
                                    ValaSymbol* _tmp52_ = NULL;
                                    _tmp52_ = vala_expression_get_symbol_reference (arg);
                                    if (!VALA_IS_METHOD (_tmp52_)) {
                                          ValaSourceReference* _tmp53_ = NULL;
                                          gchar* _tmp54_ = NULL;
                                          gchar* _tmp55_;
                                          vala_code_node_set_error ((ValaCodeNode*) expr, TRUE);
                                          _tmp53_ = vala_code_node_get_source_reference ((ValaCodeNode*) expr);
                                          _tmp54_ = g_strdup_printf ("Invalid type for argument %d", i + 1);
                                          _tmp55_ = _tmp54_;
                                          vala_report_error (_tmp53_, _tmp55_);
                                          _g_free0 (_tmp55_);
                                          result = FALSE;
                                          _vala_code_node_unref0 (arg);
                                          _vala_iterator_unref0 (arg_it);
                                          _vala_code_node_unref0 (prev_arg);
                                          return result;
                                    }
                              } else {
                                    gboolean _tmp56_ = FALSE;
                                    ValaDataType* _tmp57_ = NULL;
                                    _tmp57_ = vala_expression_get_target_type (arg);
                                    if (_tmp57_ != NULL) {
                                          ValaDataType* _tmp58_ = NULL;
                                          ValaDataType* _tmp59_ = NULL;
                                          gboolean _tmp60_;
                                          _tmp58_ = vala_expression_get_value_type (arg);
                                          _tmp59_ = vala_expression_get_target_type (arg);
                                          _tmp60_ = vala_data_type_compatible (_tmp58_, _tmp59_);
                                          _tmp56_ = !_tmp60_;
                                    } else {
                                          _tmp56_ = FALSE;
                                    }
                                    if (_tmp56_) {
                                          ValaSourceReference* _tmp61_ = NULL;
                                          ValaDataType* _tmp62_ = NULL;
                                          gchar* _tmp63_ = NULL;
                                          gchar* _tmp64_;
                                          ValaDataType* _tmp65_ = NULL;
                                          gchar* _tmp66_ = NULL;
                                          gchar* _tmp67_;
                                          gchar* _tmp68_ = NULL;
                                          gchar* _tmp69_;
                                          vala_code_node_set_error ((ValaCodeNode*) expr, TRUE);
                                          _tmp61_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                          _tmp62_ = vala_expression_get_value_type (arg);
                                          _tmp63_ = vala_code_node_to_string ((ValaCodeNode*) _tmp62_);
                                          _tmp64_ = _tmp63_;
                                          _tmp65_ = vala_expression_get_target_type (arg);
                                          _tmp66_ = vala_code_node_to_string ((ValaCodeNode*) _tmp65_);
                                          _tmp67_ = _tmp66_;
                                          _tmp68_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", i + 1, _tmp64_, _tmp67_);
                                          _tmp69_ = _tmp68_;
                                          vala_report_error (_tmp61_, _tmp69_);
                                          _g_free0 (_tmp69_);
                                          _g_free0 (_tmp67_);
                                          _g_free0 (_tmp64_);
                                          result = FALSE;
                                          _vala_code_node_unref0 (arg);
                                          _vala_iterator_unref0 (arg_it);
                                          _vala_code_node_unref0 (prev_arg);
                                          return result;
                                    }
                              }
                        }
                  }
                  i++;
                  _vala_code_node_unref0 (arg);
            }
      } else {
            gboolean _tmp70_ = FALSE;
            gboolean _tmp71_ = FALSE;
            if (!ellipsis) {
                  _tmp71_ = arg_it != NULL;
            } else {
                  _tmp71_ = FALSE;
            }
            if (_tmp71_) {
                  gboolean _tmp72_;
                  _tmp72_ = vala_iterator_next (arg_it);
                  _tmp70_ = _tmp72_;
            } else {
                  _tmp70_ = FALSE;
            }
            if (_tmp70_) {
                  ValaDataType* _tmp73_;
                  ValaMethodType* _tmp74_;
                  ValaMethodType* m;
                  vala_code_node_set_error ((ValaCodeNode*) expr, TRUE);
                  _tmp73_ = mtype;
                  _tmp74_ = _vala_code_node_ref0 (VALA_IS_METHOD_TYPE (_tmp73_) ? ((ValaMethodType*) _tmp73_) : NULL);
                  m = _tmp74_;
                  if (m != NULL) {
                        ValaSourceReference* _tmp75_ = NULL;
                        gint _tmp76_;
                        ValaList* _tmp77_ = NULL;
                        ValaList* _tmp78_;
                        gint _tmp79_;
                        gchar* _tmp80_ = NULL;
                        gchar* _tmp81_;
                        gchar* _tmp82_ = NULL;
                        gchar* _tmp83_;
                        _tmp75_ = vala_code_node_get_source_reference ((ValaCodeNode*) expr);
                        _tmp76_ = vala_collection_get_size ((ValaCollection*) args);
                        _tmp77_ = vala_data_type_get_parameters ((ValaDataType*) m);
                        _tmp78_ = _tmp77_;
                        _tmp79_ = vala_collection_get_size ((ValaCollection*) _tmp78_);
                        _tmp80_ = vala_method_type_to_prototype_string (m, FALSE);
                        _tmp81_ = _tmp80_;
                        _tmp82_ = g_strdup_printf ("%d extra arguments for `%s'", _tmp76_ - _tmp79_, _tmp81_);
                        _tmp83_ = _tmp82_;
                        vala_report_error (_tmp75_, _tmp83_);
                        _g_free0 (_tmp83_);
                        _g_free0 (_tmp81_);
                        _vala_iterable_unref0 (_tmp78_);
                  } else {
                        ValaSourceReference* _tmp84_ = NULL;
                        gchar* _tmp85_ = NULL;
                        gchar* _tmp86_;
                        gint _tmp87_;
                        gchar* _tmp88_ = NULL;
                        gchar* _tmp89_;
                        _tmp84_ = vala_code_node_get_source_reference ((ValaCodeNode*) expr);
                        _tmp85_ = vala_code_node_to_string ((ValaCodeNode*) mtype);
                        _tmp86_ = _tmp85_;
                        _tmp87_ = vala_collection_get_size ((ValaCollection*) args);
                        _tmp88_ = g_strdup_printf ("Too many arguments, method `%s' does not take %d arguments", _tmp86_, _tmp87_);
                        _tmp89_ = _tmp88_;
                        vala_report_error (_tmp84_, _tmp89_);
                        _g_free0 (_tmp89_);
                        _g_free0 (_tmp86_);
                  }
                  result = FALSE;
                  _vala_code_node_unref0 (m);
                  _vala_iterator_unref0 (arg_it);
                  _vala_code_node_unref0 (prev_arg);
                  return result;
            }
      }
      if (diag) {
            _tmp90_ = prev_arg != NULL;
      } else {
            _tmp90_ = FALSE;
      }
      if (_tmp90_) {
            ValaExpression* _tmp91_;
            ValaStringLiteral* _tmp92_;
            ValaStringLiteral* format_arg;
            _tmp91_ = prev_arg;
            _tmp92_ = _vala_code_node_ref0 (VALA_IS_STRING_LITERAL (_tmp91_) ? ((ValaStringLiteral*) _tmp91_) : NULL);
            format_arg = _tmp92_;
            if (format_arg != NULL) {
                  ValaSourceReference* _tmp93_ = NULL;
                  ValaSourceFile* _tmp94_ = NULL;
                  const gchar* _tmp95_ = NULL;
                  gchar* _tmp96_ = NULL;
                  gchar* _tmp97_;
                  ValaSourceReference* _tmp98_ = NULL;
                  gint _tmp99_;
                  const gchar* _tmp100_ = NULL;
                  gchar* _tmp101_ = NULL;
                  gchar* _tmp102_;
                  gchar* _tmp103_ = NULL;
                  gchar* _tmp104_;
                  _tmp93_ = vala_code_node_get_source_reference ((ValaCodeNode*) expr);
                  _tmp94_ = vala_source_reference_get_file (_tmp93_);
                  _tmp95_ = vala_source_file_get_filename (_tmp94_);
                  _tmp96_ = g_path_get_basename (_tmp95_);
                  _tmp97_ = _tmp96_;
                  _tmp98_ = vala_code_node_get_source_reference ((ValaCodeNode*) expr);
                  _tmp99_ = vala_source_reference_get_first_line (_tmp98_);
                  _tmp100_ = vala_string_literal_get_value (format_arg);
                  _tmp101_ = string_substring (_tmp100_, (glong) 1, (glong) (-1));
                  _tmp102_ = _tmp101_;
                  _tmp103_ = g_strdup_printf ("\"%s:%d: %s", _tmp97_, _tmp99_, _tmp102_);
                  _tmp104_ = _tmp103_;
                  vala_string_literal_set_value (format_arg, _tmp104_);
                  _g_free0 (_tmp104_);
                  _g_free0 (_tmp102_);
                  _g_free0 (_tmp97_);
            }
            _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;
      gboolean _tmp0_;
      ValaExpression* _tmp87_;
      ValaMemberAccess* _tmp88_;
      ValaMemberAccess* ma;
      gboolean _tmp89_ = FALSE;
      g_return_val_if_fail (self != NULL, FALSE);
      g_return_val_if_fail (arg != NULL, FALSE);
      _tmp0_ = vala_code_node_get_error ((ValaCodeNode*) arg);
      if (_tmp0_) {
            result = FALSE;
            return result;
      } else {
            if (VALA_IS_NAMED_ARGUMENT (arg)) {
                  ValaSourceReference* _tmp1_ = NULL;
                  _tmp1_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                  vala_report_error (_tmp1_, "Named arguments are not supported yet");
                  result = FALSE;
                  return result;
            } else {
                  ValaDataType* _tmp2_ = NULL;
                  _tmp2_ = vala_expression_get_value_type (arg);
                  if (_tmp2_ == NULL) {
                        gboolean _tmp3_ = FALSE;
                        ValaDataType* _tmp4_ = NULL;
                        _tmp4_ = vala_expression_get_target_type (arg);
                        if (!VALA_IS_DELEGATE_TYPE (_tmp4_)) {
                              _tmp3_ = TRUE;
                        } else {
                              ValaSymbol* _tmp5_ = NULL;
                              _tmp5_ = vala_expression_get_symbol_reference (arg);
                              _tmp3_ = !VALA_IS_METHOD (_tmp5_);
                        }
                        if (_tmp3_) {
                              ValaSourceReference* _tmp6_ = NULL;
                              gchar* _tmp7_ = NULL;
                              gchar* _tmp8_;
                              _tmp6_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                              _tmp7_ = g_strdup_printf ("Invalid type for argument %d", i + 1);
                              _tmp8_ = _tmp7_;
                              vala_report_error (_tmp6_, _tmp8_);
                              _g_free0 (_tmp8_);
                              result = FALSE;
                              return result;
                        }
                  } else {
                        gboolean _tmp9_ = FALSE;
                        gboolean _tmp10_ = FALSE;
                        ValaDataType* _tmp11_ = NULL;
                        _tmp11_ = vala_expression_get_target_type (arg);
                        if (_tmp11_ != NULL) {
                              gboolean _tmp12_ = FALSE;
                              if (direction == VALA_PARAMETER_DIRECTION_IN) {
                                    _tmp12_ = TRUE;
                              } else {
                                    _tmp12_ = direction == VALA_PARAMETER_DIRECTION_REF;
                              }
                              _tmp10_ = _tmp12_;
                        } else {
                              _tmp10_ = FALSE;
                        }
                        if (_tmp10_) {
                              ValaDataType* _tmp13_ = NULL;
                              ValaDataType* _tmp14_ = NULL;
                              gboolean _tmp15_;
                              _tmp13_ = vala_expression_get_value_type (arg);
                              _tmp14_ = vala_expression_get_target_type (arg);
                              _tmp15_ = vala_data_type_compatible (_tmp13_, _tmp14_);
                              _tmp9_ = !_tmp15_;
                        } else {
                              _tmp9_ = FALSE;
                        }
                        if (_tmp9_) {
                              ValaSourceReference* _tmp16_ = NULL;
                              ValaDataType* _tmp17_ = NULL;
                              gchar* _tmp18_ = NULL;
                              gchar* _tmp19_;
                              ValaDataType* _tmp20_ = NULL;
                              gchar* _tmp21_ = NULL;
                              gchar* _tmp22_;
                              gchar* _tmp23_ = NULL;
                              gchar* _tmp24_;
                              _tmp16_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                              _tmp17_ = vala_expression_get_value_type (arg);
                              _tmp18_ = vala_code_node_to_string ((ValaCodeNode*) _tmp17_);
                              _tmp19_ = _tmp18_;
                              _tmp20_ = vala_expression_get_target_type (arg);
                              _tmp21_ = vala_code_node_to_string ((ValaCodeNode*) _tmp20_);
                              _tmp22_ = _tmp21_;
                              _tmp23_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", i + 1, _tmp19_, _tmp22_);
                              _tmp24_ = _tmp23_;
                              vala_report_error (_tmp16_, _tmp24_);
                              _g_free0 (_tmp24_);
                              _g_free0 (_tmp22_);
                              _g_free0 (_tmp19_);
                              result = FALSE;
                              return result;
                        } else {
                              gboolean _tmp25_ = FALSE;
                              gboolean _tmp26_ = FALSE;
                              gboolean _tmp27_ = FALSE;
                              ValaDataType* _tmp28_ = NULL;
                              _tmp28_ = vala_expression_get_target_type (arg);
                              if (_tmp28_ != NULL) {
                                    gboolean _tmp29_ = FALSE;
                                    if (direction == VALA_PARAMETER_DIRECTION_REF) {
                                          _tmp29_ = TRUE;
                                    } else {
                                          _tmp29_ = direction == VALA_PARAMETER_DIRECTION_OUT;
                                    }
                                    _tmp27_ = _tmp29_;
                              } else {
                                    _tmp27_ = FALSE;
                              }
                              if (_tmp27_) {
                                    ValaDataType* _tmp30_ = NULL;
                                    ValaDataType* _tmp31_ = NULL;
                                    gboolean _tmp32_;
                                    _tmp30_ = vala_expression_get_target_type (arg);
                                    _tmp31_ = vala_expression_get_value_type (arg);
                                    _tmp32_ = vala_data_type_compatible (_tmp30_, _tmp31_);
                                    _tmp26_ = !_tmp32_;
                              } else {
                                    _tmp26_ = FALSE;
                              }
                              if (_tmp26_) {
                                    _tmp25_ = !VALA_IS_NULL_LITERAL (arg);
                              } else {
                                    _tmp25_ = FALSE;
                              }
                              if (_tmp25_) {
                                    ValaSourceReference* _tmp33_ = NULL;
                                    ValaDataType* _tmp34_ = NULL;
                                    gchar* _tmp35_ = NULL;
                                    gchar* _tmp36_;
                                    ValaDataType* _tmp37_ = NULL;
                                    gchar* _tmp38_ = NULL;
                                    gchar* _tmp39_;
                                    gchar* _tmp40_ = NULL;
                                    gchar* _tmp41_;
                                    _tmp33_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                    _tmp34_ = vala_expression_get_target_type (arg);
                                    _tmp35_ = vala_code_node_to_string ((ValaCodeNode*) _tmp34_);
                                    _tmp36_ = _tmp35_;
                                    _tmp37_ = vala_expression_get_value_type (arg);
                                    _tmp38_ = vala_code_node_to_string ((ValaCodeNode*) _tmp37_);
                                    _tmp39_ = _tmp38_;
                                    _tmp40_ = g_strdup_printf ("Argument %d: Cannot convert from `%s' to `%s'", i + 1, _tmp36_, _tmp39_);
                                    _tmp41_ = _tmp40_;
                                    vala_report_error (_tmp33_, _tmp41_);
                                    _g_free0 (_tmp41_);
                                    _g_free0 (_tmp39_);
                                    _g_free0 (_tmp36_);
                                    result = FALSE;
                                    return result;
                              } else {
                                    gint arg_type;
                                    ValaDataType* _tmp42_ = NULL;
                                    arg_type = 1;
                                    _tmp42_ = vala_expression_get_value_type (arg);
                                    if (VALA_IS_NULL_TYPE (_tmp42_)) {
                                          arg_type = 0;
                                    } else {
                                          if (VALA_IS_UNARY_EXPRESSION (arg)) {
                                                ValaUnaryExpression* _tmp43_;
                                                ValaUnaryExpression* unary;
                                                ValaUnaryOperator _tmp44_;
                                                _tmp43_ = _vala_code_node_ref0 (VALA_UNARY_EXPRESSION (arg));
                                                unary = _tmp43_;
                                                _tmp44_ = vala_unary_expression_get_operator (unary);
                                                if (_tmp44_ == VALA_UNARY_OPERATOR_REF) {
                                                      arg_type = 2;
                                                } else {
                                                      ValaUnaryOperator _tmp45_;
                                                      _tmp45_ = vala_unary_expression_get_operator (unary);
                                                      if (_tmp45_ == VALA_UNARY_OPERATOR_OUT) {
                                                            arg_type = 3;
                                                      }
                                                }
                                                _vala_code_node_unref0 (unary);
                                          }
                                    }
                                    if (arg_type == 0) {
                                          if (direction == VALA_PARAMETER_DIRECTION_REF) {
                                                ValaSourceReference* _tmp46_ = NULL;
                                                gchar* _tmp47_ = NULL;
                                                gchar* _tmp48_;
                                                _tmp46_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                                _tmp47_ = g_strdup_printf ("Argument %d: Cannot pass null to reference parameter", i + 1);
                                                _tmp48_ = _tmp47_;
                                                vala_report_error (_tmp46_, _tmp48_);
                                                _g_free0 (_tmp48_);
                                                result = FALSE;
                                                return result;
                                          } else {
                                                gboolean _tmp49_ = FALSE;
                                                if (direction != VALA_PARAMETER_DIRECTION_OUT) {
                                                      ValaDataType* _tmp50_ = NULL;
                                                      gboolean _tmp51_;
                                                      _tmp50_ = vala_expression_get_target_type (arg);
                                                      _tmp51_ = vala_data_type_get_nullable (_tmp50_);
                                                      _tmp49_ = !_tmp51_;
                                                } else {
                                                      _tmp49_ = FALSE;
                                                }
                                                if (_tmp49_) {
                                                      ValaSourceReference* _tmp52_ = NULL;
                                                      gchar* _tmp53_ = NULL;
                                                      gchar* _tmp54_;
                                                      _tmp52_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                                      _tmp53_ = g_strdup_printf ("Argument %d: Cannot pass null to non-null parameter type", i + 1);
                                                      _tmp54_ = _tmp53_;
                                                      vala_report_warning (_tmp52_, _tmp54_);
                                                      _g_free0 (_tmp54_);
                                                }
                                          }
                                    } else {
                                          if (arg_type == 1) {
                                                if (direction != VALA_PARAMETER_DIRECTION_IN) {
                                                      ValaSourceReference* _tmp55_ = NULL;
                                                      gchar* _tmp56_ = NULL;
                                                      gchar* _tmp57_;
                                                      _tmp55_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                                      _tmp56_ = g_strdup_printf ("Argument %d: Cannot pass value to reference or output parameter", i + 1);
                                                      _tmp57_ = _tmp56_;
                                                      vala_report_error (_tmp55_, _tmp57_);
                                                      _g_free0 (_tmp57_);
                                                      result = FALSE;
                                                      return result;
                                                }
                                          } else {
                                                if (arg_type == 2) {
                                                      ValaDataType* _tmp61_ = NULL;
                                                      gboolean _tmp62_;
                                                      ValaDataType* _tmp70_ = NULL;
                                                      gboolean _tmp71_;
                                                      if (direction != VALA_PARAMETER_DIRECTION_REF) {
                                                            ValaSourceReference* _tmp58_ = NULL;
                                                            gchar* _tmp59_ = NULL;
                                                            gchar* _tmp60_;
                                                            _tmp58_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                                            _tmp59_ = g_strdup_printf ("Argument %d: Cannot pass ref argument to non-reference parameter", i + 1);
                                                            _tmp60_ = _tmp59_;
                                                            vala_report_error (_tmp58_, _tmp60_);
                                                            _g_free0 (_tmp60_);
                                                            result = FALSE;
                                                            return result;
                                                      }
                                                      _tmp61_ = vala_expression_get_target_type (arg);
                                                      _tmp62_ = vala_data_type_is_disposable (_tmp61_);
                                                      if (_tmp62_) {
                                                            gboolean _tmp63_ = FALSE;
                                                            ValaDataType* _tmp64_ = NULL;
                                                            _tmp64_ = vala_expression_get_value_type (arg);
                                                            if (!VALA_IS_POINTER_TYPE (_tmp64_)) {
                                                                  ValaDataType* _tmp65_ = NULL;
                                                                  gboolean _tmp66_;
                                                                  _tmp65_ = vala_expression_get_value_type (arg);
                                                                  _tmp66_ = vala_data_type_get_value_owned (_tmp65_);
                                                                  _tmp63_ = !_tmp66_;
                                                            } else {
                                                                  _tmp63_ = FALSE;
                                                            }
                                                            if (_tmp63_) {
                                                                  ValaSourceReference* _tmp67_ = NULL;
                                                                  gchar* _tmp68_ = NULL;
                                                                  gchar* _tmp69_;
                                                                  _tmp67_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                                                  _tmp68_ = g_strdup_printf ("Argument %d: Cannot pass unowned ref argument to owned reference param" \
"eter", i + 1);
                                                                  _tmp69_ = _tmp68_;
                                                                  vala_report_error (_tmp67_, _tmp69_);
                                                                  _g_free0 (_tmp69_);
                                                                  result = FALSE;
                                                                  return result;
                                                            }
                                                      }
                                                      _tmp70_ = vala_expression_get_value_type (arg);
                                                      _tmp71_ = vala_data_type_is_disposable (_tmp70_);
                                                      if (_tmp71_) {
                                                            ValaDataType* _tmp72_ = NULL;
                                                            gboolean _tmp73_;
                                                            _tmp72_ = vala_expression_get_target_type (arg);
                                                            _tmp73_ = vala_data_type_get_value_owned (_tmp72_);
                                                            if (!_tmp73_) {
                                                                  ValaSourceReference* _tmp74_ = NULL;
                                                                  gchar* _tmp75_ = NULL;
                                                                  gchar* _tmp76_;
                                                                  _tmp74_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                                                  _tmp75_ = g_strdup_printf ("Argument %d: Cannot pass owned ref argument to unowned reference param" \
"eter", i + 1);
                                                                  _tmp76_ = _tmp75_;
                                                                  vala_report_error (_tmp74_, _tmp76_);
                                                                  _g_free0 (_tmp76_);
                                                                  result = FALSE;
                                                                  return result;
                                                            }
                                                      }
                                                } else {
                                                      if (arg_type == 3) {
                                                            ValaDataType* _tmp80_ = NULL;
                                                            gboolean _tmp81_;
                                                            if (direction != VALA_PARAMETER_DIRECTION_OUT) {
                                                                  ValaSourceReference* _tmp77_ = NULL;
                                                                  gchar* _tmp78_ = NULL;
                                                                  gchar* _tmp79_;
                                                                  _tmp77_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                                                  _tmp78_ = g_strdup_printf ("Argument %d: Cannot pass out argument to non-output parameter", i + 1);
                                                                  _tmp79_ = _tmp78_;
                                                                  vala_report_error (_tmp77_, _tmp79_);
                                                                  _g_free0 (_tmp79_);
                                                                  result = FALSE;
                                                                  return result;
                                                            }
                                                            _tmp80_ = vala_expression_get_target_type (arg);
                                                            _tmp81_ = vala_data_type_is_disposable (_tmp80_);
                                                            if (_tmp81_) {
                                                                  gboolean _tmp82_ = FALSE;
                                                                  ValaDataType* _tmp83_ = NULL;
                                                                  _tmp83_ = vala_expression_get_value_type (arg);
                                                                  if (!VALA_IS_POINTER_TYPE (_tmp83_)) {
                                                                        ValaDataType* _tmp84_ = NULL;
                                                                        gboolean _tmp85_;
                                                                        _tmp84_ = vala_expression_get_value_type (arg);
                                                                        _tmp85_ = vala_data_type_get_value_owned (_tmp84_);
                                                                        _tmp82_ = !_tmp85_;
                                                                  } else {
                                                                        _tmp82_ = FALSE;
                                                                  }
                                                                  if (_tmp82_) {
                                                                        ValaSourceReference* _tmp86_ = NULL;
                                                                        _tmp86_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                                                                        vala_report_error (_tmp86_, "Invalid assignment from owned expression to unowned variable");
                                                                        result = FALSE;
                                                                        return result;
                                                                  }
                                                            }
                                                      }
                                                }
                                          }
                                    }
                              }
                        }
                  }
            }
      }
      _tmp87_ = arg;
      _tmp88_ = _vala_code_node_ref0 (VALA_IS_MEMBER_ACCESS (_tmp87_) ? ((ValaMemberAccess*) _tmp87_) : NULL);
      ma = _tmp88_;
      if (ma != NULL) {
            gboolean _tmp90_;
            _tmp90_ = vala_member_access_get_prototype_access (ma);
            _tmp89_ = _tmp90_;
      } else {
            _tmp89_ = FALSE;
      }
      if (_tmp89_) {
            ValaDataType* _tmp91_ = NULL;
            ValaDataType* _tmp92_;
            ValaDelegateType* _tmp93_;
            ValaDelegateType* deleg_type;
            gboolean _tmp94_ = FALSE;
            _tmp91_ = vala_expression_get_target_type (arg);
            _tmp92_ = _tmp91_;
            _tmp93_ = _vala_code_node_ref0 (VALA_IS_DELEGATE_TYPE (_tmp92_) ? ((ValaDelegateType*) _tmp92_) : NULL);
            deleg_type = _tmp93_;
            if (deleg_type == NULL) {
                  _tmp94_ = TRUE;
            } else {
                  ValaDelegate* _tmp95_ = NULL;
                  gboolean _tmp96_;
                  _tmp95_ = vala_delegate_type_get_delegate_symbol (deleg_type);
                  _tmp96_ = vala_delegate_get_has_target (_tmp95_);
                  _tmp94_ = _tmp96_;
            }
            if (_tmp94_) {
                  ValaSourceReference* _tmp97_ = NULL;
                  ValaSymbol* _tmp98_ = NULL;
                  gchar* _tmp99_ = NULL;
                  gchar* _tmp100_;
                  gchar* _tmp101_ = NULL;
                  gchar* _tmp102_;
                  _tmp97_ = vala_code_node_get_source_reference ((ValaCodeNode*) arg);
                  _tmp98_ = vala_expression_get_symbol_reference (arg);
                  _tmp99_ = vala_symbol_get_full_name (_tmp98_);
                  _tmp100_ = _tmp99_;
                  _tmp101_ = g_strdup_printf ("Access to instance member `%s' denied", _tmp100_);
                  _tmp102_ = _tmp101_;
                  vala_report_error (_tmp97_, _tmp102_);
                  _g_free0 (_tmp102_);
                  _g_free0 (_tmp100_);
                  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;
}


static ValaDataType* vala_semantic_analyzer_get_instance_base_type (ValaDataType* instance_type, ValaDataType* base_type, ValaCodeNode* node_reference) {
      ValaDataType* result = NULL;
      ValaReferenceType* instance_base_type = NULL;
      ValaTypeSymbol* _tmp0_ = NULL;
      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_ = vala_data_type_get_data_type (base_type);
      if (VALA_IS_CLASS (_tmp0_)) {
            ValaTypeSymbol* _tmp1_ = NULL;
            ValaObjectType* _tmp2_ = NULL;
            _tmp1_ = vala_data_type_get_data_type (base_type);
            _tmp2_ = vala_object_type_new ((ValaObjectTypeSymbol*) VALA_CLASS (_tmp1_));
            _vala_code_node_unref0 (instance_base_type);
            instance_base_type = (ValaReferenceType*) _tmp2_;
      } else {
            ValaTypeSymbol* _tmp3_ = NULL;
            ValaObjectType* _tmp4_ = NULL;
            _tmp3_ = vala_data_type_get_data_type (base_type);
            _tmp4_ = vala_object_type_new ((ValaObjectTypeSymbol*) VALA_INTERFACE (_tmp3_));
            _vala_code_node_unref0 (instance_base_type);
            instance_base_type = (ValaReferenceType*) _tmp4_;
      }
      {
            ValaList* _tmp5_ = NULL;
            ValaList* _type_arg_list;
            gint _tmp6_;
            gint _type_arg_size;
            gint _type_arg_index;
            _tmp5_ = vala_data_type_get_type_arguments (base_type);
            _type_arg_list = _tmp5_;
            _tmp6_ = vala_collection_get_size ((ValaCollection*) _type_arg_list);
            _type_arg_size = _tmp6_;
            _type_arg_index = -1;
            while (TRUE) {
                  gpointer _tmp7_ = NULL;
                  ValaDataType* type_arg;
                  ValaDataType* _tmp8_ = NULL;
                  _type_arg_index = _type_arg_index + 1;
                  if (!(_type_arg_index < _type_arg_size)) {
                        break;
                  }
                  _tmp7_ = vala_list_get (_type_arg_list, _type_arg_index);
                  type_arg = (ValaDataType*) _tmp7_;
                  _tmp8_ = vala_data_type_get_actual_type (type_arg, instance_type, NULL, node_reference);
                  _vala_code_node_unref0 (type_arg);
                  type_arg = _tmp8_;
                  vala_data_type_add_type_argument ((ValaDataType*) instance_base_type, type_arg);
                  _vala_code_node_unref0 (type_arg);
            }
            _vala_iterable_unref0 (_type_arg_list);
      }
      result = (ValaDataType*) instance_base_type;
      return result;
}


static ValaDataType* vala_semantic_analyzer_get_instance_base_type_for_member (ValaDataType* derived_instance_type, ValaTypeSymbol* type_symbol, ValaCodeNode* node_reference) {
      ValaDataType* result = NULL;
      ValaDataType* _tmp0_;
      ValaDataType* instance_type;
      ValaCodeContext* _tmp4_ = NULL;
      ValaCodeContext* _tmp5_;
      ValaProfile _tmp6_;
      gboolean _tmp7_;
      gboolean _tmp20_ = FALSE;
      ValaDataType* instance_base_type;
      ValaTypeSymbol* _tmp23_ = NULL;
      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_ = _vala_code_node_ref0 (derived_instance_type);
      instance_type = _tmp0_;
      while (TRUE) {
            ValaPointerType* _tmp1_;
            ValaPointerType* instance_pointer_type;
            ValaDataType* _tmp2_ = NULL;
            ValaDataType* _tmp3_;
            if (!VALA_IS_POINTER_TYPE (instance_type)) {
                  break;
            }
            _tmp1_ = _vala_code_node_ref0 (VALA_POINTER_TYPE (instance_type));
            instance_pointer_type = _tmp1_;
            _tmp2_ = vala_pointer_type_get_base_type (instance_pointer_type);
            _tmp3_ = _vala_code_node_ref0 (_tmp2_);
            _vala_code_node_unref0 (instance_type);
            instance_type = _tmp3_;
            _vala_code_node_unref0 (instance_pointer_type);
      }
      _tmp4_ = vala_code_context_get ();
      _tmp5_ = _tmp4_;
      _tmp6_ = vala_code_context_get_profile (_tmp5_);
      _tmp7_ = _tmp6_ == VALA_PROFILE_DOVA;
      _vala_code_context_unref0 (_tmp5_);
      if (_tmp7_) {
            while (TRUE) {
                  ValaArrayType* _tmp8_;
                  ValaArrayType* instance_array_type;
                  ValaCodeContext* _tmp9_ = NULL;
                  ValaCodeContext* _tmp10_;
                  ValaNamespace* _tmp11_ = NULL;
                  ValaScope* _tmp12_ = NULL;
                  ValaSymbol* _tmp13_ = NULL;
                  ValaSymbol* _tmp14_;
                  ValaScope* _tmp15_ = NULL;
                  ValaSymbol* _tmp16_ = NULL;
                  ValaClass* _tmp17_;
                  ValaObjectType* _tmp18_ = NULL;
                  ValaDataType* _tmp19_ = NULL;
                  if (!VALA_IS_ARRAY_TYPE (instance_type)) {
                        break;
                  }
                  _tmp8_ = _vala_code_node_ref0 (VALA_ARRAY_TYPE (instance_type));
                  instance_array_type = _tmp8_;
                  _tmp9_ = vala_code_context_get ();
                  _tmp10_ = _tmp9_;
                  _tmp11_ = vala_code_context_get_root (_tmp10_);
                  _tmp12_ = vala_symbol_get_scope ((ValaSymbol*) _tmp11_);
                  _tmp13_ = vala_scope_lookup (_tmp12_, "Dova");
                  _tmp14_ = _tmp13_;
                  _tmp15_ = vala_symbol_get_scope (_tmp14_);
                  _tmp16_ = vala_scope_lookup (_tmp15_, "Array");
                  _tmp17_ = VALA_CLASS (_tmp16_);
                  _tmp18_ = vala_object_type_new ((ValaObjectTypeSymbol*) _tmp17_);
                  _vala_code_node_unref0 (instance_type);
                  instance_type = (ValaDataType*) _tmp18_;
                  _vala_code_node_unref0 (_tmp17_);
                  _vala_code_node_unref0 (_tmp14_);
                  _vala_code_context_unref0 (_tmp10_);
                  _tmp19_ = vala_array_type_get_element_type (instance_array_type);
                  vala_data_type_add_type_argument (instance_type, _tmp19_);
                  _vala_code_node_unref0 (instance_array_type);
            }
      }
      if (VALA_IS_DELEGATE_TYPE (instance_type)) {
            ValaDelegate* _tmp21_ = NULL;
            _tmp21_ = vala_delegate_type_get_delegate_symbol (VALA_DELEGATE_TYPE (instance_type));
            _tmp20_ = VALA_TYPESYMBOL (_tmp21_) == type_symbol;
      } else {
            _tmp20_ = FALSE;
      }
      if (_tmp20_) {
            result = instance_type;
            return result;
      } else {
            ValaTypeSymbol* _tmp22_ = NULL;
            _tmp22_ = vala_data_type_get_data_type (instance_type);
            if (_tmp22_ == type_symbol) {
                  result = instance_type;
                  return result;
            }
      }
      instance_base_type = NULL;
      _tmp23_ = vala_data_type_get_data_type (instance_type);
      if (VALA_IS_CLASS (_tmp23_)) {
            ValaTypeSymbol* _tmp24_ = NULL;
            ValaClass* _tmp25_;
            ValaClass* cl;
            _tmp24_ = vala_data_type_get_data_type (instance_type);
            _tmp25_ = _vala_code_node_ref0 (VALA_CLASS (_tmp24_));
            cl = _tmp25_;
            {
                  ValaList* _tmp26_ = NULL;
                  ValaList* _base_type_list;
                  gint _tmp27_;
                  gint _base_type_size;
                  gint _base_type_index;
                  _tmp26_ = vala_class_get_base_types (cl);
                  _base_type_list = _tmp26_;
                  _tmp27_ = vala_collection_get_size ((ValaCollection*) _base_type_list);
                  _base_type_size = _tmp27_;
                  _base_type_index = -1;
                  while (TRUE) {
                        gpointer _tmp28_ = NULL;
                        ValaDataType* base_type;
                        ValaTypeSymbol* _tmp29_ = NULL;
                        _base_type_index = _base_type_index + 1;
                        if (!(_base_type_index < _base_type_size)) {
                              break;
                        }
                        _tmp28_ = vala_list_get (_base_type_list, _base_type_index);
                        base_type = (ValaDataType*) _tmp28_;
                        _tmp29_ = vala_data_type_get_data_type (base_type);
                        if (VALA_IS_INTERFACE (_tmp29_)) {
                              ValaDataType* _tmp30_ = NULL;
                              ValaDataType* _tmp31_;
                              ValaDataType* _tmp32_ = NULL;
                              _tmp30_ = vala_semantic_analyzer_get_instance_base_type (instance_type, base_type, node_reference);
                              _tmp31_ = _tmp30_;
                              _tmp32_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp31_, type_symbol, node_reference);
                              _vala_code_node_unref0 (instance_base_type);
                              instance_base_type = _tmp32_;
                              _vala_code_node_unref0 (_tmp31_);
                              if (instance_base_type != 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);
            }
            if (instance_base_type == NULL) {
                  {
                        ValaList* _tmp33_ = NULL;
                        ValaList* _base_type_list;
                        gint _tmp34_;
                        gint _base_type_size;
                        gint _base_type_index;
                        _tmp33_ = vala_class_get_base_types (cl);
                        _base_type_list = _tmp33_;
                        _tmp34_ = vala_collection_get_size ((ValaCollection*) _base_type_list);
                        _base_type_size = _tmp34_;
                        _base_type_index = -1;
                        while (TRUE) {
                              gpointer _tmp35_ = NULL;
                              ValaDataType* base_type;
                              ValaTypeSymbol* _tmp36_ = NULL;
                              _base_type_index = _base_type_index + 1;
                              if (!(_base_type_index < _base_type_size)) {
                                    break;
                              }
                              _tmp35_ = vala_list_get (_base_type_list, _base_type_index);
                              base_type = (ValaDataType*) _tmp35_;
                              _tmp36_ = vala_data_type_get_data_type (base_type);
                              if (VALA_IS_CLASS (_tmp36_)) {
                                    ValaDataType* _tmp37_ = NULL;
                                    ValaDataType* _tmp38_;
                                    ValaDataType* _tmp39_ = NULL;
                                    _tmp37_ = vala_semantic_analyzer_get_instance_base_type (instance_type, base_type, node_reference);
                                    _tmp38_ = _tmp37_;
                                    _tmp39_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp38_, type_symbol, node_reference);
                                    _vala_code_node_unref0 (instance_base_type);
                                    instance_base_type = _tmp39_;
                                    _vala_code_node_unref0 (_tmp38_);
                                    if (instance_base_type != 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 {
            ValaTypeSymbol* _tmp40_ = NULL;
            _tmp40_ = vala_data_type_get_data_type (instance_type);
            if (VALA_IS_STRUCT (_tmp40_)) {
                  ValaTypeSymbol* _tmp41_ = NULL;
                  ValaStruct* _tmp42_;
                  ValaStruct* st;
                  ValaDataType* _tmp43_ = NULL;
                  _tmp41_ = vala_data_type_get_data_type (instance_type);
                  _tmp42_ = _vala_code_node_ref0 (VALA_STRUCT (_tmp41_));
                  st = _tmp42_;
                  _tmp43_ = vala_struct_get_base_type (st);
                  if (_tmp43_ != NULL) {
                        ValaDataType* _tmp44_ = NULL;
                        ValaDataType* _tmp45_ = NULL;
                        ValaDataType* _tmp46_;
                        ValaDataType* _tmp47_ = NULL;
                        _tmp44_ = vala_struct_get_base_type (st);
                        _tmp45_ = vala_semantic_analyzer_get_instance_base_type (instance_type, _tmp44_, node_reference);
                        _tmp46_ = _tmp45_;
                        _tmp47_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp46_, type_symbol, node_reference);
                        _vala_code_node_unref0 (instance_base_type);
                        instance_base_type = _tmp47_;
                        _vala_code_node_unref0 (_tmp46_);
                        if (instance_base_type != NULL) {
                              result = instance_base_type;
                              _vala_code_node_unref0 (st);
                              _vala_code_node_unref0 (instance_type);
                              return result;
                        }
                  }
                  _vala_code_node_unref0 (st);
            } else {
                  ValaTypeSymbol* _tmp48_ = NULL;
                  _tmp48_ = vala_data_type_get_data_type (instance_type);
                  if (VALA_IS_INTERFACE (_tmp48_)) {
                        ValaTypeSymbol* _tmp49_ = NULL;
                        ValaInterface* _tmp50_;
                        ValaInterface* iface;
                        _tmp49_ = vala_data_type_get_data_type (instance_type);
                        _tmp50_ = _vala_code_node_ref0 (VALA_INTERFACE (_tmp49_));
                        iface = _tmp50_;
                        {
                              ValaList* _tmp51_ = NULL;
                              ValaList* _prerequisite_list;
                              gint _tmp52_;
                              gint _prerequisite_size;
                              gint _prerequisite_index;
                              _tmp51_ = vala_interface_get_prerequisites (iface);
                              _prerequisite_list = _tmp51_;
                              _tmp52_ = vala_collection_get_size ((ValaCollection*) _prerequisite_list);
                              _prerequisite_size = _tmp52_;
                              _prerequisite_index = -1;
                              while (TRUE) {
                                    gpointer _tmp53_ = NULL;
                                    ValaDataType* prerequisite;
                                    ValaTypeSymbol* _tmp54_ = NULL;
                                    _prerequisite_index = _prerequisite_index + 1;
                                    if (!(_prerequisite_index < _prerequisite_size)) {
                                          break;
                                    }
                                    _tmp53_ = vala_list_get (_prerequisite_list, _prerequisite_index);
                                    prerequisite = (ValaDataType*) _tmp53_;
                                    _tmp54_ = vala_data_type_get_data_type (prerequisite);
                                    if (VALA_IS_INTERFACE (_tmp54_)) {
                                          ValaDataType* _tmp55_ = NULL;
                                          ValaDataType* _tmp56_;
                                          ValaDataType* _tmp57_ = NULL;
                                          _tmp55_ = vala_semantic_analyzer_get_instance_base_type (instance_type, prerequisite, node_reference);
                                          _tmp56_ = _tmp55_;
                                          _tmp57_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp56_, type_symbol, node_reference);
                                          _vala_code_node_unref0 (instance_base_type);
                                          instance_base_type = _tmp57_;
                                          _vala_code_node_unref0 (_tmp56_);
                                          if (instance_base_type != 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);
                        }
                        if (instance_base_type == NULL) {
                              {
                                    ValaList* _tmp58_ = NULL;
                                    ValaList* _prerequisite_list;
                                    gint _tmp59_;
                                    gint _prerequisite_size;
                                    gint _prerequisite_index;
                                    _tmp58_ = vala_interface_get_prerequisites (iface);
                                    _prerequisite_list = _tmp58_;
                                    _tmp59_ = vala_collection_get_size ((ValaCollection*) _prerequisite_list);
                                    _prerequisite_size = _tmp59_;
                                    _prerequisite_index = -1;
                                    while (TRUE) {
                                          gpointer _tmp60_ = NULL;
                                          ValaDataType* prerequisite;
                                          ValaTypeSymbol* _tmp61_ = NULL;
                                          _prerequisite_index = _prerequisite_index + 1;
                                          if (!(_prerequisite_index < _prerequisite_size)) {
                                                break;
                                          }
                                          _tmp60_ = vala_list_get (_prerequisite_list, _prerequisite_index);
                                          prerequisite = (ValaDataType*) _tmp60_;
                                          _tmp61_ = vala_data_type_get_data_type (prerequisite);
                                          if (VALA_IS_CLASS (_tmp61_)) {
                                                ValaDataType* _tmp62_ = NULL;
                                                ValaDataType* _tmp63_;
                                                ValaDataType* _tmp64_ = NULL;
                                                _tmp62_ = vala_semantic_analyzer_get_instance_base_type (instance_type, prerequisite, node_reference);
                                                _tmp63_ = _tmp62_;
                                                _tmp64_ = vala_semantic_analyzer_get_instance_base_type_for_member (_tmp63_, type_symbol, node_reference);
                                                _vala_code_node_unref0 (instance_base_type);
                                                instance_base_type = _tmp64_;
                                                _vala_code_node_unref0 (_tmp63_);
                                                if (instance_base_type != 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, ValaMemberAccess* method_access, ValaGenericType* generic_type, ValaCodeNode* node_reference) {
      ValaDataType* result = NULL;
      ValaDataType* actual_type;
      ValaTypeParameter* _tmp0_ = NULL;
      ValaSymbol* _tmp1_ = NULL;
      ValaDataType* _tmp45_ = NULL;
      gboolean _tmp46_ = FALSE;
      gboolean _tmp47_;
      g_return_val_if_fail (generic_type != NULL, NULL);
      g_return_val_if_fail (node_reference != NULL, NULL);
      actual_type = NULL;
      _tmp0_ = vala_data_type_get_type_parameter ((ValaDataType*) generic_type);
      _tmp1_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp0_);
      if (VALA_IS_TYPESYMBOL (_tmp1_)) {
            if (derived_instance_type != NULL) {
                  ValaTypeParameter* _tmp2_ = NULL;
                  ValaSymbol* _tmp3_ = NULL;
                  ValaDataType* _tmp4_ = NULL;
                  ValaDataType* instance_type;
                  gint param_index = 0;
                  ValaList* _tmp18_ = NULL;
                  ValaList* _tmp19_;
                  gint _tmp20_;
                  gboolean _tmp21_;
                  _tmp2_ = vala_data_type_get_type_parameter ((ValaDataType*) generic_type);
                  _tmp3_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp2_);
                  _tmp4_ = vala_semantic_analyzer_get_instance_base_type_for_member (derived_instance_type, VALA_TYPESYMBOL (_tmp3_), node_reference);
                  instance_type = _tmp4_;
                  g_assert (instance_type != NULL);
                  if (VALA_IS_DELEGATE_TYPE (instance_type)) {
                        ValaDelegate* _tmp5_ = NULL;
                        ValaTypeParameter* _tmp6_ = NULL;
                        const gchar* _tmp7_ = NULL;
                        gint _tmp8_;
                        _tmp5_ = vala_delegate_type_get_delegate_symbol (VALA_DELEGATE_TYPE (instance_type));
                        _tmp6_ = vala_data_type_get_type_parameter ((ValaDataType*) generic_type);
                        _tmp7_ = vala_symbol_get_name ((ValaSymbol*) _tmp6_);
                        _tmp8_ = vala_typesymbol_get_type_parameter_index ((ValaTypeSymbol*) _tmp5_, _tmp7_);
                        param_index = _tmp8_;
                  } else {
                        ValaTypeSymbol* _tmp9_ = NULL;
                        ValaTypeParameter* _tmp10_ = NULL;
                        const gchar* _tmp11_ = NULL;
                        gint _tmp12_;
                        _tmp9_ = vala_data_type_get_data_type (instance_type);
                        _tmp10_ = vala_data_type_get_type_parameter ((ValaDataType*) generic_type);
                        _tmp11_ = vala_symbol_get_name ((ValaSymbol*) _tmp10_);
                        _tmp12_ = vala_typesymbol_get_type_parameter_index (_tmp9_, _tmp11_);
                        param_index = _tmp12_;
                  }
                  if (param_index == (-1)) {
                        ValaSourceReference* _tmp13_ = NULL;
                        ValaTypeParameter* _tmp14_ = NULL;
                        const gchar* _tmp15_ = NULL;
                        gchar* _tmp16_ = NULL;
                        gchar* _tmp17_;
                        _tmp13_ = vala_code_node_get_source_reference (node_reference);
                        _tmp14_ = vala_data_type_get_type_parameter ((ValaDataType*) generic_type);
                        _tmp15_ = vala_symbol_get_name ((ValaSymbol*) _tmp14_);
                        _tmp16_ = g_strdup_printf ("internal error: unknown type parameter %s", _tmp15_);
                        _tmp17_ = _tmp16_;
                        vala_report_error (_tmp13_, _tmp17_);
                        _g_free0 (_tmp17_);
                        vala_code_node_set_error (node_reference, TRUE);
                        result = NULL;
                        _vala_code_node_unref0 (instance_type);
                        _vala_code_node_unref0 (actual_type);
                        return result;
                  }
                  _tmp18_ = vala_data_type_get_type_arguments (instance_type);
                  _tmp19_ = _tmp18_;
                  _tmp20_ = vala_collection_get_size ((ValaCollection*) _tmp19_);
                  _tmp21_ = param_index < _tmp20_;
                  _vala_iterable_unref0 (_tmp19_);
                  if (_tmp21_) {
                        ValaList* _tmp22_ = NULL;
                        ValaList* _tmp23_;
                        gpointer _tmp24_ = NULL;
                        _tmp22_ = vala_data_type_get_type_arguments (instance_type);
                        _tmp23_ = _tmp22_;
                        _tmp24_ = vala_list_get (_tmp23_, param_index);
                        _vala_code_node_unref0 (actual_type);
                        actual_type = VALA_DATA_TYPE ((ValaDataType*) _tmp24_);
                        _vala_iterable_unref0 (_tmp23_);
                  }
                  _vala_code_node_unref0 (instance_type);
            }
      } else {
            ValaTypeParameter* _tmp25_ = NULL;
            ValaSymbol* _tmp26_ = NULL;
            ValaMethod* _tmp27_;
            ValaMethod* m;
            ValaTypeParameter* _tmp29_ = NULL;
            const gchar* _tmp30_ = NULL;
            gint _tmp31_;
            gint param_index;
            ValaList* _tmp37_ = NULL;
            ValaList* _tmp38_;
            gint _tmp39_;
            gboolean _tmp40_;
            _tmp25_ = vala_data_type_get_type_parameter ((ValaDataType*) generic_type);
            _tmp26_ = vala_symbol_get_parent_symbol ((ValaSymbol*) _tmp25_);
            _tmp27_ = _vala_code_node_ref0 (VALA_METHOD (_tmp26_));
            m = _tmp27_;
            if (method_access == NULL) {
                  ValaDataType* _tmp28_;
                  _tmp28_ = _vala_code_node_ref0 ((ValaDataType*) generic_type);
                  result = _tmp28_;
                  _vala_code_node_unref0 (m);
                  _vala_code_node_unref0 (actual_type);
                  return result;
            }
            _tmp29_ = vala_data_type_get_type_parameter ((ValaDataType*) generic_type);
            _tmp30_ = vala_symbol_get_name ((ValaSymbol*) _tmp29_);
            _tmp31_ = vala_method_get_type_parameter_index (m, _tmp30_);
            param_index = _tmp31_;
            if (param_index == (-1)) {
                  ValaSourceReference* _tmp32_ = NULL;
                  ValaTypeParameter* _tmp33_ = NULL;
                  const gchar* _tmp34_ = NULL;
                  gchar* _tmp35_ = NULL;
                  gchar* _tmp36_;
                  _tmp32_ = vala_code_node_get_source_reference (node_reference);
                  _tmp33_ = vala_data_type_get_type_parameter ((ValaDataType*) generic_type);
                  _tmp34_ = vala_symbol_get_name ((ValaSymbol*) _tmp33_);
                  _tmp35_ = g_strdup_printf ("internal error: unknown type parameter %s", _tmp34_);
                  _tmp36_ = _tmp35_;
                  vala_report_error (_tmp32_, _tmp36_);
                  _g_free0 (_tmp36_);
                  vala_code_node_set_error (node_reference, TRUE);
                  result = NULL;
                  _vala_code_node_unref0 (m);
                  _vala_code_node_unref0 (actual_type);
                  return result;
            }
            _tmp37_ = vala_member_access_get_type_arguments (method_access);
            _tmp38_ = _tmp37_;
            _tmp39_ = vala_collection_get_size ((ValaCollection*) _tmp38_);
            _tmp40_ = param_index < _tmp39_;
            _vala_iterable_unref0 (_tmp38_);
            if (_tmp40_) {
                  ValaList* _tmp41_ = NULL;
                  ValaList* _tmp42_;
                  gpointer _tmp43_ = NULL;
                  _tmp41_ = vala_member_access_get_type_arguments (method_access);
                  _tmp42_ = _tmp41_;
                  _tmp43_ = vala_list_get (_tmp42_, param_index);
                  _vala_code_node_unref0 (actual_type);
                  actual_type = VALA_DATA_TYPE ((ValaDataType*) _tmp43_);
                  _vala_iterable_unref0 (_tmp42_);
            }
            _vala_code_node_unref0 (m);
      }
      if (actual_type == NULL) {
            ValaDataType* _tmp44_;
            _tmp44_ = _vala_code_node_ref0 ((ValaDataType*) generic_type);
            result = _tmp44_;
            _vala_code_node_unref0 (actual_type);
            return result;
      }
      _tmp45_ = vala_data_type_copy (actual_type);
      _vala_code_node_unref0 (actual_type);
      actual_type = _tmp45_;
      _tmp47_ = vala_data_type_get_value_owned (actual_type);
      if (_tmp47_) {
            gboolean _tmp48_;
            _tmp48_ = vala_data_type_get_value_owned ((ValaDataType*) generic_type);
            _tmp46_ = _tmp48_;
      } else {
            _tmp46_ = FALSE;
      }
      vala_data_type_set_value_owned (actual_type, _tmp46_);
      result = actual_type;
      return result;
}


gboolean vala_semantic_analyzer_is_in_instance_method (ValaSemanticAnalyzer* self) {
      gboolean result = FALSE;
      ValaSymbol* _tmp0_;
      ValaSymbol* sym;
      g_return_val_if_fail (self != NULL, FALSE);
      _tmp0_ = _vala_code_node_ref0 (self->priv->_current_symbol);
      sym = _tmp0_;
      while (TRUE) {
            ValaSymbol* _tmp7_ = NULL;
            ValaSymbol* _tmp8_;
            if (!(sym != NULL)) {
                  break;
            }
            if (VALA_IS_CREATION_METHOD (sym)) {
                  result = TRUE;
                  _vala_code_node_unref0 (sym);
                  return result;
            } else {
                  if (VALA_IS_METHOD (sym)) {
                        ValaMethod* _tmp1_;
                        ValaMethod* m;
                        ValaMemberBinding _tmp2_;
                        _tmp1_ = _vala_code_node_ref0 (VALA_METHOD (sym));
                        m = _tmp1_;
                        _tmp2_ = vala_method_get_binding (m);
                        result = _tmp2_ == VALA_MEMBER_BINDING_INSTANCE;
                        _vala_code_node_unref0 (m);
                        _vala_code_node_unref0 (sym);
                        return result;
                  } else {
                        if (VALA_IS_CONSTRUCTOR (sym)) {
                              ValaConstructor* _tmp3_;
                              ValaConstructor* c;
                              ValaMemberBinding _tmp4_;
                              _tmp3_ = _vala_code_node_ref0 (VALA_CONSTRUCTOR (sym));
                              c = _tmp3_;
                              _tmp4_ = vala_constructor_get_binding (c);
                              result = _tmp4_ == VALA_MEMBER_BINDING_INSTANCE;
                              _vala_code_node_unref0 (c);
                              _vala_code_node_unref0 (sym);
                              return result;
                        } else {
                              if (VALA_IS_DESTRUCTOR (sym)) {
                                    result = TRUE;
                                    _vala_code_node_unref0 (sym);
                                    return result;
                              } else {
                                    if (VALA_IS_PROPERTY (sym)) {
                                          ValaProperty* _tmp5_;
                                          ValaProperty* p;
                                          ValaMemberBinding _tmp6_;
                                          _tmp5_ = _vala_code_node_ref0 (VALA_PROPERTY (sym));
                                          p = _tmp5_;
                                          _tmp6_ = vala_property_get_binding (p);
                                          result = _tmp6_ == VALA_MEMBER_BINDING_INSTANCE;
                                          _vala_code_node_unref0 (p);
                                          _vala_code_node_unref0 (sym);
                                          return result;
                                    }
                              }
                        }
                  }
            }
            _tmp7_ = vala_symbol_get_parent_symbol (sym);
            _tmp8_ = _vala_code_node_ref0 (_tmp7_);
            _vala_code_node_unref0 (sym);
            sym = _tmp8_;
      }
      result = FALSE;
      _vala_code_node_unref0 (sym);
      return result;
}


void vala_semantic_analyzer_visit_member_initializer (ValaSemanticAnalyzer* self, ValaMemberInitializer* init, ValaDataType* type) {
      ValaTypeSymbol* _tmp0_ = NULL;
      const gchar* _tmp1_ = NULL;
      ValaSymbol* _tmp2_ = NULL;
      ValaSymbol* _tmp3_;
      gboolean _tmp4_ = FALSE;
      ValaSymbol* _tmp5_ = NULL;
      ValaSymbol* _tmp14_ = NULL;
      ValaSymbolAccessibility _tmp15_;
      ValaDataType* member_type;
      ValaSymbol* _tmp22_ = NULL;
      ValaExpression* _tmp41_ = NULL;
      ValaExpression* _tmp42_ = NULL;
      ValaExpression* _tmp43_ = NULL;
      ValaDataType* _tmp44_ = NULL;
      ValaDataType* _tmp45_ = NULL;
      ValaDataType* _tmp46_;
      gboolean _tmp47_ = FALSE;
      ValaExpression* _tmp48_ = NULL;
      ValaDataType* _tmp49_ = NULL;
      g_return_if_fail (self != NULL);
      g_return_if_fail (init != NULL);
      g_return_if_fail (type != NULL);
      _tmp0_ = vala_data_type_get_data_type (type);
      _tmp1_ = vala_member_initializer_get_name (init);
      _tmp2_ = vala_semantic_analyzer_symbol_lookup_inherited ((ValaSymbol*) _tmp0_, _tmp1_);
      _tmp3_ = _tmp2_;
      vala_member_initializer_set_symbol_reference (init, _tmp3_);
      _vala_code_node_unref0 (_tmp3_);
      _tmp5_ = vala_member_initializer_get_symbol_reference (init);
      if (VALA_IS_FIELD (_tmp5_)) {
            _tmp4_ = TRUE;
      } else {
            ValaSymbol* _tmp6_ = NULL;
            _tmp6_ = vala_member_initializer_get_symbol_reference (init);
            _tmp4_ = VALA_IS_PROPERTY (_tmp6_);
      }
      if (!_tmp4_) {
            ValaSourceReference* _tmp7_ = NULL;
            const gchar* _tmp8_ = NULL;
            ValaTypeSymbol* _tmp9_ = NULL;
            gchar* _tmp10_ = NULL;
            gchar* _tmp11_;
            gchar* _tmp12_ = NULL;
            gchar* _tmp13_;
            vala_code_node_set_error ((ValaCodeNode*) init, TRUE);
            _tmp7_ = vala_code_node_get_source_reference ((ValaCodeNode*) init);
            _tmp8_ = vala_member_initializer_get_name (init);
            _tmp9_ = vala_data_type_get_data_type (type);
            _tmp10_ = vala_symbol_get_full_name ((ValaSymbol*) _tmp9_);
            _tmp11_ = _tmp10_;
            _tmp12_ = g_strdup_printf ("Invalid member `%s' in `%s'", _tmp8_, _tmp11_);
            _tmp13_ = _tmp12_;
            vala_report_error (_tmp7_, _tmp13_);
            _g_free0 (_tmp13_);
            _g_free0 (_tmp11_);
            return;
      }
      _tmp14_ = vala_member_initializer_get_symbol_reference (init);
      _tmp15_ = vala_symbol_get_access (_tmp14_);
      if (_tmp15_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC) {
            ValaSourceReference* _tmp16_ = NULL;
            ValaSymbol* _tmp17_ = NULL;
            gchar* _tmp18_ = NULL;
            gchar* _tmp19_;
            gchar* _tmp20_ = NULL;
            gchar* _tmp21_;
            vala_code_node_set_error ((ValaCodeNode*) init, TRUE);
            _tmp16_ = vala_code_node_get_source_reference ((ValaCodeNode*) init);
            _tmp17_ = vala_member_initializer_get_symbol_reference (init);
            _tmp18_ = vala_symbol_get_full_name (_tmp17_);
            _tmp19_ = _tmp18_;
            _tmp20_ = g_strdup_printf ("Access to private member `%s' denied", _tmp19_);
            _tmp21_ = _tmp20_;
            vala_report_error (_tmp16_, _tmp21_);
            _g_free0 (_tmp21_);
            _g_free0 (_tmp19_);
            return;
      }
      member_type = NULL;
      _tmp22_ = vala_member_initializer_get_symbol_reference (init);
      if (VALA_IS_FIELD (_tmp22_)) {
            ValaSymbol* _tmp23_ = NULL;
            ValaField* _tmp24_;
            ValaField* f;
            ValaDataType* _tmp25_ = NULL;
            ValaDataType* _tmp26_;
            _tmp23_ = vala_member_initializer_get_symbol_reference (init);
            _tmp24_ = _vala_code_node_ref0 (VALA_FIELD (_tmp23_));
            f = _tmp24_;
            _tmp25_ = vala_variable_get_variable_type ((ValaVariable*) f);
            _tmp26_ = _vala_code_node_ref0 (_tmp25_);
            _vala_code_node_unref0 (member_type);
            member_type = _tmp26_;
            _vala_code_node_unref0 (f);
      } else {
            ValaSymbol* _tmp27_ = NULL;
            _tmp27_ = vala_member_initializer_get_symbol_reference (init);
            if (VALA_IS_PROPERTY (_tmp27_)) {
                  ValaSymbol* _tmp28_ = NULL;
                  ValaProperty* _tmp29_;
                  ValaProperty* prop;
                  ValaDataType* _tmp30_ = NULL;
                  ValaDataType* _tmp31_;
                  gboolean _tmp32_ = FALSE;
                  ValaPropertyAccessor* _tmp33_ = NULL;
                  _tmp28_ = vala_member_initializer_get_symbol_reference (init);
                  _tmp29_ = _vala_code_node_ref0 (VALA_PROPERTY (_tmp28_));
                  prop = _tmp29_;
                  _tmp30_ = vala_property_get_property_type (prop);
                  _tmp31_ = _vala_code_node_ref0 (_tmp30_);
                  _vala_code_node_unref0 (member_type);
                  member_type = _tmp31_;
                  _tmp33_ = vala_property_get_set_accessor (prop);
                  if (_tmp33_ == NULL) {
                        _tmp32_ = TRUE;
                  } else {
                        ValaPropertyAccessor* _tmp34_ = NULL;
                        gboolean _tmp35_;
                        _tmp34_ = vala_property_get_set_accessor (prop);
                        _tmp35_ = vala_property_accessor_get_writable (_tmp34_);
                        _tmp32_ = !_tmp35_;
                  }
                  if (_tmp32_) {
                        ValaSourceReference* _tmp36_ = NULL;
                        gchar* _tmp37_ = NULL;
                        gchar* _tmp38_;
                        gchar* _tmp39_ = NULL;
                        gchar* _tmp40_;
                        vala_code_node_set_error ((ValaCodeNode*) init, TRUE);
                        _tmp36_ = vala_code_node_get_source_reference ((ValaCodeNode*) init);
                        _tmp37_ = vala_symbol_get_full_name ((ValaSymbol*) prop);
                        _tmp38_ = _tmp37_;
                        _tmp39_ = g_strdup_printf ("Property `%s' is read-only", _tmp38_);
                        _tmp40_ = _tmp39_;
                        vala_report_error (_tmp36_, _tmp40_);
                        _g_free0 (_tmp40_);
                        _g_free0 (_tmp38_);
                        _vala_code_node_unref0 (prop);
                        _vala_code_node_unref0 (member_type);
                        return;
                  }
                  _vala_code_node_unref0 (prop);
            }
      }
      _tmp41_ = vala_member_initializer_get_initializer (init);
      vala_expression_set_formal_target_type (_tmp41_, member_type);
      _tmp42_ = vala_member_initializer_get_initializer (init);
      _tmp43_ = vala_member_initializer_get_initializer (init);
      _tmp44_ = vala_expression_get_formal_target_type (_tmp43_);
      _tmp45_ = vala_data_type_get_actual_type (_tmp44_, type, NULL, (ValaCodeNode*) init);
      _tmp46_ = _tmp45_;
      vala_expression_set_target_type (_tmp42_, _tmp46_);
      _vala_code_node_unref0 (_tmp46_);
      vala_code_node_check ((ValaCodeNode*) init, self->priv->_context);
      _tmp48_ = vala_member_initializer_get_initializer (init);
      _tmp49_ = vala_expression_get_value_type (_tmp48_);
      if (_tmp49_ == NULL) {
            _tmp47_ = TRUE;
      } else {
            ValaExpression* _tmp50_ = NULL;
            ValaDataType* _tmp51_ = NULL;
            ValaExpression* _tmp52_ = NULL;
            ValaDataType* _tmp53_ = NULL;
            gboolean _tmp54_;
            _tmp50_ = vala_member_initializer_get_initializer (init);
            _tmp51_ = vala_expression_get_value_type (_tmp50_);
            _tmp52_ = vala_member_initializer_get_initializer (init);
            _tmp53_ = vala_expression_get_target_type (_tmp52_);
            _tmp54_ = vala_data_type_compatible (_tmp51_, _tmp53_);
            _tmp47_ = !_tmp54_;
      }
      if (_tmp47_) {
            ValaSourceReference* _tmp55_ = NULL;
            const gchar* _tmp56_ = NULL;
            gchar* _tmp57_ = NULL;
            gchar* _tmp58_;
            vala_code_node_set_error ((ValaCodeNode*) init, TRUE);
            _tmp55_ = vala_code_node_get_source_reference ((ValaCodeNode*) init);
            _tmp56_ = vala_member_initializer_get_name (init);
            _tmp57_ = g_strdup_printf ("Invalid type for member `%s'", _tmp56_);
            _tmp58_ = _tmp57_;
            vala_report_error (_tmp55_, _tmp58_);
            _g_free0 (_tmp58_);
            _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;
      ValaTypeSymbol* _tmp0_ = NULL;
      ValaTypeSymbol* _tmp1_;
      ValaStruct* _tmp2_;
      ValaStruct* _result_;
      gboolean _tmp3_ = FALSE;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (type != NULL, NULL);
      _tmp0_ = vala_data_type_get_data_type (type);
      _tmp1_ = _tmp0_;
      _tmp2_ = _vala_code_node_ref0 (VALA_IS_STRUCT (_tmp1_) ? ((ValaStruct*) _tmp1_) : NULL);
      _result_ = _tmp2_;
      if (_result_ == NULL) {
            _tmp3_ = VALA_IS_ENUM_VALUE_TYPE (type);
      } else {
            _tmp3_ = FALSE;
      }
      if (_tmp3_) {
            ValaTypeSymbol* _tmp4_ = NULL;
            ValaStruct* _tmp5_;
            _tmp4_ = vala_data_type_get_data_type (self->int_type);
            _tmp5_ = _vala_code_node_ref0 (VALA_STRUCT (_tmp4_));
            result = _tmp5_;
            _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* _tmp0_ = NULL;
      ValaStruct* left;
      ValaStruct* _tmp1_ = NULL;
      ValaStruct* right;
      gboolean _tmp2_ = FALSE;
      gboolean _tmp3_ = FALSE;
      gboolean _tmp4_ = FALSE;
      gboolean _tmp5_;
      gboolean _tmp10_;
      gboolean _tmp11_;
      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_ = vala_semantic_analyzer_get_arithmetic_struct (self, left_type);
      left = _tmp0_;
      _tmp1_ = vala_semantic_analyzer_get_arithmetic_struct (self, right_type);
      right = _tmp1_;
      if (left == NULL) {
            _tmp2_ = TRUE;
      } else {
            _tmp2_ = right == NULL;
      }
      if (_tmp2_) {
            result = NULL;
            _vala_code_node_unref0 (right);
            _vala_code_node_unref0 (left);
            return result;
      }
      _tmp5_ = vala_struct_is_floating_type (left);
      if (!_tmp5_) {
            gboolean _tmp6_;
            _tmp6_ = vala_struct_is_integer_type (left);
            _tmp4_ = !_tmp6_;
      } else {
            _tmp4_ = FALSE;
      }
      if (_tmp4_) {
            _tmp3_ = TRUE;
      } else {
            gboolean _tmp7_ = FALSE;
            gboolean _tmp8_;
            _tmp8_ = vala_struct_is_floating_type (right);
            if (!_tmp8_) {
                  gboolean _tmp9_;
                  _tmp9_ = vala_struct_is_integer_type (right);
                  _tmp7_ = !_tmp9_;
            } else {
                  _tmp7_ = FALSE;
            }
            _tmp3_ = _tmp7_;
      }
      if (_tmp3_) {
            result = NULL;
            _vala_code_node_unref0 (right);
            _vala_code_node_unref0 (left);
            return result;
      }
      _tmp10_ = vala_struct_is_floating_type (left);
      _tmp11_ = vala_struct_is_floating_type (right);
      if (_tmp10_ == _tmp11_) {
            gint _tmp12_;
            gint _tmp13_;
            _tmp12_ = vala_struct_get_rank (left);
            _tmp13_ = vala_struct_get_rank (right);
            if (_tmp12_ >= _tmp13_) {
                  ValaDataType* _tmp14_;
                  _tmp14_ = _vala_code_node_ref0 (left_type);
                  result = _tmp14_;
                  _vala_code_node_unref0 (right);
                  _vala_code_node_unref0 (left);
                  return result;
            } else {
                  ValaDataType* _tmp15_;
                  _tmp15_ = _vala_code_node_ref0 (right_type);
                  result = _tmp15_;
                  _vala_code_node_unref0 (right);
                  _vala_code_node_unref0 (left);
                  return result;
            }
      } else {
            gboolean _tmp16_;
            _tmp16_ = vala_struct_is_floating_type (left);
            if (_tmp16_) {
                  ValaDataType* _tmp17_;
                  _tmp17_ = _vala_code_node_ref0 (left_type);
                  result = _tmp17_;
                  _vala_code_node_unref0 (right);
                  _vala_code_node_unref0 (left);
                  return result;
            } else {
                  ValaDataType* _tmp18_;
                  _tmp18_ = _vala_code_node_ref0 (right_type);
                  result = _tmp18_;
                  _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* _tmp0_;
      ValaSymbol* sym;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = _vala_code_node_ref0 (self->priv->_current_symbol);
      sym = _tmp0_;
      while (TRUE) {
            ValaSymbol* _tmp2_ = NULL;
            ValaSymbol* _tmp3_;
            if (!(sym != NULL)) {
                  break;
            }
            if (VALA_IS_METHOD (sym)) {
                  ValaMethod* _tmp1_;
                  _tmp1_ = _vala_code_node_ref0 (VALA_METHOD (sym));
                  result = _tmp1_;
                  _vala_code_node_unref0 (sym);
                  return result;
            }
            _tmp2_ = vala_symbol_get_parent_symbol (sym);
            _tmp3_ = _vala_code_node_ref0 (_tmp2_);
            _vala_code_node_unref0 (sym);
            sym = _tmp3_;
      }
      result = NULL;
      _vala_code_node_unref0 (sym);
      return result;
}


ValaMethod* vala_semantic_analyzer_find_parent_method (ValaSemanticAnalyzer* self, ValaSymbol* sym) {
      ValaMethod* result = NULL;
      ValaSymbol* _tmp2_;
      ValaMethod* _tmp3_;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (sym != NULL, NULL);
      while (TRUE) {
            gboolean _tmp0_ = FALSE;
            ValaSymbol* _tmp1_ = NULL;
            if (VALA_IS_BLOCK (sym)) {
                  _tmp0_ = TRUE;
            } else {
                  _tmp0_ = VALA_IS_CONSTANT (sym);
            }
            if (!_tmp0_) {
                  break;
            }
            _tmp1_ = vala_symbol_get_parent_symbol (sym);
            sym = _tmp1_;
      }
      _tmp2_ = sym;
      _tmp3_ = _vala_code_node_ref0 (VALA_IS_METHOD (_tmp2_) ? ((ValaMethod*) _tmp2_) : NULL);
      result = _tmp3_;
      return result;
}


ValaSymbol* vala_semantic_analyzer_find_parent_method_or_property_accessor (ValaSemanticAnalyzer* self, ValaSymbol* sym) {
      ValaSymbol* result = NULL;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (sym != NULL, NULL);
      while (TRUE) {
            gboolean _tmp0_ = FALSE;
            ValaSymbol* _tmp1_ = NULL;
            if (VALA_IS_BLOCK (sym)) {
                  _tmp0_ = TRUE;
            } else {
                  _tmp0_ = VALA_IS_CONSTANT (sym);
            }
            if (!_tmp0_) {
                  break;
            }
            _tmp1_ = vala_symbol_get_parent_symbol (sym);
            sym = _tmp1_;
      }
      if (VALA_IS_METHOD (sym)) {
            ValaSymbol* _tmp2_;
            _tmp2_ = _vala_code_node_ref0 (sym);
            result = _tmp2_;
            return result;
      } else {
            if (VALA_IS_PROPERTY_ACCESSOR (sym)) {
                  ValaSymbol* _tmp3_;
                  _tmp3_ = _vala_code_node_ref0 (sym);
                  result = _tmp3_;
                  return result;
            } else {
                  result = NULL;
                  return result;
            }
      }
}


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


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


ValaCodeContext* vala_semantic_analyzer_get_context (ValaSemanticAnalyzer* self) {
      ValaCodeContext* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_context;
      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_;
      g_return_if_fail (self != NULL);
      _tmp0_ = _vala_code_context_ref0 (value);
      _vala_code_context_unref0 (self->priv->_context);
      self->priv->_context = _tmp0_;
}


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


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


ValaSourceFile* vala_semantic_analyzer_get_current_source_file (ValaSemanticAnalyzer* self) {
      ValaSourceFile* result;
      g_return_val_if_fail (self != NULL, NULL);
      result = self->priv->_current_source_file;
      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_;
      g_return_if_fail (self != NULL);
      _tmp0_ = _vala_source_file_ref0 (value);
      _vala_source_file_unref0 (self->priv->_current_source_file);
      self->priv->_current_source_file = _tmp0_;
}


ValaTypeSymbol* vala_semantic_analyzer_get_current_type_symbol (ValaSemanticAnalyzer* self) {
      ValaTypeSymbol* result;
      ValaSymbol* _tmp0_;
      ValaSymbol* sym;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = _vala_code_node_ref0 (self->priv->_current_symbol);
      sym = _tmp0_;
      while (TRUE) {
            ValaSymbol* _tmp1_ = NULL;
            ValaSymbol* _tmp2_;
            if (!(sym != NULL)) {
                  break;
            }
            if (VALA_IS_TYPESYMBOL (sym)) {
                  result = VALA_TYPESYMBOL (sym);
                  _vala_code_node_unref0 (sym);
                  return result;
            }
            _tmp1_ = vala_symbol_get_parent_symbol (sym);
            _tmp2_ = _vala_code_node_ref0 (_tmp1_);
            _vala_code_node_unref0 (sym);
            sym = _tmp2_;
      }
      result = NULL;
      _vala_code_node_unref0 (sym);
      return result;
}


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


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


ValaMethod* vala_semantic_analyzer_get_current_method (ValaSemanticAnalyzer* self) {
      ValaMethod* result;
      ValaSymbol* sym;
      ValaSymbol* _tmp2_;
      g_return_val_if_fail (self != NULL, NULL);
      sym = self->priv->_current_symbol;
      while (TRUE) {
            gboolean _tmp0_ = FALSE;
            ValaSymbol* _tmp1_ = NULL;
            if (VALA_IS_BLOCK (sym)) {
                  _tmp0_ = TRUE;
            } else {
                  _tmp0_ = VALA_IS_CONSTANT (sym);
            }
            if (!_tmp0_) {
                  break;
            }
            _tmp1_ = vala_symbol_get_parent_symbol (sym);
            sym = _tmp1_;
      }
      _tmp2_ = sym;
      result = VALA_IS_METHOD (_tmp2_) ? ((ValaMethod*) _tmp2_) : NULL;
      return result;
}


ValaMethod* vala_semantic_analyzer_get_current_async_method (ValaSemanticAnalyzer* self) {
      ValaMethod* result;
      ValaSymbol* sym;
      ValaSymbol* _tmp7_;
      g_return_val_if_fail (self != NULL, NULL);
      sym = self->priv->_current_symbol;
      while (TRUE) {
            gboolean _tmp0_ = FALSE;
            gboolean _tmp1_ = FALSE;
            ValaSymbol* _tmp2_;
            ValaMethod* _tmp3_;
            ValaMethod* m;
            gboolean _tmp4_ = FALSE;
            ValaSymbol* _tmp6_ = NULL;
            if (VALA_IS_BLOCK (sym)) {
                  _tmp1_ = TRUE;
            } else {
                  _tmp1_ = VALA_IS_CONSTANT (sym);
            }
            if (_tmp1_) {
                  _tmp0_ = TRUE;
            } else {
                  _tmp0_ = VALA_IS_METHOD (sym);
            }
            if (!_tmp0_) {
                  break;
            }
            _tmp2_ = sym;
            _tmp3_ = _vala_code_node_ref0 (VALA_IS_METHOD (_tmp2_) ? ((ValaMethod*) _tmp2_) : NULL);
            m = _tmp3_;
            if (m != NULL) {
                  gboolean _tmp5_;
                  _tmp5_ = vala_method_get_coroutine (m);
                  _tmp4_ = _tmp5_;
            } else {
                  _tmp4_ = FALSE;
            }
            if (_tmp4_) {
                  _vala_code_node_unref0 (m);
                  break;
            }
            _tmp6_ = vala_symbol_get_parent_symbol (sym);
            sym = _tmp6_;
            _vala_code_node_unref0 (m);
      }
      _tmp7_ = sym;
      result = VALA_IS_METHOD (_tmp7_) ? ((ValaMethod*) _tmp7_) : NULL;
      return result;
}


ValaPropertyAccessor* vala_semantic_analyzer_get_current_property_accessor (ValaSemanticAnalyzer* self) {
      ValaPropertyAccessor* result;
      ValaSymbol* sym;
      ValaSymbol* _tmp2_;
      g_return_val_if_fail (self != NULL, NULL);
      sym = self->priv->_current_symbol;
      while (TRUE) {
            gboolean _tmp0_ = FALSE;
            ValaSymbol* _tmp1_ = NULL;
            if (VALA_IS_BLOCK (sym)) {
                  _tmp0_ = TRUE;
            } else {
                  _tmp0_ = VALA_IS_CONSTANT (sym);
            }
            if (!_tmp0_) {
                  break;
            }
            _tmp1_ = vala_symbol_get_parent_symbol (sym);
            sym = _tmp1_;
      }
      _tmp2_ = sym;
      result = VALA_IS_PROPERTY_ACCESSOR (_tmp2_) ? ((ValaPropertyAccessor*) _tmp2_) : NULL;
      return result;
}


ValaSymbol* vala_semantic_analyzer_get_current_method_or_property_accessor (ValaSemanticAnalyzer* self) {
      ValaSymbol* result;
      ValaSymbol* sym;
      g_return_val_if_fail (self != NULL, NULL);
      sym = self->priv->_current_symbol;
      while (TRUE) {
            gboolean _tmp0_ = FALSE;
            ValaSymbol* _tmp1_ = NULL;
            if (VALA_IS_BLOCK (sym)) {
                  _tmp0_ = TRUE;
            } else {
                  _tmp0_ = VALA_IS_CONSTANT (sym);
            }
            if (!_tmp0_) {
                  break;
            }
            _tmp1_ = vala_symbol_get_parent_symbol (sym);
            sym = _tmp1_;
      }
      if (VALA_IS_METHOD (sym)) {
            result = sym;
            return result;
      } else {
            if (VALA_IS_PROPERTY_ACCESSOR (sym)) {
                  result = sym;
                  return result;
            } else {
                  result = NULL;
                  return result;
            }
      }
}


ValaDataType* vala_semantic_analyzer_get_current_return_type (ValaSemanticAnalyzer* self) {
      ValaDataType* result;
      ValaMethod* _tmp0_ = NULL;
      ValaMethod* _tmp1_;
      ValaMethod* m;
      ValaPropertyAccessor* _tmp3_ = NULL;
      ValaPropertyAccessor* _tmp4_;
      ValaPropertyAccessor* acc;
      gboolean _tmp7_ = FALSE;
      gboolean _tmp8_;
      g_return_val_if_fail (self != NULL, NULL);
      _tmp0_ = vala_semantic_analyzer_get_current_method (self);
      _tmp1_ = _vala_code_node_ref0 (_tmp0_);
      m = _tmp1_;
      if (m != NULL) {
            ValaDataType* _tmp2_ = NULL;
            _tmp2_ = vala_method_get_return_type (m);
            result = _tmp2_;
            _vala_code_node_unref0 (m);
            return result;
      }
      _tmp3_ = vala_semantic_analyzer_get_current_property_accessor (self);
      _tmp4_ = _vala_code_node_ref0 (_tmp3_);
      acc = _tmp4_;
      if (acc != NULL) {
            gboolean _tmp5_;
            _tmp5_ = vala_property_accessor_get_readable (acc);
            if (_tmp5_) {
                  ValaDataType* _tmp6_ = NULL;
                  _tmp6_ = vala_property_accessor_get_value_type (acc);
                  result = _tmp6_;
                  _vala_code_node_unref0 (acc);
                  _vala_code_node_unref0 (m);
                  return result;
            } else {
                  result = self->void_type;
                  _vala_code_node_unref0 (acc);
                  _vala_code_node_unref0 (m);
                  return result;
            }
      }
      _tmp8_ = vala_semantic_analyzer_is_in_constructor (self);
      if (_tmp8_) {
            _tmp7_ = TRUE;
      } else {
            gboolean _tmp9_;
            _tmp9_ = vala_semantic_analyzer_is_in_destructor (self);
            _tmp7_ = _tmp9_;
      }
      if (_tmp7_) {
            result = self->void_type;
            _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);
      VALA_CODE_VISITOR_CLASS (klass)->finalize = vala_semantic_analyzer_finalize;
      g_type_class_add_private (klass, sizeof (ValaSemanticAnalyzerPrivate));
      VALA_CODE_VISITOR_CLASS (klass)->visit_source_file = vala_semantic_analyzer_real_visit_source_file;
}


static void vala_semantic_analyzer_instance_init (ValaSemanticAnalyzer * self) {
      ValaVoidType* _tmp0_ = NULL;
      ValaArrayList* _tmp1_ = NULL;
      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_ = vala_array_list_new (VALA_TYPE_CODE_NODE, (GBoxedCopyFunc) vala_code_node_ref, vala_code_node_unref, g_direct_equal);
      self->replaced_nodes = (ValaList*) _tmp1_;
}


static void vala_semantic_analyzer_finalize (ValaCodeVisitor* obj) {
      ValaSemanticAnalyzer * self;
      self = VALA_SEMANTIC_ANALYZER (obj);
      _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->object_type);
      _vala_code_node_unref0 (self->gvalue_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_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;
}




Generated by  Doxygen 1.6.0   Back to index