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

valacodewriter.c

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

/* valacodewriter.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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gstdio.h>
#include <version.h>
#include <valagee.h>
#include <float.h>
#include <math.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_CODE_WRITER (vala_code_writer_get_type ())
#define VALA_CODE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CODE_WRITER, ValaCodeWriter))
#define VALA_CODE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CODE_WRITER, ValaCodeWriterClass))
#define VALA_IS_CODE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CODE_WRITER))
#define VALA_IS_CODE_WRITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CODE_WRITER))
#define VALA_CODE_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CODE_WRITER, ValaCodeWriterClass))

typedef struct _ValaCodeWriter ValaCodeWriter;
typedef struct _ValaCodeWriterClass ValaCodeWriterClass;
typedef struct _ValaCodeWriterPrivate ValaCodeWriterPrivate;

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

typedef struct _ValaCodeContext ValaCodeContext;
typedef struct _ValaCodeContextClass ValaCodeContextClass;

#define VALA_TYPE_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_CODE_WRITER_TYPE (vala_code_writer_type_get_type ())
#define _vala_code_context_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_context_unref (var), NULL)))
#define _fclose0(var) ((var == NULL) ? NULL : (var = (fclose (var), NULL)))
#define _vala_scope_unref0(var) ((var == NULL) ? NULL : (var = (vala_scope_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

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

typedef struct _ValaSourceReference ValaSourceReference;
typedef struct _ValaSourceReferenceClass ValaSourceReferenceClass;
#define _g_mapped_file_free0(var) ((var == NULL) ? NULL : (var = (g_mapped_file_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL)))

#define 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_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_PARAMETER_DIRECTION (vala_parameter_direction_get_type ())
#define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))

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

#define VALA_TYPE_STATEMENT (vala_statement_get_type ())
#define VALA_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_STATEMENT, ValaStatement))
#define VALA_IS_STATEMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_STATEMENT))
#define VALA_STATEMENT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), VALA_TYPE_STATEMENT, ValaStatementIface))

typedef struct _ValaStatement ValaStatement;
typedef struct _ValaStatementIface ValaStatementIface;

#define VALA_TYPE_UNARY_OPERATOR (vala_unary_operator_get_type ())

#define VALA_TYPE_BINARY_OPERATOR (vala_binary_operator_get_type ())

#define VALA_TYPE_TOKEN_TYPE (vala_token_type_get_type ())

#define VALA_TYPE_SYMBOL_ACCESSIBILITY (vala_symbol_accessibility_get_type ())
typedef struct _ValaCodeNodePrivate ValaCodeNodePrivate;

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

typedef struct _ValaCodeGenerator ValaCodeGenerator;
typedef struct _ValaCodeGeneratorClass ValaCodeGeneratorClass;
typedef struct _ValaAttributePrivate ValaAttributePrivate;
#define _vala_iterator_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterator_unref (var), NULL)))

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 _ValaCodeWriter {
      ValaCodeVisitor parent_instance;
      ValaCodeWriterPrivate * priv;
};

struct _ValaCodeWriterClass {
      ValaCodeVisitorClass parent_class;
};

typedef enum  {
      VALA_CODE_WRITER_TYPE_EXTERNAL,
      VALA_CODE_WRITER_TYPE_INTERNAL,
      VALA_CODE_WRITER_TYPE_FAST,
      VALA_CODE_WRITER_TYPE_DUMP
} ValaCodeWriterType;

01168 struct _ValaCodeWriterPrivate {
      ValaCodeContext* context;
      FILE* stream;
      gint indent;
      gboolean bol;
      ValaScope* current_scope;
      ValaCodeWriterType type;
      gchar* override_header;
      gchar* header_to_override;
};

typedef enum  {
      VALA_MEMBER_BINDING_INSTANCE,
      VALA_MEMBER_BINDING_CLASS,
      VALA_MEMBER_BINDING_STATIC
} ValaMemberBinding;

typedef enum  {
      VALA_PARAMETER_DIRECTION_IN,
      VALA_PARAMETER_DIRECTION_OUT,
      VALA_PARAMETER_DIRECTION_REF
} ValaParameterDirection;

typedef enum  {
      VALA_PROFILE_POSIX,
      VALA_PROFILE_GOBJECT,
      VALA_PROFILE_DOVA
} ValaProfile;

struct _ValaStatementIface {
      GTypeInterface parent_iface;
};

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_BINARY_OPERATOR_NONE,
      VALA_BINARY_OPERATOR_PLUS,
      VALA_BINARY_OPERATOR_MINUS,
      VALA_BINARY_OPERATOR_MUL,
      VALA_BINARY_OPERATOR_DIV,
      VALA_BINARY_OPERATOR_MOD,
      VALA_BINARY_OPERATOR_SHIFT_LEFT,
      VALA_BINARY_OPERATOR_SHIFT_RIGHT,
      VALA_BINARY_OPERATOR_LESS_THAN,
      VALA_BINARY_OPERATOR_GREATER_THAN,
      VALA_BINARY_OPERATOR_LESS_THAN_OR_EQUAL,
      VALA_BINARY_OPERATOR_GREATER_THAN_OR_EQUAL,
      VALA_BINARY_OPERATOR_EQUALITY,
      VALA_BINARY_OPERATOR_INEQUALITY,
      VALA_BINARY_OPERATOR_BITWISE_AND,
      VALA_BINARY_OPERATOR_BITWISE_OR,
      VALA_BINARY_OPERATOR_BITWISE_XOR,
      VALA_BINARY_OPERATOR_AND,
      VALA_BINARY_OPERATOR_OR,
      VALA_BINARY_OPERATOR_IN,
      VALA_BINARY_OPERATOR_COALESCE
} ValaBinaryOperator;

typedef enum  {
      VALA_TOKEN_TYPE_NONE,
      VALA_TOKEN_TYPE_ABSTRACT,
      VALA_TOKEN_TYPE_AS,
      VALA_TOKEN_TYPE_ASSIGN,
      VALA_TOKEN_TYPE_ASSIGN_ADD,
      VALA_TOKEN_TYPE_ASSIGN_BITWISE_AND,
      VALA_TOKEN_TYPE_ASSIGN_BITWISE_OR,
      VALA_TOKEN_TYPE_ASSIGN_BITWISE_XOR,
      VALA_TOKEN_TYPE_ASSIGN_DIV,
      VALA_TOKEN_TYPE_ASSIGN_MUL,
      VALA_TOKEN_TYPE_ASSIGN_PERCENT,
      VALA_TOKEN_TYPE_ASSIGN_SHIFT_LEFT,
      VALA_TOKEN_TYPE_ASSIGN_SUB,
      VALA_TOKEN_TYPE_ASYNC,
      VALA_TOKEN_TYPE_BASE,
      VALA_TOKEN_TYPE_BITWISE_AND,
      VALA_TOKEN_TYPE_BITWISE_OR,
      VALA_TOKEN_TYPE_BREAK,
      VALA_TOKEN_TYPE_CARRET,
      VALA_TOKEN_TYPE_CASE,
      VALA_TOKEN_TYPE_CATCH,
      VALA_TOKEN_TYPE_CHARACTER_LITERAL,
      VALA_TOKEN_TYPE_CLASS,
      VALA_TOKEN_TYPE_CLOSE_BRACE,
      VALA_TOKEN_TYPE_CLOSE_BRACKET,
      VALA_TOKEN_TYPE_CLOSE_PARENS,
      VALA_TOKEN_TYPE_CLOSE_REGEX_LITERAL,
      VALA_TOKEN_TYPE_CLOSE_TEMPLATE,
      VALA_TOKEN_TYPE_COLON,
      VALA_TOKEN_TYPE_COMMA,
      VALA_TOKEN_TYPE_CONST,
      VALA_TOKEN_TYPE_CONSTRUCT,
      VALA_TOKEN_TYPE_CONTINUE,
      VALA_TOKEN_TYPE_DEFAULT,
      VALA_TOKEN_TYPE_DELEGATE,
      VALA_TOKEN_TYPE_DELETE,
      VALA_TOKEN_TYPE_DIV,
      VALA_TOKEN_TYPE_DO,
      VALA_TOKEN_TYPE_DOUBLE_COLON,
      VALA_TOKEN_TYPE_DOT,
      VALA_TOKEN_TYPE_DYNAMIC,
      VALA_TOKEN_TYPE_ELLIPSIS,
      VALA_TOKEN_TYPE_ELSE,
      VALA_TOKEN_TYPE_ENUM,
      VALA_TOKEN_TYPE_ENSURES,
      VALA_TOKEN_TYPE_ERRORDOMAIN,
      VALA_TOKEN_TYPE_EOF,
      VALA_TOKEN_TYPE_EXTERN,
      VALA_TOKEN_TYPE_FALSE,
      VALA_TOKEN_TYPE_FINALLY,
      VALA_TOKEN_TYPE_FOR,
      VALA_TOKEN_TYPE_FOREACH,
      VALA_TOKEN_TYPE_GET,
      VALA_TOKEN_TYPE_HASH,
      VALA_TOKEN_TYPE_IDENTIFIER,
      VALA_TOKEN_TYPE_IF,
      VALA_TOKEN_TYPE_IN,
      VALA_TOKEN_TYPE_INLINE,
      VALA_TOKEN_TYPE_INTEGER_LITERAL,
      VALA_TOKEN_TYPE_INTERFACE,
      VALA_TOKEN_TYPE_INTERNAL,
      VALA_TOKEN_TYPE_INTERR,
      VALA_TOKEN_TYPE_IS,
      VALA_TOKEN_TYPE_LAMBDA,
      VALA_TOKEN_TYPE_LOCK,
      VALA_TOKEN_TYPE_MINUS,
      VALA_TOKEN_TYPE_NAMESPACE,
      VALA_TOKEN_TYPE_NEW,
      VALA_TOKEN_TYPE_NULL,
      VALA_TOKEN_TYPE_OUT,
      VALA_TOKEN_TYPE_OP_AND,
      VALA_TOKEN_TYPE_OP_COALESCING,
      VALA_TOKEN_TYPE_OP_DEC,
      VALA_TOKEN_TYPE_OP_EQ,
      VALA_TOKEN_TYPE_OP_GE,
      VALA_TOKEN_TYPE_OP_GT,
      VALA_TOKEN_TYPE_OP_INC,
      VALA_TOKEN_TYPE_OP_LE,
      VALA_TOKEN_TYPE_OP_LT,
      VALA_TOKEN_TYPE_OP_NE,
      VALA_TOKEN_TYPE_OP_NEG,
      VALA_TOKEN_TYPE_OP_OR,
      VALA_TOKEN_TYPE_OP_PTR,
      VALA_TOKEN_TYPE_OP_SHIFT_LEFT,
      VALA_TOKEN_TYPE_OPEN_BRACE,
      VALA_TOKEN_TYPE_OPEN_BRACKET,
      VALA_TOKEN_TYPE_OPEN_PARENS,
      VALA_TOKEN_TYPE_OPEN_REGEX_LITERAL,
      VALA_TOKEN_TYPE_OPEN_TEMPLATE,
      VALA_TOKEN_TYPE_OVERRIDE,
      VALA_TOKEN_TYPE_OWNED,
      VALA_TOKEN_TYPE_PARAMS,
      VALA_TOKEN_TYPE_PERCENT,
      VALA_TOKEN_TYPE_PLUS,
      VALA_TOKEN_TYPE_PRIVATE,
      VALA_TOKEN_TYPE_PROTECTED,
      VALA_TOKEN_TYPE_PUBLIC,
      VALA_TOKEN_TYPE_REAL_LITERAL,
      VALA_TOKEN_TYPE_REF,
      VALA_TOKEN_TYPE_REGEX_LITERAL,
      VALA_TOKEN_TYPE_REQUIRES,
      VALA_TOKEN_TYPE_RETURN,
      VALA_TOKEN_TYPE_SEALED,
      VALA_TOKEN_TYPE_SEMICOLON,
      VALA_TOKEN_TYPE_SET,
      VALA_TOKEN_TYPE_SIGNAL,
      VALA_TOKEN_TYPE_SIZEOF,
      VALA_TOKEN_TYPE_STAR,
      VALA_TOKEN_TYPE_STATIC,
      VALA_TOKEN_TYPE_STRING_LITERAL,
      VALA_TOKEN_TYPE_STRUCT,
      VALA_TOKEN_TYPE_SWITCH,
      VALA_TOKEN_TYPE_TEMPLATE_STRING_LITERAL,
      VALA_TOKEN_TYPE_THIS,
      VALA_TOKEN_TYPE_THROW,
      VALA_TOKEN_TYPE_THROWS,
      VALA_TOKEN_TYPE_TILDE,
      VALA_TOKEN_TYPE_TRUE,
      VALA_TOKEN_TYPE_TRY,
      VALA_TOKEN_TYPE_TYPEOF,
      VALA_TOKEN_TYPE_UNOWNED,
      VALA_TOKEN_TYPE_USING,
      VALA_TOKEN_TYPE_VAR,
      VALA_TOKEN_TYPE_VERBATIM_STRING_LITERAL,
      VALA_TOKEN_TYPE_VIRTUAL,
      VALA_TOKEN_TYPE_VOID,
      VALA_TOKEN_TYPE_VOLATILE,
      VALA_TOKEN_TYPE_WEAK,
      VALA_TOKEN_TYPE_WHILE,
      VALA_TOKEN_TYPE_YIELD
} ValaTokenType;

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

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

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

struct _ValaAttribute {
      ValaCodeNode parent_instance;
      ValaAttributePrivate * priv;
      ValaMap* args;
};

struct _ValaAttributeClass {
      ValaCodeNodeClass parent_class;
};


static gpointer vala_code_writer_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_code_writer_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;
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;
GType vala_code_writer_type_get_type (void) G_GNUC_CONST;
#define VALA_CODE_WRITER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALA_TYPE_CODE_WRITER, ValaCodeWriterPrivate))
enum  {
      VALA_CODE_WRITER_DUMMY_PROPERTY
};
ValaCodeWriter* vala_code_writer_new (ValaCodeWriterType type);
ValaCodeWriter* vala_code_writer_construct (GType object_type, ValaCodeWriterType type);
ValaCodeVisitor* vala_code_visitor_construct (GType object_type);
void vala_code_writer_set_cheader_override (ValaCodeWriter* self, const gchar* original, const gchar* replacement);
void vala_code_writer_write_file (ValaCodeWriter* self, ValaCodeContext* context, const gchar* filename);
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;
void vala_report_error (ValaSourceReference* source, const gchar* message);
gboolean vala_code_context_get_version_header (ValaCodeContext* self);
static void vala_code_writer_write_string (ValaCodeWriter* self, const gchar* s);
static void vala_code_writer_write_newline (ValaCodeWriter* self);
ValaNamespace* vala_code_context_get_root (ValaCodeContext* self);
ValaScope* vala_symbol_get_scope (ValaSymbol* self);
void vala_code_context_accept (ValaCodeContext* self, ValaCodeVisitor* visitor);
static void vala_code_writer_real_visit_using_directive (ValaCodeVisitor* base, ValaUsingDirective* ns);
ValaSymbol* vala_using_directive_get_namespace_symbol (ValaUsingDirective* self);
const gchar* vala_symbol_get_name (ValaSymbol* self);
static void vala_code_writer_real_visit_namespace (ValaCodeVisitor* base, ValaNamespace* ns);
gboolean vala_symbol_get_external_package (ValaSymbol* self);
void vala_code_node_accept_children (ValaCodeNode* self, ValaCodeVisitor* visitor);
static void vala_code_writer_write_indent (ValaCodeWriter* self);
gchar* vala_symbol_get_cprefix (ValaSymbol* self);
gchar* vala_symbol_get_lower_case_cprefix (ValaSymbol* self);
ValaSourceReference* vala_code_node_get_source_reference (ValaCodeNode* self);
ValaSymbol* vala_symbol_get_parent_symbol (ValaSymbol* self);
ValaSourceFile* vala_source_reference_get_file (ValaSourceReference* self);
const gchar* vala_source_file_get_gir_namespace (ValaSourceFile* self);
const gchar* vala_source_file_get_gir_version (ValaSourceFile* self);
static void vala_code_writer_write_attributes (ValaCodeWriter* self, ValaCodeNode* node);
static void vala_code_writer_write_identifier (ValaCodeWriter* self, const gchar* s);
static void vala_code_writer_write_begin_block (ValaCodeWriter* self);
static void vala_code_writer_visit_sorted (ValaCodeWriter* self, ValaList* symbols);
ValaList* vala_namespace_get_namespaces (ValaNamespace* self);
ValaList* vala_namespace_get_classes (ValaNamespace* self);
ValaList* vala_namespace_get_interfaces (ValaNamespace* self);
ValaList* vala_namespace_get_structs (ValaNamespace* self);
ValaList* vala_namespace_get_enums (ValaNamespace* self);
ValaList* vala_namespace_get_error_domains (ValaNamespace* self);
ValaList* vala_namespace_get_delegates (ValaNamespace* self);
ValaList* vala_namespace_get_fields (ValaNamespace* self);
ValaList* vala_namespace_get_constants (ValaNamespace* self);
ValaList* vala_namespace_get_methods (ValaNamespace* self);
ValaScope* vala_scope_get_parent_scope (ValaScope* self);
static void vala_code_writer_write_end_block (ValaCodeWriter* self);
static gchar* vala_code_writer_get_cheaders (ValaCodeWriter* self, ValaSymbol* cl);
ValaList* vala_symbol_get_cheader_filenames (ValaSymbol* self);
static void vala_code_writer_emit_deprecated_attribute (ValaCodeWriter* self, ValaSymbol* symbol);
gboolean vala_symbol_get_deprecated (ValaSymbol* self);
const gchar* vala_symbol_get_deprecated_since (ValaSymbol* self);
const gchar* vala_symbol_get_replacement (ValaSymbol* self);
static void vala_code_writer_emit_experimental_attribute (ValaCodeWriter* self, ValaSymbol* symbol);
gboolean vala_symbol_get_experimental (ValaSymbol* self);
static void vala_code_writer_real_visit_class (ValaCodeVisitor* base, ValaClass* cl);
static gboolean vala_code_writer_check_accessibility (ValaCodeWriter* self, ValaSymbol* sym);
gboolean vala_class_get_is_compact (ValaClass* self);
gboolean vala_class_get_is_immutable (ValaClass* self);
gboolean vala_typesymbol_is_reference_counting (ValaTypeSymbol* self);
ValaClass* vala_class_get_base_class (ValaClass* self);
gchar* vala_typesymbol_get_ref_function (ValaTypeSymbol* self);
gboolean vala_class_get_ref_function_void (ValaClass* self);
gchar* vala_typesymbol_get_unref_function (ValaTypeSymbol* self);
gchar* vala_typesymbol_get_dup_function (ValaTypeSymbol* self);
gchar* vala_typesymbol_get_free_function (ValaTypeSymbol* self);
gchar* vala_class_get_default_free_function (ValaClass* self);
gchar* vala_typesymbol_get_cname (ValaTypeSymbol* self, gboolean const_type);
gchar* vala_class_get_default_cname (ValaClass* self);
const gchar* vala_class_get_const_cname (ValaClass* self);
const gchar* vala_class_get_type_check_function (ValaClass* self);
gchar* vala_typesymbol_get_type_id (ValaTypeSymbol* self);
gchar* vala_class_get_default_type_id (ValaClass* self);
gchar* vala_typesymbol_get_param_spec_function (ValaTypeSymbol* self);
gchar* vala_class_get_default_param_spec_function (ValaClass* self);
static void vala_code_writer_write_accessibility (ValaCodeWriter* self, ValaSymbol* sym);
gboolean vala_class_get_is_abstract (ValaClass* self);
ValaList* vala_object_type_symbol_get_type_parameters (ValaObjectTypeSymbol* self);
ValaList* vala_class_get_base_types (ValaClass* self);
static void vala_code_writer_write_type (ValaCodeWriter* self, ValaDataType* type);
ValaList* vala_class_get_classes (ValaClass* self);
ValaList* vala_class_get_structs (ValaClass* self);
ValaList* vala_class_get_enums (ValaClass* self);
ValaList* vala_class_get_delegates (ValaClass* self);
ValaList* vala_class_get_fields (ValaClass* self);
ValaList* vala_class_get_constants (ValaClass* self);
ValaList* vala_object_type_symbol_get_methods (ValaObjectTypeSymbol* self);
ValaList* vala_object_type_symbol_get_properties (ValaObjectTypeSymbol* self);
ValaList* vala_object_type_symbol_get_signals (ValaObjectTypeSymbol* self);
ValaConstructor* vala_class_get_constructor (ValaClass* self);
void vala_code_node_accept (ValaCodeNode* self, ValaCodeVisitor* visitor);
static void vala_code_writer_real_visit_struct (ValaCodeVisitor* base, ValaStruct* st);
gboolean vala_struct_get_is_immutable (ValaStruct* self);
gchar* vala_struct_get_default_cname (ValaStruct* self);
gboolean vala_struct_get_has_type_id (ValaStruct* self);
gboolean vala_struct_is_simple_type (ValaStruct* self);
gboolean vala_struct_get_has_copy_function (ValaStruct* self);
gboolean vala_struct_get_has_destroy_function (ValaStruct* self);
gboolean vala_struct_is_integer_type (ValaStruct* self);
gint vala_struct_get_rank (ValaStruct* self);
gboolean vala_struct_is_floating_type (ValaStruct* self);
ValaDataType* vala_struct_get_base_type (ValaStruct* self);
ValaList* vala_struct_get_fields (ValaStruct* self);
ValaList* vala_struct_get_constants (ValaStruct* self);
ValaList* vala_struct_get_methods (ValaStruct* self);
ValaList* vala_struct_get_properties (ValaStruct* self);
static void vala_code_writer_real_visit_interface (ValaCodeVisitor* base, ValaInterface* iface);
gchar* vala_interface_get_lower_case_csuffix (ValaInterface* self);
gchar* vala_interface_get_default_lower_case_csuffix (ValaInterface* self);
gchar* vala_interface_get_type_cname (ValaInterface* self);
gchar* vala_interface_get_default_type_cname (ValaInterface* self);
ValaList* vala_interface_get_prerequisites (ValaInterface* self);
ValaList* vala_interface_get_classes (ValaInterface* self);
ValaList* vala_interface_get_structs (ValaInterface* self);
ValaList* vala_interface_get_enums (ValaInterface* self);
ValaList* vala_interface_get_delegates (ValaInterface* self);
ValaList* vala_interface_get_fields (ValaInterface* self);
ValaList* vala_interface_get_constants (ValaInterface* self);
static void vala_code_writer_real_visit_enum (ValaCodeVisitor* base, ValaEnum* en);
gboolean vala_enum_get_has_type_id (ValaEnum* self);
gboolean vala_enum_get_is_flags (ValaEnum* self);
ValaList* vala_enum_get_values (ValaEnum* self);
gchar* vala_constant_get_cname (ValaConstant* self);
gchar* vala_constant_get_default_cname (ValaConstant* self);
ValaExpression* vala_constant_get_value (ValaConstant* self);
ValaList* vala_enum_get_methods (ValaEnum* self);
ValaList* vala_enum_get_constants (ValaEnum* self);
static void vala_code_writer_real_visit_error_domain (ValaCodeVisitor* base, ValaErrorDomain* edomain);
static void vala_code_writer_real_visit_error_code (ValaCodeVisitor* base, ValaErrorCode* ecode);
static void vala_code_writer_real_visit_constant (ValaCodeVisitor* base, ValaConstant* c);
ValaDataType* vala_constant_get_type_reference (ValaConstant* self);
static void vala_code_writer_real_visit_field (ValaCodeVisitor* base, ValaField* f);
gchar* vala_field_get_cname (ValaField* self);
gchar* vala_field_get_default_cname (ValaField* self);
gchar* vala_field_get_ctype (ValaField* self);
gchar* vala_variable_get_array_length_cname (ValaVariable* self);
const gchar* vala_variable_get_array_length_type (ValaVariable* self);
gboolean vala_variable_get_no_array_length (ValaVariable* self);
ValaDataType* vala_variable_get_variable_type (ValaVariable* self);
GType vala_reference_type_get_type (void) G_GNUC_CONST;
GType vala_array_type_get_type (void) G_GNUC_CONST;
gboolean vala_variable_get_array_null_terminated (ValaVariable* self);
GType vala_member_binding_get_type (void) G_GNUC_CONST;
ValaMemberBinding vala_field_get_binding (ValaField* self);
gboolean vala_data_type_is_weak (ValaDataType* self);
static void vala_code_writer_write_error_domains (ValaCodeWriter* self, ValaList* error_domains);
static gboolean vala_code_writer_float_equal (ValaCodeWriter* self, gdouble d1, gdouble d2);
static void vala_code_writer_write_params (ValaCodeWriter* self, ValaList* params);
gboolean vala_parameter_get_ellipsis (ValaParameter* self);
gdouble vala_parameter_get_cparameter_position (ValaParameter* self);
const gchar* vala_parameter_get_ctype (ValaParameter* self);
gdouble vala_parameter_get_carray_length_parameter_position (ValaParameter* self);
gdouble vala_parameter_get_cdelegate_target_parameter_position (ValaParameter* self);
gboolean vala_parameter_get_params_array (ValaParameter* self);
GType vala_parameter_direction_get_type (void) G_GNUC_CONST;
ValaParameterDirection vala_parameter_get_direction (ValaParameter* self);
gboolean vala_data_type_get_value_owned (ValaDataType* self);
ValaExpression* vala_variable_get_initializer (ValaVariable* self);
static void vala_code_writer_real_visit_delegate (ValaCodeVisitor* base, ValaDelegate* cb);
gboolean vala_delegate_get_has_target (ValaDelegate* self);
gdouble vala_delegate_get_cinstance_parameter_position (ValaDelegate* self);
static void vala_code_writer_write_return_type (ValaCodeWriter* self, ValaDataType* type);
ValaDataType* vala_delegate_get_return_type (ValaDelegate* self);
ValaList* vala_delegate_get_type_parameters (ValaDelegate* self);
ValaList* vala_delegate_get_parameters (ValaDelegate* self);
ValaList* vala_code_node_get_error_types (ValaCodeNode* self);
static void vala_code_writer_real_visit_constructor (ValaCodeVisitor* base, ValaConstructor* c);
static void vala_code_writer_write_code_block (ValaCodeWriter* self, ValaBlock* block);
ValaBlock* vala_subroutine_get_body (ValaSubroutine* self);
static void vala_code_writer_real_visit_method (ValaCodeVisitor* base, ValaMethod* m);
ValaMethod* vala_method_get_base_interface_method (ValaMethod* self);
gboolean vala_method_get_is_abstract (ValaMethod* self);
gboolean vala_method_get_is_virtual (ValaMethod* self);
GType vala_attribute_get_type (void) G_GNUC_CONST;
ValaAttribute* vala_code_node_get_attribute (ValaCodeNode* self, const gchar* name);
gboolean vala_method_get_returns_modified_pointer (ValaMethod* self);
gboolean vala_method_get_printf_format (ValaMethod* self);
gboolean vala_method_get_scanf_format (ValaMethod* self);
gchar* vala_method_get_cname (ValaMethod* self);
gchar* vala_method_get_default_cname (ValaMethod* self);
gdouble vala_method_get_cinstance_parameter_position (ValaMethod* self);
gboolean vala_method_get_no_array_length (ValaMethod* self);
ValaDataType* vala_method_get_return_type (ValaMethod* self);
gdouble vala_method_get_carray_length_parameter_position (ValaMethod* self);
gboolean vala_method_get_array_null_terminated (ValaMethod* self);
const gchar* vala_method_get_array_length_type (ValaMethod* self);
gdouble vala_method_get_cdelegate_target_parameter_position (ValaMethod* self);
const gchar* vala_method_get_vfunc_name (ValaMethod* self);
gboolean vala_method_get_coroutine (ValaMethod* self);
gchar* vala_method_get_finish_cname (ValaMethod* self);
gchar* vala_method_get_default_finish_cname (ValaMethod* self);
const gchar* vala_method_get_sentinel (ValaMethod* self);
#define VALA_METHOD_DEFAULT_SENTINEL "NULL"
const gchar* vala_creation_method_get_custom_return_type_cname (ValaCreationMethod* self);
gboolean vala_method_get_has_new_function (ValaMethod* self);
gboolean vala_method_get_has_construct_function (ValaMethod* self);
gchar* vala_method_get_real_cname (ValaMethod* self);
gchar* vala_creation_method_get_default_construct_function (ValaCreationMethod* self);
ValaMemberBinding vala_method_get_binding (ValaMethod* self);
gboolean vala_method_get_overrides (ValaMethod* self);
gboolean vala_symbol_get_hides (ValaSymbol* self);
ValaList* vala_method_get_type_parameters (ValaMethod* self);
ValaList* vala_method_get_parameters (ValaMethod* self);
GType vala_profile_get_type (void) G_GNUC_CONST;
ValaProfile vala_code_context_get_profile (ValaCodeContext* self);
static void vala_code_writer_real_visit_creation_method (ValaCodeVisitor* base, ValaCreationMethod* m);
void vala_code_visitor_visit_method (ValaCodeVisitor* self, ValaMethod* m);
static void vala_code_writer_real_visit_property (ValaCodeVisitor* base, ValaProperty* prop);
ValaProperty* vala_property_get_base_interface_property (ValaProperty* self);
gboolean vala_property_get_is_abstract (ValaProperty* self);
gboolean vala_property_get_is_virtual (ValaProperty* self);
gboolean vala_property_get_no_accessor_method (ValaProperty* self);
ValaDataType* vala_property_get_property_type (ValaProperty* self);
gboolean vala_property_get_no_array_length (ValaProperty* self);
gboolean vala_property_get_array_null_terminated (ValaProperty* self);
ValaMemberBinding vala_property_get_binding (ValaProperty* self);
gboolean vala_property_get_overrides (ValaProperty* self);
ValaPropertyAccessor* vala_property_get_get_accessor (ValaProperty* self);
gchar* vala_property_accessor_get_cname (ValaPropertyAccessor* self);
gchar* vala_property_accessor_get_default_cname (ValaPropertyAccessor* self);
static void vala_code_writer_write_property_accessor_accessibility (ValaCodeWriter* self, ValaSymbol* sym);
ValaDataType* vala_property_accessor_get_value_type (ValaPropertyAccessor* self);
gboolean vala_data_type_is_disposable (ValaDataType* self);
ValaPropertyAccessor* vala_property_get_set_accessor (ValaProperty* self);
gboolean vala_property_accessor_get_writable (ValaPropertyAccessor* self);
gboolean vala_property_accessor_get_construction (ValaPropertyAccessor* self);
static void vala_code_writer_real_visit_signal (ValaCodeVisitor* base, ValaSignal* sig);
gboolean vala_signal_get_has_emitter (ValaSignal* self);
gboolean vala_signal_get_is_virtual (ValaSignal* self);
ValaDataType* vala_signal_get_return_type (ValaSignal* self);
ValaList* vala_signal_get_parameters (ValaSignal* self);
static void vala_code_writer_real_visit_block (ValaCodeVisitor* base, ValaBlock* b);
GType vala_statement_get_type (void) G_GNUC_CONST;
ValaList* vala_block_get_statements (ValaBlock* self);
static void vala_code_writer_real_visit_empty_statement (ValaCodeVisitor* base, ValaEmptyStatement* stmt);
static void vala_code_writer_real_visit_declaration_statement (ValaCodeVisitor* base, ValaDeclarationStatement* stmt);
ValaSymbol* vala_declaration_statement_get_declaration (ValaDeclarationStatement* self);
static void vala_code_writer_real_visit_local_variable (ValaCodeVisitor* base, ValaLocalVariable* local);
static void vala_code_writer_real_visit_initializer_list (ValaCodeVisitor* base, ValaInitializerList* list);
ValaList* vala_initializer_list_get_initializers (ValaInitializerList* self);
static void vala_code_writer_real_visit_expression_statement (ValaCodeVisitor* base, ValaExpressionStatement* stmt);
ValaExpression* vala_expression_statement_get_expression (ValaExpressionStatement* self);
static void vala_code_writer_real_visit_if_statement (ValaCodeVisitor* base, ValaIfStatement* stmt);
ValaExpression* vala_if_statement_get_condition (ValaIfStatement* self);
ValaBlock* vala_if_statement_get_true_statement (ValaIfStatement* self);
ValaBlock* vala_if_statement_get_false_statement (ValaIfStatement* self);
static void vala_code_writer_real_visit_switch_statement (ValaCodeVisitor* base, ValaSwitchStatement* stmt);
ValaExpression* vala_switch_statement_get_expression (ValaSwitchStatement* self);
ValaList* vala_switch_statement_get_sections (ValaSwitchStatement* self);
static void vala_code_writer_real_visit_switch_section (ValaCodeVisitor* base, ValaSwitchSection* section);
ValaList* vala_switch_section_get_labels (ValaSwitchSection* self);
void vala_code_visitor_visit_block (ValaCodeVisitor* self, ValaBlock* b);
static void vala_code_writer_real_visit_switch_label (ValaCodeVisitor* base, ValaSwitchLabel* label);
ValaExpression* vala_switch_label_get_expression (ValaSwitchLabel* self);
static void vala_code_writer_real_visit_loop (ValaCodeVisitor* base, ValaLoop* stmt);
ValaBlock* vala_loop_get_body (ValaLoop* self);
static void vala_code_writer_real_visit_while_statement (ValaCodeVisitor* base, ValaWhileStatement* stmt);
ValaExpression* vala_while_statement_get_condition (ValaWhileStatement* self);
ValaBlock* vala_while_statement_get_body (ValaWhileStatement* self);
static void vala_code_writer_real_visit_do_statement (ValaCodeVisitor* base, ValaDoStatement* stmt);
ValaBlock* vala_do_statement_get_body (ValaDoStatement* self);
ValaExpression* vala_do_statement_get_condition (ValaDoStatement* self);
static void vala_code_writer_real_visit_for_statement (ValaCodeVisitor* base, ValaForStatement* stmt);
ValaList* vala_for_statement_get_initializer (ValaForStatement* self);
ValaExpression* vala_for_statement_get_condition (ValaForStatement* self);
ValaList* vala_for_statement_get_iterator (ValaForStatement* self);
ValaBlock* vala_for_statement_get_body (ValaForStatement* self);
static void vala_code_writer_real_visit_foreach_statement (ValaCodeVisitor* base, ValaForeachStatement* stmt);
static void vala_code_writer_real_visit_break_statement (ValaCodeVisitor* base, ValaBreakStatement* stmt);
static void vala_code_writer_real_visit_continue_statement (ValaCodeVisitor* base, ValaContinueStatement* stmt);
static void vala_code_writer_real_visit_return_statement (ValaCodeVisitor* base, ValaReturnStatement* stmt);
ValaExpression* vala_return_statement_get_return_expression (ValaReturnStatement* self);
static void vala_code_writer_real_visit_yield_statement (ValaCodeVisitor* base, ValaYieldStatement* y);
ValaExpression* vala_yield_statement_get_yield_expression (ValaYieldStatement* self);
static void vala_code_writer_real_visit_throw_statement (ValaCodeVisitor* base, ValaThrowStatement* stmt);
ValaExpression* vala_throw_statement_get_error_expression (ValaThrowStatement* self);
static void vala_code_writer_real_visit_try_statement (ValaCodeVisitor* base, ValaTryStatement* stmt);
ValaBlock* vala_try_statement_get_body (ValaTryStatement* self);
ValaList* vala_try_statement_get_catch_clauses (ValaTryStatement* self);
ValaBlock* vala_try_statement_get_finally_body (ValaTryStatement* self);
static void vala_code_writer_real_visit_catch_clause (ValaCodeVisitor* base, ValaCatchClause* clause);
ValaDataType* vala_catch_clause_get_error_type (ValaCatchClause* self);
gchar* vala_code_node_to_string (ValaCodeNode* self);
const gchar* vala_catch_clause_get_variable_name (ValaCatchClause* self);
ValaBlock* vala_catch_clause_get_body (ValaCatchClause* self);
static void vala_code_writer_real_visit_lock_statement (ValaCodeVisitor* base, ValaLockStatement* stmt);
ValaExpression* vala_lock_statement_get_resource (ValaLockStatement* self);
ValaBlock* vala_lock_statement_get_body (ValaLockStatement* self);
static void vala_code_writer_real_visit_delete_statement (ValaCodeVisitor* base, ValaDeleteStatement* stmt);
ValaExpression* vala_delete_statement_get_expression (ValaDeleteStatement* self);
static void vala_code_writer_real_visit_array_creation_expression (ValaCodeVisitor* base, ValaArrayCreationExpression* expr);
ValaDataType* vala_array_creation_expression_get_element_type (ValaArrayCreationExpression* self);
ValaList* vala_array_creation_expression_get_sizes (ValaArrayCreationExpression* self);
ValaInitializerList* vala_array_creation_expression_get_initializer_list (ValaArrayCreationExpression* self);
static void vala_code_writer_real_visit_boolean_literal (ValaCodeVisitor* base, ValaBooleanLiteral* lit);
gboolean vala_boolean_literal_get_value (ValaBooleanLiteral* self);
static void vala_code_writer_real_visit_character_literal (ValaCodeVisitor* base, ValaCharacterLiteral* lit);
const gchar* vala_character_literal_get_value (ValaCharacterLiteral* self);
static void vala_code_writer_real_visit_integer_literal (ValaCodeVisitor* base, ValaIntegerLiteral* lit);
const gchar* vala_integer_literal_get_value (ValaIntegerLiteral* self);
static void vala_code_writer_real_visit_real_literal (ValaCodeVisitor* base, ValaRealLiteral* lit);
const gchar* vala_real_literal_get_value (ValaRealLiteral* self);
static void vala_code_writer_real_visit_string_literal (ValaCodeVisitor* base, ValaStringLiteral* lit);
const gchar* vala_string_literal_get_value (ValaStringLiteral* self);
static void vala_code_writer_real_visit_null_literal (ValaCodeVisitor* base, ValaNullLiteral* lit);
static void vala_code_writer_real_visit_member_access (ValaCodeVisitor* base, ValaMemberAccess* expr);
ValaExpression* vala_member_access_get_inner (ValaMemberAccess* self);
const gchar* vala_member_access_get_member_name (ValaMemberAccess* self);
static void vala_code_writer_real_visit_method_call (ValaCodeVisitor* base, ValaMethodCall* expr);
ValaExpression* vala_method_call_get_call (ValaMethodCall* self);
ValaList* vala_method_call_get_argument_list (ValaMethodCall* self);
static void vala_code_writer_real_visit_element_access (ValaCodeVisitor* base, ValaElementAccess* expr);
ValaExpression* vala_element_access_get_container (ValaElementAccess* self);
ValaList* vala_element_access_get_indices (ValaElementAccess* self);
static void vala_code_writer_real_visit_slice_expression (ValaCodeVisitor* base, ValaSliceExpression* expr);
ValaExpression* vala_slice_expression_get_container (ValaSliceExpression* self);
ValaExpression* vala_slice_expression_get_start (ValaSliceExpression* self);
ValaExpression* vala_slice_expression_get_stop (ValaSliceExpression* self);
static void vala_code_writer_real_visit_base_access (ValaCodeVisitor* base, ValaBaseAccess* expr);
static void vala_code_writer_real_visit_postfix_expression (ValaCodeVisitor* base, ValaPostfixExpression* expr);
ValaExpression* vala_postfix_expression_get_inner (ValaPostfixExpression* self);
gboolean vala_postfix_expression_get_increment (ValaPostfixExpression* self);
static void vala_code_writer_real_visit_object_creation_expression (ValaCodeVisitor* base, ValaObjectCreationExpression* expr);
gboolean vala_object_creation_expression_get_struct_creation (ValaObjectCreationExpression* self);
ValaDataType* vala_object_creation_expression_get_type_reference (ValaObjectCreationExpression* self);
ValaSymbol* vala_expression_get_symbol_reference (ValaExpression* self);
ValaList* vala_object_creation_expression_get_argument_list (ValaObjectCreationExpression* self);
static void vala_code_writer_real_visit_sizeof_expression (ValaCodeVisitor* base, ValaSizeofExpression* expr);
ValaDataType* vala_sizeof_expression_get_type_reference (ValaSizeofExpression* self);
static void vala_code_writer_real_visit_typeof_expression (ValaCodeVisitor* base, ValaTypeofExpression* expr);
ValaDataType* vala_typeof_expression_get_type_reference (ValaTypeofExpression* self);
static void vala_code_writer_real_visit_unary_expression (ValaCodeVisitor* base, ValaUnaryExpression* expr);
GType vala_unary_operator_get_type (void) G_GNUC_CONST;
ValaUnaryOperator vala_unary_expression_get_operator (ValaUnaryExpression* self);
ValaExpression* vala_unary_expression_get_inner (ValaUnaryExpression* self);
static void vala_code_writer_real_visit_cast_expression (ValaCodeVisitor* base, ValaCastExpression* expr);
gboolean vala_cast_expression_get_is_non_null_cast (ValaCastExpression* self);
ValaExpression* vala_cast_expression_get_inner (ValaCastExpression* self);
gboolean vala_cast_expression_get_is_silent_cast (ValaCastExpression* self);
ValaDataType* vala_cast_expression_get_type_reference (ValaCastExpression* self);
static void vala_code_writer_real_visit_pointer_indirection (ValaCodeVisitor* base, ValaPointerIndirection* expr);
ValaExpression* vala_pointer_indirection_get_inner (ValaPointerIndirection* self);
static void vala_code_writer_real_visit_addressof_expression (ValaCodeVisitor* base, ValaAddressofExpression* expr);
ValaExpression* vala_addressof_expression_get_inner (ValaAddressofExpression* self);
static void vala_code_writer_real_visit_reference_transfer_expression (ValaCodeVisitor* base, ValaReferenceTransferExpression* expr);
ValaExpression* vala_reference_transfer_expression_get_inner (ValaReferenceTransferExpression* self);
static void vala_code_writer_real_visit_binary_expression (ValaCodeVisitor* base, ValaBinaryExpression* expr);
ValaExpression* vala_binary_expression_get_left (ValaBinaryExpression* self);
GType vala_binary_operator_get_type (void) G_GNUC_CONST;
ValaBinaryOperator vala_binary_expression_get_operator (ValaBinaryExpression* self);
ValaExpression* vala_binary_expression_get_right (ValaBinaryExpression* self);
static void vala_code_writer_real_visit_type_check (ValaCodeVisitor* base, ValaTypeCheck* expr);
ValaExpression* vala_typecheck_get_expression (ValaTypeCheck* self);
ValaDataType* vala_typecheck_get_type_reference (ValaTypeCheck* self);
static void vala_code_writer_real_visit_conditional_expression (ValaCodeVisitor* base, ValaConditionalExpression* expr);
ValaExpression* vala_conditional_expression_get_condition (ValaConditionalExpression* self);
ValaExpression* vala_conditional_expression_get_true_expression (ValaConditionalExpression* self);
ValaExpression* vala_conditional_expression_get_false_expression (ValaConditionalExpression* self);
static void vala_code_writer_real_visit_lambda_expression (ValaCodeVisitor* base, ValaLambdaExpression* expr);
ValaList* vala_lambda_expression_get_parameters (ValaLambdaExpression* self);
ValaBlock* vala_lambda_expression_get_statement_body (ValaLambdaExpression* self);
ValaExpression* vala_lambda_expression_get_expression_body (ValaLambdaExpression* self);
static void vala_code_writer_real_visit_assignment (ValaCodeVisitor* base, ValaAssignment* a);
ValaExpression* vala_assignment_get_left (ValaAssignment* self);
ValaExpression* vala_assignment_get_right (ValaAssignment* self);
GType vala_token_type_get_type (void) G_GNUC_CONST;
ValaTokenType vala_scanner_get_identifier_or_keyword (gchar* begin, gint len);
gchar* vala_data_type_to_qualified_string (ValaDataType* self, ValaScope* scope);
GType vala_symbol_accessibility_get_type (void) G_GNUC_CONST;
ValaSymbolAccessibility vala_symbol_get_access (ValaSymbol* self);
GType vala_code_generator_get_type (void) G_GNUC_CONST;
static gboolean vala_code_writer_filter_attribute (ValaCodeWriter* self, ValaAttribute* attr);
const gchar* vala_attribute_get_name (ValaAttribute* self);
gboolean vala_symbol_get_external (ValaSymbol* self);
static void vala_code_writer_finalize (ValaCodeVisitor* obj);


ValaCodeWriter* vala_code_writer_construct (GType object_type, ValaCodeWriterType type) {
      ValaCodeWriter* self = NULL;
      self = (ValaCodeWriter*) vala_code_visitor_construct (object_type);
      self->priv->type = type;
      return self;
}


ValaCodeWriter* vala_code_writer_new (ValaCodeWriterType type) {
      return vala_code_writer_construct (VALA_TYPE_CODE_WRITER, type);
}


/**
 * Allows overriding of a specific cheader in the output
 * @param original orignal cheader to override
 * @param replacement cheader to replace original with
 */
void vala_code_writer_set_cheader_override (ValaCodeWriter* self, const gchar* original, const gchar* replacement) {
      gchar* _tmp0_;
      gchar* _tmp1_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (original != NULL);
      g_return_if_fail (replacement != NULL);
      _tmp0_ = g_strdup (original);
      _g_free0 (self->priv->header_to_override);
      self->priv->header_to_override = _tmp0_;
      _tmp1_ = g_strdup (replacement);
      _g_free0 (self->priv->override_header);
      self->priv->override_header = _tmp1_;
}


/**
 * Writes the public interface of the specified code context into the
 * specified file.
 *
 * @param context  a code context
 * @param filename a relative or absolute filename
 */
static gpointer _vala_code_context_ref0 (gpointer self) {
      return self ? vala_code_context_ref (self) : NULL;
}


static gpointer _vala_scope_ref0 (gpointer self) {
      return self ? vala_scope_ref (self) : NULL;
}


void vala_code_writer_write_file (ValaCodeWriter* self, ValaCodeContext* context, const gchar* filename) {
      gboolean _tmp0_;
      gboolean file_exists;
      gchar* _tmp1_;
      gchar* temp_filename;
      ValaCodeContext* _tmp2_;
      gchar* _tmp7_ = NULL;
      gboolean _tmp8_;
      gchar* _tmp17_;
      gchar* header;
      ValaNamespace* _tmp18_ = NULL;
      ValaScope* _tmp19_ = NULL;
      ValaScope* _tmp20_;
      GError * _inner_error_ = NULL;
      g_return_if_fail (self != NULL);
      g_return_if_fail (context != NULL);
      g_return_if_fail (filename != NULL);
      _tmp0_ = g_file_test (filename, G_FILE_TEST_EXISTS);
      file_exists = _tmp0_;
      _tmp1_ = g_strconcat (filename, ".valatmp", NULL);
      temp_filename = _tmp1_;
      _tmp2_ = _vala_code_context_ref0 (context);
      _vala_code_context_unref0 (self->priv->context);
      self->priv->context = _tmp2_;
      if (file_exists) {
            FILE* _tmp3_ = NULL;
            _tmp3_ = fopen (temp_filename, "w");
            _fclose0 (self->priv->stream);
            self->priv->stream = _tmp3_;
      } else {
            FILE* _tmp4_ = NULL;
            _tmp4_ = fopen (filename, "w");
            _fclose0 (self->priv->stream);
            self->priv->stream = _tmp4_;
      }
      if (self->priv->stream == NULL) {
            gchar* _tmp5_ = NULL;
            gchar* _tmp6_;
            _tmp5_ = g_strdup_printf ("unable to open `%s' for writing", filename);
            _tmp6_ = _tmp5_;
            vala_report_error (NULL, _tmp6_);
            _g_free0 (_tmp6_);
            _g_free0 (temp_filename);
            return;
      }
      _tmp8_ = vala_code_context_get_version_header (context);
      if (_tmp8_) {
            gchar* _tmp9_ = NULL;
            gchar* _tmp10_;
            const gchar* _tmp11_ = NULL;
            gchar* _tmp12_ = NULL;
            _tmp9_ = g_path_get_basename (filename);
            _tmp10_ = _tmp9_;
            _tmp11_ = g_get_prgname ();
            _tmp12_ = g_strdup_printf ("/* %s generated by %s %s, do not modify. */", _tmp10_, _tmp11_, BUILD_VERSION);
            _g_free0 (_tmp7_);
            _tmp7_ = _tmp12_;
            _g_free0 (_tmp10_);
      } else {
            gchar* _tmp13_ = NULL;
            gchar* _tmp14_;
            const gchar* _tmp15_ = NULL;
            gchar* _tmp16_ = NULL;
            _tmp13_ = g_path_get_basename (filename);
            _tmp14_ = _tmp13_;
            _tmp15_ = g_get_prgname ();
            _tmp16_ = g_strdup_printf ("/* %s generated by %s, do not modify. */", _tmp14_, _tmp15_);
            _g_free0 (_tmp7_);
            _tmp7_ = _tmp16_;
            _g_free0 (_tmp14_);
      }
      _tmp17_ = g_strdup (_tmp7_);
      header = _tmp17_;
      vala_code_writer_write_string (self, header);
      vala_code_writer_write_newline (self);
      vala_code_writer_write_newline (self);
      _tmp18_ = vala_code_context_get_root (context);
      _tmp19_ = vala_symbol_get_scope ((ValaSymbol*) _tmp18_);
      _tmp20_ = _vala_scope_ref0 (_tmp19_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp20_;
      vala_code_context_accept (context, (ValaCodeVisitor*) self);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = NULL;
      _fclose0 (self->priv->stream);
      self->priv->stream = NULL;
      if (file_exists) {
            gboolean changed;
            GMappedFile* _tmp21_ = NULL;
            GMappedFile* old_file;
            GMappedFile* _tmp22_ = NULL;
            GMappedFile* new_file;
            gsize _tmp23_;
            gsize len;
            gsize _tmp24_;
            changed = TRUE;
            _tmp21_ = g_mapped_file_new (filename, FALSE, &_inner_error_);
            old_file = _tmp21_;
            if (_inner_error_ != NULL) {
                  if (_inner_error_->domain == G_FILE_ERROR) {
                        goto __catch1_g_file_error;
                  }
                  _g_free0 (header);
                  _g_free0 (_tmp7_);
                  _g_free0 (temp_filename);
                  g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                  g_clear_error (&_inner_error_);
                  return;
            }
            _tmp22_ = g_mapped_file_new (temp_filename, FALSE, &_inner_error_);
            new_file = _tmp22_;
            if (_inner_error_ != NULL) {
                  _g_mapped_file_free0 (old_file);
                  if (_inner_error_->domain == G_FILE_ERROR) {
                        goto __catch1_g_file_error;
                  }
                  _g_mapped_file_free0 (old_file);
                  _g_free0 (header);
                  _g_free0 (_tmp7_);
                  _g_free0 (temp_filename);
                  g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                  g_clear_error (&_inner_error_);
                  return;
            }
            _tmp23_ = g_mapped_file_get_length (old_file);
            len = _tmp23_;
            _tmp24_ = g_mapped_file_get_length (new_file);
            if (len == _tmp24_) {
                  gchar* _tmp25_ = NULL;
                  gchar* _tmp26_ = NULL;
                  gint _tmp27_;
                  _tmp25_ = g_mapped_file_get_contents (old_file);
                  _tmp26_ = g_mapped_file_get_contents (new_file);
                  _tmp27_ = memcmp (_tmp25_, _tmp26_, len);
                  if (_tmp27_ == 0) {
                        changed = FALSE;
                  }
            }
            _g_mapped_file_free0 (old_file);
            old_file = NULL;
            _g_mapped_file_free0 (new_file);
            new_file = NULL;
            _g_mapped_file_free0 (new_file);
            _g_mapped_file_free0 (old_file);
            goto __finally1;
            __catch1_g_file_error:
            {
                  GError * e;
                  e = _inner_error_;
                  _inner_error_ = NULL;
                  _g_error_free0 (e);
            }
            __finally1:
            if (_inner_error_ != NULL) {
                  _g_free0 (header);
                  _g_free0 (_tmp7_);
                  _g_free0 (temp_filename);
                  g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                  g_clear_error (&_inner_error_);
                  return;
            }
            if (changed) {
                  g_rename (temp_filename, filename);
            } else {
                  g_unlink (temp_filename);
            }
      }
      _g_free0 (header);
      _g_free0 (_tmp7_);
      _g_free0 (temp_filename);
}


static void vala_code_writer_real_visit_using_directive (ValaCodeVisitor* base, ValaUsingDirective* ns) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (ns != NULL);
      if (self->priv->type == VALA_CODE_WRITER_TYPE_FAST) {
            ValaSymbol* _tmp0_ = NULL;
            const gchar* _tmp1_ = NULL;
            gchar* _tmp2_ = NULL;
            gchar* _tmp3_;
            _tmp0_ = vala_using_directive_get_namespace_symbol (ns);
            _tmp1_ = vala_symbol_get_name (_tmp0_);
            _tmp2_ = g_strdup_printf ("using %s;\n", _tmp1_);
            _tmp3_ = _tmp2_;
            vala_code_writer_write_string (self, _tmp3_);
            _g_free0 (_tmp3_);
      }
}


static void vala_code_writer_real_visit_namespace (ValaCodeVisitor* base, ValaNamespace* ns) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      const gchar* _tmp1_ = NULL;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      gchar* _tmp6_ = NULL;
      gchar* _tmp7_;
      gboolean _tmp8_ = FALSE;
      ValaSourceReference* _tmp9_ = NULL;
      const gchar* _tmp28_ = NULL;
      ValaScope* _tmp29_ = NULL;
      ValaScope* _tmp30_;
      ValaList* _tmp31_ = NULL;
      ValaList* _tmp32_;
      ValaList* _tmp33_ = NULL;
      ValaList* _tmp34_;
      ValaList* _tmp35_ = NULL;
      ValaList* _tmp36_;
      ValaList* _tmp37_ = NULL;
      ValaList* _tmp38_;
      ValaList* _tmp39_ = NULL;
      ValaList* _tmp40_;
      ValaList* _tmp41_ = NULL;
      ValaList* _tmp42_;
      ValaList* _tmp43_ = NULL;
      ValaList* _tmp44_;
      ValaList* _tmp45_ = NULL;
      ValaList* _tmp46_;
      ValaList* _tmp47_ = NULL;
      ValaList* _tmp48_;
      ValaList* _tmp49_ = NULL;
      ValaList* _tmp50_;
      ValaScope* _tmp51_ = NULL;
      ValaScope* _tmp52_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (ns != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) ns);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_symbol_get_name ((ValaSymbol*) ns);
      if (_tmp1_ == NULL) {
            vala_code_node_accept_children ((ValaCodeNode*) ns, (ValaCodeVisitor*) self);
            return;
      }
      vala_code_writer_write_indent (self);
      _tmp2_ = vala_symbol_get_cprefix ((ValaSymbol*) ns);
      _tmp3_ = _tmp2_;
      _tmp4_ = vala_symbol_get_lower_case_cprefix ((ValaSymbol*) ns);
      _tmp5_ = _tmp4_;
      _tmp6_ = g_strdup_printf ("[CCode (cprefix = \"%s\", lower_case_cprefix = \"%s\"", _tmp3_, _tmp5_);
      _tmp7_ = _tmp6_;
      vala_code_writer_write_string (self, _tmp7_);
      _g_free0 (_tmp7_);
      _g_free0 (_tmp5_);
      _g_free0 (_tmp3_);
      _tmp9_ = vala_code_node_get_source_reference ((ValaCodeNode*) ns);
      if (_tmp9_ != NULL) {
            ValaSymbol* _tmp10_ = NULL;
            ValaNamespace* _tmp11_ = NULL;
            _tmp10_ = vala_symbol_get_parent_symbol ((ValaSymbol*) ns);
            _tmp11_ = vala_code_context_get_root (self->priv->context);
            _tmp8_ = _tmp10_ == VALA_SYMBOL (_tmp11_);
      } else {
            _tmp8_ = FALSE;
      }
      if (_tmp8_) {
            ValaSourceReference* _tmp12_ = NULL;
            ValaSourceFile* _tmp13_ = NULL;
            const gchar* _tmp14_ = NULL;
            ValaSourceReference* _tmp20_ = NULL;
            ValaSourceFile* _tmp21_ = NULL;
            const gchar* _tmp22_ = NULL;
            _tmp12_ = vala_code_node_get_source_reference ((ValaCodeNode*) ns);
            _tmp13_ = vala_source_reference_get_file (_tmp12_);
            _tmp14_ = vala_source_file_get_gir_namespace (_tmp13_);
            if (_tmp14_ != NULL) {
                  ValaSourceReference* _tmp15_ = NULL;
                  ValaSourceFile* _tmp16_ = NULL;
                  const gchar* _tmp17_ = NULL;
                  gchar* _tmp18_ = NULL;
                  gchar* _tmp19_;
                  vala_code_writer_write_string (self, ", ");
                  _tmp15_ = vala_code_node_get_source_reference ((ValaCodeNode*) ns);
                  _tmp16_ = vala_source_reference_get_file (_tmp15_);
                  _tmp17_ = vala_source_file_get_gir_namespace (_tmp16_);
                  _tmp18_ = g_strdup_printf ("gir_namespace = \"%s\"", _tmp17_);
                  _tmp19_ = _tmp18_;
                  vala_code_writer_write_string (self, _tmp19_);
                  _g_free0 (_tmp19_);
            }
            _tmp20_ = vala_code_node_get_source_reference ((ValaCodeNode*) ns);
            _tmp21_ = vala_source_reference_get_file (_tmp20_);
            _tmp22_ = vala_source_file_get_gir_version (_tmp21_);
            if (_tmp22_ != NULL) {
                  ValaSourceReference* _tmp23_ = NULL;
                  ValaSourceFile* _tmp24_ = NULL;
                  const gchar* _tmp25_ = NULL;
                  gchar* _tmp26_ = NULL;
                  gchar* _tmp27_;
                  vala_code_writer_write_string (self, ", ");
                  _tmp23_ = vala_code_node_get_source_reference ((ValaCodeNode*) ns);
                  _tmp24_ = vala_source_reference_get_file (_tmp23_);
                  _tmp25_ = vala_source_file_get_gir_version (_tmp24_);
                  _tmp26_ = g_strdup_printf ("gir_version = \"%s\"", _tmp25_);
                  _tmp27_ = _tmp26_;
                  vala_code_writer_write_string (self, _tmp27_);
                  _g_free0 (_tmp27_);
            }
      }
      vala_code_writer_write_string (self, ")]");
      vala_code_writer_write_newline (self);
      vala_code_writer_write_attributes (self, (ValaCodeNode*) ns);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "namespace ");
      _tmp28_ = vala_symbol_get_name ((ValaSymbol*) ns);
      vala_code_writer_write_identifier (self, _tmp28_);
      vala_code_writer_write_begin_block (self);
      _tmp29_ = vala_symbol_get_scope ((ValaSymbol*) ns);
      _tmp30_ = _vala_scope_ref0 (_tmp29_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp30_;
      _tmp31_ = vala_namespace_get_namespaces (ns);
      _tmp32_ = _tmp31_;
      vala_code_writer_visit_sorted (self, _tmp32_);
      _vala_iterable_unref0 (_tmp32_);
      _tmp33_ = vala_namespace_get_classes (ns);
      _tmp34_ = _tmp33_;
      vala_code_writer_visit_sorted (self, _tmp34_);
      _vala_iterable_unref0 (_tmp34_);
      _tmp35_ = vala_namespace_get_interfaces (ns);
      _tmp36_ = _tmp35_;
      vala_code_writer_visit_sorted (self, _tmp36_);
      _vala_iterable_unref0 (_tmp36_);
      _tmp37_ = vala_namespace_get_structs (ns);
      _tmp38_ = _tmp37_;
      vala_code_writer_visit_sorted (self, _tmp38_);
      _vala_iterable_unref0 (_tmp38_);
      _tmp39_ = vala_namespace_get_enums (ns);
      _tmp40_ = _tmp39_;
      vala_code_writer_visit_sorted (self, _tmp40_);
      _vala_iterable_unref0 (_tmp40_);
      _tmp41_ = vala_namespace_get_error_domains (ns);
      _tmp42_ = _tmp41_;
      vala_code_writer_visit_sorted (self, _tmp42_);
      _vala_iterable_unref0 (_tmp42_);
      _tmp43_ = vala_namespace_get_delegates (ns);
      _tmp44_ = _tmp43_;
      vala_code_writer_visit_sorted (self, _tmp44_);
      _vala_iterable_unref0 (_tmp44_);
      _tmp45_ = vala_namespace_get_fields (ns);
      _tmp46_ = _tmp45_;
      vala_code_writer_visit_sorted (self, _tmp46_);
      _vala_iterable_unref0 (_tmp46_);
      _tmp47_ = vala_namespace_get_constants (ns);
      _tmp48_ = _tmp47_;
      vala_code_writer_visit_sorted (self, _tmp48_);
      _vala_iterable_unref0 (_tmp48_);
      _tmp49_ = vala_namespace_get_methods (ns);
      _tmp50_ = _tmp49_;
      vala_code_writer_visit_sorted (self, _tmp50_);
      _vala_iterable_unref0 (_tmp50_);
      _tmp51_ = vala_scope_get_parent_scope (self->priv->current_scope);
      _tmp52_ = _vala_scope_ref0 (_tmp51_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp52_;
      vala_code_writer_write_end_block (self);
      vala_code_writer_write_newline (self);
}


static gchar* vala_code_writer_get_cheaders (ValaCodeWriter* self, ValaSymbol* cl) {
      gchar* result = NULL;
      gboolean first;
      gchar* _tmp0_;
      gchar* cheaders;
      g_return_val_if_fail (self != NULL, NULL);
      g_return_val_if_fail (cl != NULL, NULL);
      first = TRUE;
      _tmp0_ = g_strdup ("");
      cheaders = _tmp0_;
      if (self->priv->type != VALA_CODE_WRITER_TYPE_FAST) {
            {
                  ValaList* _tmp1_ = NULL;
                  ValaList* _cheader_list;
                  gint _tmp2_;
                  gint _cheader_size;
                  gint _cheader_index;
                  _tmp1_ = vala_symbol_get_cheader_filenames (cl);
                  _cheader_list = _tmp1_;
                  _tmp2_ = vala_collection_get_size ((ValaCollection*) _cheader_list);
                  _cheader_size = _tmp2_;
                  _cheader_index = -1;
                  while (TRUE) {
                        gpointer _tmp3_ = NULL;
                        gchar* cheader;
                        gboolean _tmp4_ = FALSE;
                        _cheader_index = _cheader_index + 1;
                        if (!(_cheader_index < _cheader_size)) {
                              break;
                        }
                        _tmp3_ = vala_list_get (_cheader_list, _cheader_index);
                        cheader = (gchar*) _tmp3_;
                        if (self->priv->header_to_override != NULL) {
                              _tmp4_ = g_strcmp0 (cheader, self->priv->header_to_override) == 0;
                        } else {
                              _tmp4_ = FALSE;
                        }
                        if (_tmp4_) {
                              gchar* _tmp5_;
                              _tmp5_ = g_strdup (self->priv->override_header);
                              _g_free0 (cheader);
                              cheader = _tmp5_;
                        }
                        if (first) {
                              gchar* _tmp6_;
                              _tmp6_ = g_strdup (cheader);
                              _g_free0 (cheaders);
                              cheaders = _tmp6_;
                              first = FALSE;
                        } else {
                              gchar* _tmp7_ = NULL;
                              _tmp7_ = g_strdup_printf ("%s,%s", cheaders, cheader);
                              _g_free0 (cheaders);
                              cheaders = _tmp7_;
                        }
                        _g_free0 (cheader);
                  }
                  _vala_iterable_unref0 (_cheader_list);
            }
      }
      result = cheaders;
      return result;
}


static void vala_code_writer_emit_deprecated_attribute (ValaCodeWriter* self, ValaSymbol* symbol) {
      gboolean _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (symbol != NULL);
      _tmp0_ = vala_symbol_get_deprecated (symbol);
      if (_tmp0_) {
            const gchar* _tmp1_ = NULL;
            gchar* _tmp2_;
            gchar* since;
            const gchar* _tmp3_ = NULL;
            gchar* _tmp4_;
            gchar* replacement;
            gboolean _tmp5_ = FALSE;
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[Deprecated");
            _tmp1_ = vala_symbol_get_deprecated_since (symbol);
            _tmp2_ = g_strdup (_tmp1_);
            since = _tmp2_;
            _tmp3_ = vala_symbol_get_replacement (symbol);
            _tmp4_ = g_strdup (_tmp3_);
            replacement = _tmp4_;
            if (since != NULL) {
                  _tmp5_ = TRUE;
            } else {
                  _tmp5_ = replacement != NULL;
            }
            if (_tmp5_) {
                  gboolean _tmp8_ = FALSE;
                  vala_code_writer_write_string (self, " (");
                  if (since != NULL) {
                        gchar* _tmp6_ = NULL;
                        gchar* _tmp7_;
                        _tmp6_ = g_strdup_printf ("since = \"%s\"", since);
                        _tmp7_ = _tmp6_;
                        vala_code_writer_write_string (self, _tmp7_);
                        _g_free0 (_tmp7_);
                  }
                  if (since != NULL) {
                        _tmp8_ = replacement != NULL;
                  } else {
                        _tmp8_ = FALSE;
                  }
                  if (_tmp8_) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  if (replacement != NULL) {
                        gchar* _tmp9_ = NULL;
                        gchar* _tmp10_;
                        _tmp9_ = g_strdup_printf ("replacement = \"%s\"", replacement);
                        _tmp10_ = _tmp9_;
                        vala_code_writer_write_string (self, _tmp10_);
                        _g_free0 (_tmp10_);
                  }
                  vala_code_writer_write_string (self, ")");
            }
            vala_code_writer_write_string (self, "]");
            _g_free0 (replacement);
            _g_free0 (since);
      }
}


static void vala_code_writer_emit_experimental_attribute (ValaCodeWriter* self, ValaSymbol* symbol) {
      gboolean _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (symbol != NULL);
      _tmp0_ = vala_symbol_get_experimental (symbol);
      if (_tmp0_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[Experimental]");
            vala_code_writer_write_newline (self);
      }
}


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


static void vala_code_writer_real_visit_class (ValaCodeVisitor* base, ValaClass* cl) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gboolean _tmp2_;
      gboolean _tmp3_;
      gboolean _tmp4_ = FALSE;
      gboolean _tmp5_;
      gchar* _tmp53_ = NULL;
      gchar* _tmp54_;
      gchar* _tmp55_ = NULL;
      gchar* _tmp56_;
      gboolean _tmp57_;
      const gchar* _tmp62_ = NULL;
      const gchar* _tmp66_ = NULL;
      gchar* _tmp70_ = NULL;
      gchar* _tmp71_;
      gchar* _tmp72_ = NULL;
      gchar* _tmp73_;
      gboolean _tmp74_;
      gchar* _tmp79_ = NULL;
      gchar* _tmp80_;
      gchar* _tmp81_ = NULL;
      gchar* _tmp82_;
      gboolean _tmp83_;
      gchar* _tmp88_ = NULL;
      gchar* _tmp89_;
      gchar* _tmp90_ = NULL;
      gchar* _tmp91_;
      gboolean _tmp92_;
      const gchar* _tmp93_ = NULL;
      ValaList* _tmp94_ = NULL;
      ValaList* type_params;
      gint _tmp95_;
      ValaList* _tmp100_ = NULL;
      ValaList* base_types;
      gint _tmp101_;
      ValaScope* _tmp105_ = NULL;
      ValaScope* _tmp106_;
      ValaList* _tmp107_ = NULL;
      ValaList* _tmp108_;
      ValaList* _tmp109_ = NULL;
      ValaList* _tmp110_;
      ValaList* _tmp111_ = NULL;
      ValaList* _tmp112_;
      ValaList* _tmp113_ = NULL;
      ValaList* _tmp114_;
      ValaList* _tmp115_ = NULL;
      ValaList* _tmp116_;
      ValaList* _tmp117_ = NULL;
      ValaList* _tmp118_;
      ValaList* _tmp119_ = NULL;
      ValaList* _tmp120_;
      ValaList* _tmp121_ = NULL;
      ValaList* _tmp122_;
      ValaList* _tmp123_ = NULL;
      ValaList* _tmp124_;
      ValaConstructor* _tmp125_ = NULL;
      ValaScope* _tmp127_ = NULL;
      ValaScope* _tmp128_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (cl != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) cl);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) cl);
      if (!_tmp1_) {
            return;
      }
      _tmp2_ = vala_class_get_is_compact (cl);
      if (_tmp2_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[Compact]");
            vala_code_writer_write_newline (self);
      }
      _tmp3_ = vala_class_get_is_immutable (cl);
      if (_tmp3_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[Immutable]");
            vala_code_writer_write_newline (self);
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) cl);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) cl);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "[CCode (");
      _tmp5_ = vala_typesymbol_is_reference_counting ((ValaTypeSymbol*) cl);
      if (_tmp5_) {
            _tmp4_ = self->priv->type != VALA_CODE_WRITER_TYPE_FAST;
      } else {
            _tmp4_ = FALSE;
      }
      if (_tmp4_) {
            gboolean _tmp6_ = FALSE;
            gboolean _tmp7_ = FALSE;
            ValaClass* _tmp8_ = NULL;
            gboolean _tmp22_ = FALSE;
            gboolean _tmp23_ = FALSE;
            ValaClass* _tmp24_ = NULL;
            _tmp8_ = vala_class_get_base_class (cl);
            if (_tmp8_ == NULL) {
                  _tmp7_ = TRUE;
            } else {
                  ValaClass* _tmp9_ = NULL;
                  gchar* _tmp10_ = NULL;
                  gchar* _tmp11_;
                  _tmp9_ = vala_class_get_base_class (cl);
                  _tmp10_ = vala_typesymbol_get_ref_function ((ValaTypeSymbol*) _tmp9_);
                  _tmp11_ = _tmp10_;
                  _tmp7_ = _tmp11_ == NULL;
                  _g_free0 (_tmp11_);
            }
            if (_tmp7_) {
                  _tmp6_ = TRUE;
            } else {
                  ValaClass* _tmp12_ = NULL;
                  gchar* _tmp13_ = NULL;
                  gchar* _tmp14_;
                  gchar* _tmp15_ = NULL;
                  gchar* _tmp16_;
                  _tmp12_ = vala_class_get_base_class (cl);
                  _tmp13_ = vala_typesymbol_get_ref_function ((ValaTypeSymbol*) _tmp12_);
                  _tmp14_ = _tmp13_;
                  _tmp15_ = vala_typesymbol_get_ref_function ((ValaTypeSymbol*) cl);
                  _tmp16_ = _tmp15_;
                  _tmp6_ = g_strcmp0 (_tmp14_, _tmp16_) != 0;
                  _g_free0 (_tmp16_);
                  _g_free0 (_tmp14_);
            }
            if (_tmp6_) {
                  gchar* _tmp17_ = NULL;
                  gchar* _tmp18_;
                  gchar* _tmp19_ = NULL;
                  gchar* _tmp20_;
                  gboolean _tmp21_;
                  _tmp17_ = vala_typesymbol_get_ref_function ((ValaTypeSymbol*) cl);
                  _tmp18_ = _tmp17_;
                  _tmp19_ = g_strdup_printf ("ref_function = \"%s\", ", _tmp18_);
                  _tmp20_ = _tmp19_;
                  vala_code_writer_write_string (self, _tmp20_);
                  _g_free0 (_tmp20_);
                  _g_free0 (_tmp18_);
                  _tmp21_ = vala_class_get_ref_function_void (cl);
                  if (_tmp21_) {
                        vala_code_writer_write_string (self, "ref_function_void = true, ");
                  }
            }
            _tmp24_ = vala_class_get_base_class (cl);
            if (_tmp24_ == NULL) {
                  _tmp23_ = TRUE;
            } else {
                  ValaClass* _tmp25_ = NULL;
                  gchar* _tmp26_ = NULL;
                  gchar* _tmp27_;
                  _tmp25_ = vala_class_get_base_class (cl);
                  _tmp26_ = vala_typesymbol_get_unref_function ((ValaTypeSymbol*) _tmp25_);
                  _tmp27_ = _tmp26_;
                  _tmp23_ = _tmp27_ == NULL;
                  _g_free0 (_tmp27_);
            }
            if (_tmp23_) {
                  _tmp22_ = TRUE;
            } else {
                  ValaClass* _tmp28_ = NULL;
                  gchar* _tmp29_ = NULL;
                  gchar* _tmp30_;
                  gchar* _tmp31_ = NULL;
                  gchar* _tmp32_;
                  _tmp28_ = vala_class_get_base_class (cl);
                  _tmp29_ = vala_typesymbol_get_unref_function ((ValaTypeSymbol*) _tmp28_);
                  _tmp30_ = _tmp29_;
                  _tmp31_ = vala_typesymbol_get_unref_function ((ValaTypeSymbol*) cl);
                  _tmp32_ = _tmp31_;
                  _tmp22_ = g_strcmp0 (_tmp30_, _tmp32_) != 0;
                  _g_free0 (_tmp32_);
                  _g_free0 (_tmp30_);
            }
            if (_tmp22_) {
                  gchar* _tmp33_ = NULL;
                  gchar* _tmp34_;
                  gchar* _tmp35_ = NULL;
                  gchar* _tmp36_;
                  _tmp33_ = vala_typesymbol_get_unref_function ((ValaTypeSymbol*) cl);
                  _tmp34_ = _tmp33_;
                  _tmp35_ = g_strdup_printf ("unref_function = \"%s\", ", _tmp34_);
                  _tmp36_ = _tmp35_;
                  vala_code_writer_write_string (self, _tmp36_);
                  _g_free0 (_tmp36_);
                  _g_free0 (_tmp34_);
            }
      } else {
            gchar* _tmp37_ = NULL;
            gchar* _tmp38_;
            gboolean _tmp39_;
            gchar* _tmp44_ = NULL;
            gchar* _tmp45_;
            gchar* _tmp46_ = NULL;
            gchar* _tmp47_;
            gboolean _tmp48_;
            _tmp37_ = vala_typesymbol_get_dup_function ((ValaTypeSymbol*) cl);
            _tmp38_ = _tmp37_;
            _tmp39_ = _tmp38_ != NULL;
            _g_free0 (_tmp38_);
            if (_tmp39_) {
                  gchar* _tmp40_ = NULL;
                  gchar* _tmp41_;
                  gchar* _tmp42_ = NULL;
                  gchar* _tmp43_;
                  _tmp40_ = vala_typesymbol_get_dup_function ((ValaTypeSymbol*) cl);
                  _tmp41_ = _tmp40_;
                  _tmp42_ = g_strdup_printf ("copy_function = \"%s\", ", _tmp41_);
                  _tmp43_ = _tmp42_;
                  vala_code_writer_write_string (self, _tmp43_);
                  _g_free0 (_tmp43_);
                  _g_free0 (_tmp41_);
            }
            _tmp44_ = vala_typesymbol_get_free_function ((ValaTypeSymbol*) cl);
            _tmp45_ = _tmp44_;
            _tmp46_ = vala_class_get_default_free_function (cl);
            _tmp47_ = _tmp46_;
            _tmp48_ = g_strcmp0 (_tmp45_, _tmp47_) != 0;
            _g_free0 (_tmp47_);
            _g_free0 (_tmp45_);
            if (_tmp48_) {
                  gchar* _tmp49_ = NULL;
                  gchar* _tmp50_;
                  gchar* _tmp51_ = NULL;
                  gchar* _tmp52_;
                  _tmp49_ = vala_typesymbol_get_free_function ((ValaTypeSymbol*) cl);
                  _tmp50_ = _tmp49_;
                  _tmp51_ = g_strdup_printf ("free_function = \"%s\", ", _tmp50_);
                  _tmp52_ = _tmp51_;
                  vala_code_writer_write_string (self, _tmp52_);
                  _g_free0 (_tmp52_);
                  _g_free0 (_tmp50_);
            }
      }
      _tmp53_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) cl, FALSE);
      _tmp54_ = _tmp53_;
      _tmp55_ = vala_class_get_default_cname (cl);
      _tmp56_ = _tmp55_;
      _tmp57_ = g_strcmp0 (_tmp54_, _tmp56_) != 0;
      _g_free0 (_tmp56_);
      _g_free0 (_tmp54_);
      if (_tmp57_) {
            gchar* _tmp58_ = NULL;
            gchar* _tmp59_;
            gchar* _tmp60_ = NULL;
            gchar* _tmp61_;
            _tmp58_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) cl, FALSE);
            _tmp59_ = _tmp58_;
            _tmp60_ = g_strdup_printf ("cname = \"%s\", ", _tmp59_);
            _tmp61_ = _tmp60_;
            vala_code_writer_write_string (self, _tmp61_);
            _g_free0 (_tmp61_);
            _g_free0 (_tmp59_);
      }
      _tmp62_ = vala_class_get_const_cname (cl);
      if (_tmp62_ != NULL) {
            const gchar* _tmp63_ = NULL;
            gchar* _tmp64_ = NULL;
            gchar* _tmp65_;
            _tmp63_ = vala_class_get_const_cname (cl);
            _tmp64_ = g_strdup_printf ("const_cname = \"%s\", ", _tmp63_);
            _tmp65_ = _tmp64_;
            vala_code_writer_write_string (self, _tmp65_);
            _g_free0 (_tmp65_);
      }
      _tmp66_ = vala_class_get_type_check_function (cl);
      if (_tmp66_ != NULL) {
            const gchar* _tmp67_ = NULL;
            gchar* _tmp68_ = NULL;
            gchar* _tmp69_;
            _tmp67_ = vala_class_get_type_check_function (cl);
            _tmp68_ = g_strdup_printf ("type_check_function = \"%s\", ", _tmp67_);
            _tmp69_ = _tmp68_;
            vala_code_writer_write_string (self, _tmp69_);
            _g_free0 (_tmp69_);
      }
      _tmp70_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) cl);
      _tmp71_ = _tmp70_;
      _tmp72_ = vala_class_get_default_type_id (cl);
      _tmp73_ = _tmp72_;
      _tmp74_ = g_strcmp0 (_tmp71_, _tmp73_) != 0;
      _g_free0 (_tmp73_);
      _g_free0 (_tmp71_);
      if (_tmp74_) {
            gchar* _tmp75_ = NULL;
            gchar* _tmp76_;
            gchar* _tmp77_ = NULL;
            gchar* _tmp78_;
            _tmp75_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) cl);
            _tmp76_ = _tmp75_;
            _tmp77_ = g_strdup_printf ("type_id = \"%s\", ", _tmp76_);
            _tmp78_ = _tmp77_;
            vala_code_writer_write_string (self, _tmp78_);
            _g_free0 (_tmp78_);
            _g_free0 (_tmp76_);
      }
      _tmp79_ = vala_typesymbol_get_param_spec_function ((ValaTypeSymbol*) cl);
      _tmp80_ = _tmp79_;
      _tmp81_ = vala_class_get_default_param_spec_function (cl);
      _tmp82_ = _tmp81_;
      _tmp83_ = g_strcmp0 (_tmp80_, _tmp82_) != 0;
      _g_free0 (_tmp82_);
      _g_free0 (_tmp80_);
      if (_tmp83_) {
            gchar* _tmp84_ = NULL;
            gchar* _tmp85_;
            gchar* _tmp86_ = NULL;
            gchar* _tmp87_;
            _tmp84_ = vala_typesymbol_get_param_spec_function ((ValaTypeSymbol*) cl);
            _tmp85_ = _tmp84_;
            _tmp86_ = g_strdup_printf ("param_spec_function = \"%s\", ", _tmp85_);
            _tmp87_ = _tmp86_;
            vala_code_writer_write_string (self, _tmp87_);
            _g_free0 (_tmp87_);
            _g_free0 (_tmp85_);
      }
      _tmp88_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) cl);
      _tmp89_ = _tmp88_;
      _tmp90_ = g_strdup_printf ("cheader_filename = \"%s\")]", _tmp89_);
      _tmp91_ = _tmp90_;
      vala_code_writer_write_string (self, _tmp91_);
      _g_free0 (_tmp91_);
      _g_free0 (_tmp89_);
      vala_code_writer_write_newline (self);
      vala_code_writer_write_attributes (self, (ValaCodeNode*) cl);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) cl);
      _tmp92_ = vala_class_get_is_abstract (cl);
      if (_tmp92_) {
            vala_code_writer_write_string (self, "abstract ");
      }
      vala_code_writer_write_string (self, "class ");
      _tmp93_ = vala_symbol_get_name ((ValaSymbol*) cl);
      vala_code_writer_write_identifier (self, _tmp93_);
      _tmp94_ = vala_object_type_symbol_get_type_parameters ((ValaObjectTypeSymbol*) cl);
      type_params = _tmp94_;
      _tmp95_ = vala_collection_get_size ((ValaCollection*) type_params);
      if (_tmp95_ > 0) {
            gboolean first;
            vala_code_writer_write_string (self, "<");
            first = TRUE;
            {
                  ValaList* _tmp96_;
                  ValaList* _type_param_list;
                  gint _tmp97_;
                  gint _type_param_size;
                  gint _type_param_index;
                  _tmp96_ = _vala_iterable_ref0 (type_params);
                  _type_param_list = _tmp96_;
                  _tmp97_ = vala_collection_get_size ((ValaCollection*) _type_param_list);
                  _type_param_size = _tmp97_;
                  _type_param_index = -1;
                  while (TRUE) {
                        gpointer _tmp98_ = NULL;
                        ValaTypeParameter* type_param;
                        const gchar* _tmp99_ = NULL;
                        _type_param_index = _type_param_index + 1;
                        if (!(_type_param_index < _type_param_size)) {
                              break;
                        }
                        _tmp98_ = vala_list_get (_type_param_list, _type_param_index);
                        type_param = (ValaTypeParameter*) _tmp98_;
                        if (first) {
                              first = FALSE;
                        } else {
                              vala_code_writer_write_string (self, ",");
                        }
                        _tmp99_ = vala_symbol_get_name ((ValaSymbol*) type_param);
                        vala_code_writer_write_identifier (self, _tmp99_);
                        _vala_code_node_unref0 (type_param);
                  }
                  _vala_iterable_unref0 (_type_param_list);
            }
            vala_code_writer_write_string (self, ">");
      }
      _tmp100_ = vala_class_get_base_types (cl);
      base_types = _tmp100_;
      _tmp101_ = vala_collection_get_size ((ValaCollection*) base_types);
      if (_tmp101_ > 0) {
            gboolean first;
            vala_code_writer_write_string (self, " : ");
            first = TRUE;
            {
                  ValaList* _tmp102_;
                  ValaList* _base_type_list;
                  gint _tmp103_;
                  gint _base_type_size;
                  gint _base_type_index;
                  _tmp102_ = _vala_iterable_ref0 (base_types);
                  _base_type_list = _tmp102_;
                  _tmp103_ = vala_collection_get_size ((ValaCollection*) _base_type_list);
                  _base_type_size = _tmp103_;
                  _base_type_index = -1;
                  while (TRUE) {
                        gpointer _tmp104_ = NULL;
                        ValaDataType* base_type;
                        _base_type_index = _base_type_index + 1;
                        if (!(_base_type_index < _base_type_size)) {
                              break;
                        }
                        _tmp104_ = vala_list_get (_base_type_list, _base_type_index);
                        base_type = (ValaDataType*) _tmp104_;
                        if (!first) {
                              vala_code_writer_write_string (self, ", ");
                        } else {
                              first = FALSE;
                        }
                        vala_code_writer_write_type (self, base_type);
                        _vala_code_node_unref0 (base_type);
                  }
                  _vala_iterable_unref0 (_base_type_list);
            }
      }
      vala_code_writer_write_begin_block (self);
      _tmp105_ = vala_symbol_get_scope ((ValaSymbol*) cl);
      _tmp106_ = _vala_scope_ref0 (_tmp105_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp106_;
      _tmp107_ = vala_class_get_classes (cl);
      _tmp108_ = _tmp107_;
      vala_code_writer_visit_sorted (self, _tmp108_);
      _vala_iterable_unref0 (_tmp108_);
      _tmp109_ = vala_class_get_structs (cl);
      _tmp110_ = _tmp109_;
      vala_code_writer_visit_sorted (self, _tmp110_);
      _vala_iterable_unref0 (_tmp110_);
      _tmp111_ = vala_class_get_enums (cl);
      _tmp112_ = _tmp111_;
      vala_code_writer_visit_sorted (self, _tmp112_);
      _vala_iterable_unref0 (_tmp112_);
      _tmp113_ = vala_class_get_delegates (cl);
      _tmp114_ = _tmp113_;
      vala_code_writer_visit_sorted (self, _tmp114_);
      _vala_iterable_unref0 (_tmp114_);
      _tmp115_ = vala_class_get_fields (cl);
      _tmp116_ = _tmp115_;
      vala_code_writer_visit_sorted (self, _tmp116_);
      _vala_iterable_unref0 (_tmp116_);
      _tmp117_ = vala_class_get_constants (cl);
      _tmp118_ = _tmp117_;
      vala_code_writer_visit_sorted (self, _tmp118_);
      _vala_iterable_unref0 (_tmp118_);
      _tmp119_ = vala_object_type_symbol_get_methods ((ValaObjectTypeSymbol*) cl);
      _tmp120_ = _tmp119_;
      vala_code_writer_visit_sorted (self, _tmp120_);
      _vala_iterable_unref0 (_tmp120_);
      _tmp121_ = vala_object_type_symbol_get_properties ((ValaObjectTypeSymbol*) cl);
      _tmp122_ = _tmp121_;
      vala_code_writer_visit_sorted (self, _tmp122_);
      _vala_iterable_unref0 (_tmp122_);
      _tmp123_ = vala_object_type_symbol_get_signals ((ValaObjectTypeSymbol*) cl);
      _tmp124_ = _tmp123_;
      vala_code_writer_visit_sorted (self, _tmp124_);
      _vala_iterable_unref0 (_tmp124_);
      _tmp125_ = vala_class_get_constructor (cl);
      if (_tmp125_ != NULL) {
            ValaConstructor* _tmp126_ = NULL;
            _tmp126_ = vala_class_get_constructor (cl);
            vala_code_node_accept ((ValaCodeNode*) _tmp126_, (ValaCodeVisitor*) self);
      }
      _tmp127_ = vala_scope_get_parent_scope (self->priv->current_scope);
      _tmp128_ = _vala_scope_ref0 (_tmp127_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp128_;
      vala_code_writer_write_end_block (self);
      vala_code_writer_write_newline (self);
      _vala_iterable_unref0 (base_types);
      _vala_iterable_unref0 (type_params);
}


static void vala_code_writer_visit_sorted (ValaCodeWriter* self, ValaList* symbols) {
      ValaArrayList* _tmp3_ = NULL;
      ValaArrayList* sorted_symbols;
      g_return_if_fail (self != NULL);
      g_return_if_fail (symbols != NULL);
      if (self->priv->type != VALA_CODE_WRITER_TYPE_EXTERNAL) {
            {
                  ValaList* _tmp0_;
                  ValaList* _sym_list;
                  gint _tmp1_;
                  gint _sym_size;
                  gint _sym_index;
                  _tmp0_ = _vala_iterable_ref0 (symbols);
                  _sym_list = _tmp0_;
                  _tmp1_ = vala_collection_get_size ((ValaCollection*) _sym_list);
                  _sym_size = _tmp1_;
                  _sym_index = -1;
                  while (TRUE) {
                        gpointer _tmp2_ = NULL;
                        ValaSymbol* sym;
                        _sym_index = _sym_index + 1;
                        if (!(_sym_index < _sym_size)) {
                              break;
                        }
                        _tmp2_ = vala_list_get (_sym_list, _sym_index);
                        sym = (ValaSymbol*) _tmp2_;
                        vala_code_node_accept ((ValaCodeNode*) sym, (ValaCodeVisitor*) self);
                        _vala_code_node_unref0 (sym);
                  }
                  _vala_iterable_unref0 (_sym_list);
            }
            return;
      }
      _tmp3_ = vala_array_list_new (VALA_TYPE_SYMBOL, (GBoxedCopyFunc) vala_code_node_ref, vala_code_node_unref, g_direct_equal);
      sorted_symbols = _tmp3_;
      {
            ValaList* _tmp4_;
            ValaList* _sym_list;
            gint _tmp5_;
            gint _sym_size;
            gint _sym_index;
            _tmp4_ = _vala_iterable_ref0 (symbols);
            _sym_list = _tmp4_;
            _tmp5_ = vala_collection_get_size ((ValaCollection*) _sym_list);
            _sym_size = _tmp5_;
            _sym_index = -1;
            while (TRUE) {
                  gpointer _tmp6_ = NULL;
                  ValaSymbol* sym;
                  gint left;
                  gint _tmp7_;
                  gint right;
                  gboolean _tmp8_ = FALSE;
                  _sym_index = _sym_index + 1;
                  if (!(_sym_index < _sym_size)) {
                        break;
                  }
                  _tmp6_ = vala_list_get (_sym_list, _sym_index);
                  sym = (ValaSymbol*) _tmp6_;
                  left = 0;
                  _tmp7_ = vala_collection_get_size ((ValaCollection*) sorted_symbols);
                  right = _tmp7_ - 1;
                  if (left > right) {
                        _tmp8_ = TRUE;
                  } else {
                        const gchar* _tmp9_ = NULL;
                        gpointer _tmp10_ = NULL;
                        ValaSymbol* _tmp11_;
                        const gchar* _tmp12_ = NULL;
                        _tmp9_ = vala_symbol_get_name (sym);
                        _tmp10_ = vala_list_get ((ValaList*) sorted_symbols, left);
                        _tmp11_ = (ValaSymbol*) _tmp10_;
                        _tmp12_ = vala_symbol_get_name (_tmp11_);
                        _tmp8_ = g_strcmp0 (_tmp9_, _tmp12_) < 0;
                        _vala_code_node_unref0 (_tmp11_);
                  }
                  if (_tmp8_) {
                        vala_list_insert ((ValaList*) sorted_symbols, 0, sym);
                  } else {
                        const gchar* _tmp13_ = NULL;
                        gpointer _tmp14_ = NULL;
                        ValaSymbol* _tmp15_;
                        const gchar* _tmp16_ = NULL;
                        gboolean _tmp17_;
                        _tmp13_ = vala_symbol_get_name (sym);
                        _tmp14_ = vala_list_get ((ValaList*) sorted_symbols, right);
                        _tmp15_ = (ValaSymbol*) _tmp14_;
                        _tmp16_ = vala_symbol_get_name (_tmp15_);
                        _tmp17_ = g_strcmp0 (_tmp13_, _tmp16_) > 0;
                        _vala_code_node_unref0 (_tmp15_);
                        if (_tmp17_) {
                              vala_collection_add ((ValaCollection*) sorted_symbols, sym);
                        } else {
                              while (TRUE) {
                                    gint i;
                                    const gchar* _tmp18_ = NULL;
                                    gpointer _tmp19_ = NULL;
                                    ValaSymbol* _tmp20_;
                                    const gchar* _tmp21_ = NULL;
                                    gboolean _tmp22_;
                                    if (!((right - left) > 1)) {
                                          break;
                                    }
                                    i = (right + left) / 2;
                                    _tmp18_ = vala_symbol_get_name (sym);
                                    _tmp19_ = vala_list_get ((ValaList*) sorted_symbols, i);
                                    _tmp20_ = (ValaSymbol*) _tmp19_;
                                    _tmp21_ = vala_symbol_get_name (_tmp20_);
                                    _tmp22_ = g_strcmp0 (_tmp18_, _tmp21_) > 0;
                                    _vala_code_node_unref0 (_tmp20_);
                                    if (_tmp22_) {
                                          left = i;
                                    } else {
                                          right = i;
                                    }
                              }
                              vala_list_insert ((ValaList*) sorted_symbols, left + 1, sym);
                        }
                  }
                  _vala_code_node_unref0 (sym);
            }
            _vala_iterable_unref0 (_sym_list);
      }
      {
            ValaArrayList* _tmp23_;
            ValaArrayList* _sym_list;
            gint _tmp24_;
            gint _sym_size;
            gint _sym_index;
            _tmp23_ = _vala_iterable_ref0 (sorted_symbols);
            _sym_list = _tmp23_;
            _tmp24_ = vala_collection_get_size ((ValaCollection*) _sym_list);
            _sym_size = _tmp24_;
            _sym_index = -1;
            while (TRUE) {
                  gpointer _tmp25_ = NULL;
                  ValaSymbol* sym;
                  _sym_index = _sym_index + 1;
                  if (!(_sym_index < _sym_size)) {
                        break;
                  }
                  _tmp25_ = vala_list_get ((ValaList*) _sym_list, _sym_index);
                  sym = (ValaSymbol*) _tmp25_;
                  vala_code_node_accept ((ValaCodeNode*) sym, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (sym);
            }
            _vala_iterable_unref0 (_sym_list);
      }
      _vala_iterable_unref0 (sorted_symbols);
}


static void vala_code_writer_real_visit_struct (ValaCodeVisitor* base, ValaStruct* st) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gboolean _tmp2_;
      gchar* _tmp3_ = NULL;
      gchar* _tmp4_;
      gchar* _tmp5_ = NULL;
      gchar* _tmp6_;
      gboolean _tmp7_;
      gboolean _tmp12_;
      gboolean _tmp21_;
      gboolean _tmp22_;
      gchar* _tmp23_ = NULL;
      gchar* _tmp24_;
      gchar* _tmp25_ = NULL;
      gchar* _tmp26_;
      gboolean _tmp27_;
      gboolean _tmp28_;
      gboolean _tmp32_;
      const gchar* _tmp36_ = NULL;
      ValaDataType* _tmp37_ = NULL;
      ValaScope* _tmp39_ = NULL;
      ValaScope* _tmp40_;
      ValaList* _tmp44_ = NULL;
      ValaList* _tmp45_;
      ValaList* _tmp46_ = NULL;
      ValaList* _tmp47_;
      ValaList* _tmp48_ = NULL;
      ValaList* _tmp49_;
      ValaScope* _tmp50_ = NULL;
      ValaScope* _tmp51_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (st != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) st);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) st);
      if (!_tmp1_) {
            return;
      }
      _tmp2_ = vala_struct_get_is_immutable (st);
      if (_tmp2_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[Immutable]");
            vala_code_writer_write_newline (self);
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) st);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) st);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "[CCode (");
      _tmp3_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) st, FALSE);
      _tmp4_ = _tmp3_;
      _tmp5_ = vala_struct_get_default_cname (st);
      _tmp6_ = _tmp5_;
      _tmp7_ = g_strcmp0 (_tmp4_, _tmp6_) != 0;
      _g_free0 (_tmp6_);
      _g_free0 (_tmp4_);
      if (_tmp7_) {
            gchar* _tmp8_ = NULL;
            gchar* _tmp9_;
            gchar* _tmp10_ = NULL;
            gchar* _tmp11_;
            _tmp8_ = vala_typesymbol_get_cname ((ValaTypeSymbol*) st, FALSE);
            _tmp9_ = _tmp8_;
            _tmp10_ = g_strdup_printf ("cname = \"%s\", ", _tmp9_);
            _tmp11_ = _tmp10_;
            vala_code_writer_write_string (self, _tmp11_);
            _g_free0 (_tmp11_);
            _g_free0 (_tmp9_);
      }
      _tmp12_ = vala_struct_get_has_type_id (st);
      if (!_tmp12_) {
            vala_code_writer_write_string (self, "has_type_id = false, ");
      } else {
            gboolean _tmp13_ = FALSE;
            gboolean _tmp14_;
            _tmp14_ = vala_struct_is_simple_type (st);
            if (!_tmp14_) {
                  gchar* _tmp15_ = NULL;
                  gchar* _tmp16_;
                  _tmp15_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) st);
                  _tmp16_ = _tmp15_;
                  _tmp13_ = g_strcmp0 (_tmp16_, "G_TYPE_POINTER") != 0;
                  _g_free0 (_tmp16_);
            } else {
                  _tmp13_ = FALSE;
            }
            if (_tmp13_) {
                  gchar* _tmp17_ = NULL;
                  gchar* _tmp18_;
                  gchar* _tmp19_ = NULL;
                  gchar* _tmp20_;
                  _tmp17_ = vala_typesymbol_get_type_id ((ValaTypeSymbol*) st);
                  _tmp18_ = _tmp17_;
                  _tmp19_ = g_strdup_printf ("type_id = \"%s\", ", _tmp18_);
                  _tmp20_ = _tmp19_;
                  vala_code_writer_write_string (self, _tmp20_);
                  _g_free0 (_tmp20_);
                  _g_free0 (_tmp18_);
            }
      }
      _tmp21_ = vala_struct_get_has_copy_function (st);
      if (!_tmp21_) {
            vala_code_writer_write_string (self, "has_copy_function = false, ");
      }
      _tmp22_ = vala_struct_get_has_destroy_function (st);
      if (!_tmp22_) {
            vala_code_writer_write_string (self, "has_destroy_function = false, ");
      }
      _tmp23_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) st);
      _tmp24_ = _tmp23_;
      _tmp25_ = g_strdup_printf ("cheader_filename = \"%s\")]", _tmp24_);
      _tmp26_ = _tmp25_;
      vala_code_writer_write_string (self, _tmp26_);
      _g_free0 (_tmp26_);
      _g_free0 (_tmp24_);
      vala_code_writer_write_newline (self);
      _tmp27_ = vala_struct_is_simple_type (st);
      if (_tmp27_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[SimpleType]");
            vala_code_writer_write_newline (self);
      }
      _tmp28_ = vala_struct_is_integer_type (st);
      if (_tmp28_) {
            gint _tmp29_;
            gchar* _tmp30_ = NULL;
            gchar* _tmp31_;
            vala_code_writer_write_indent (self);
            _tmp29_ = vala_struct_get_rank (st);
            _tmp30_ = g_strdup_printf ("[IntegerType (rank = %d)]", _tmp29_);
            _tmp31_ = _tmp30_;
            vala_code_writer_write_string (self, _tmp31_);
            _g_free0 (_tmp31_);
            vala_code_writer_write_newline (self);
      }
      _tmp32_ = vala_struct_is_floating_type (st);
      if (_tmp32_) {
            gint _tmp33_;
            gchar* _tmp34_ = NULL;
            gchar* _tmp35_;
            vala_code_writer_write_indent (self);
            _tmp33_ = vala_struct_get_rank (st);
            _tmp34_ = g_strdup_printf ("[FloatingType (rank = %d)]", _tmp33_);
            _tmp35_ = _tmp34_;
            vala_code_writer_write_string (self, _tmp35_);
            _g_free0 (_tmp35_);
            vala_code_writer_write_newline (self);
      }
      vala_code_writer_write_attributes (self, (ValaCodeNode*) st);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) st);
      vala_code_writer_write_string (self, "struct ");
      _tmp36_ = vala_symbol_get_name ((ValaSymbol*) st);
      vala_code_writer_write_identifier (self, _tmp36_);
      _tmp37_ = vala_struct_get_base_type (st);
      if (_tmp37_ != NULL) {
            ValaDataType* _tmp38_ = NULL;
            vala_code_writer_write_string (self, " : ");
            _tmp38_ = vala_struct_get_base_type (st);
            vala_code_writer_write_type (self, _tmp38_);
      }
      vala_code_writer_write_begin_block (self);
      _tmp39_ = vala_symbol_get_scope ((ValaSymbol*) st);
      _tmp40_ = _vala_scope_ref0 (_tmp39_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp40_;
      {
            ValaList* _tmp41_ = NULL;
            ValaList* _field_list;
            gint _tmp42_;
            gint _field_size;
            gint _field_index;
            _tmp41_ = vala_struct_get_fields (st);
            _field_list = _tmp41_;
            _tmp42_ = vala_collection_get_size ((ValaCollection*) _field_list);
            _field_size = _tmp42_;
            _field_index = -1;
            while (TRUE) {
                  gpointer _tmp43_ = NULL;
                  ValaField* field;
                  _field_index = _field_index + 1;
                  if (!(_field_index < _field_size)) {
                        break;
                  }
                  _tmp43_ = vala_list_get (_field_list, _field_index);
                  field = (ValaField*) _tmp43_;
                  vala_code_node_accept ((ValaCodeNode*) field, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (field);
            }
            _vala_iterable_unref0 (_field_list);
      }
      _tmp44_ = vala_struct_get_constants (st);
      _tmp45_ = _tmp44_;
      vala_code_writer_visit_sorted (self, _tmp45_);
      _vala_iterable_unref0 (_tmp45_);
      _tmp46_ = vala_struct_get_methods (st);
      _tmp47_ = _tmp46_;
      vala_code_writer_visit_sorted (self, _tmp47_);
      _vala_iterable_unref0 (_tmp47_);
      _tmp48_ = vala_struct_get_properties (st);
      _tmp49_ = _tmp48_;
      vala_code_writer_visit_sorted (self, _tmp49_);
      _vala_iterable_unref0 (_tmp49_);
      _tmp50_ = vala_scope_get_parent_scope (self->priv->current_scope);
      _tmp51_ = _vala_scope_ref0 (_tmp50_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp51_;
      vala_code_writer_write_end_block (self);
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_interface (ValaCodeVisitor* base, ValaInterface* iface) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      gchar* _tmp6_ = NULL;
      gchar* _tmp7_;
      gchar* _tmp8_ = NULL;
      gchar* _tmp9_;
      gboolean _tmp10_;
      gchar* _tmp15_ = NULL;
      gchar* _tmp16_;
      gchar* _tmp17_ = NULL;
      gchar* _tmp18_;
      gboolean _tmp19_;
      const gchar* _tmp24_ = NULL;
      ValaList* _tmp25_ = NULL;
      ValaList* type_params;
      gint _tmp26_;
      ValaList* _tmp31_ = NULL;
      ValaList* prerequisites;
      gint _tmp32_;
      ValaScope* _tmp36_ = NULL;
      ValaScope* _tmp37_;
      ValaList* _tmp38_ = NULL;
      ValaList* _tmp39_;
      ValaList* _tmp40_ = NULL;
      ValaList* _tmp41_;
      ValaList* _tmp42_ = NULL;
      ValaList* _tmp43_;
      ValaList* _tmp44_ = NULL;
      ValaList* _tmp45_;
      ValaList* _tmp46_ = NULL;
      ValaList* _tmp47_;
      ValaList* _tmp48_ = NULL;
      ValaList* _tmp49_;
      ValaList* _tmp50_ = NULL;
      ValaList* _tmp51_;
      ValaList* _tmp52_ = NULL;
      ValaList* _tmp53_;
      ValaList* _tmp54_ = NULL;
      ValaList* _tmp55_;
      ValaScope* _tmp56_ = NULL;
      ValaScope* _tmp57_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (iface != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) iface);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) iface);
      if (!_tmp1_) {
            return;
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) iface);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) iface);
      vala_code_writer_write_indent (self);
      _tmp2_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) iface);
      _tmp3_ = _tmp2_;
      _tmp4_ = g_strdup_printf ("[CCode (cheader_filename = \"%s\"", _tmp3_);
      _tmp5_ = _tmp4_;
      vala_code_writer_write_string (self, _tmp5_);
      _g_free0 (_tmp5_);
      _g_free0 (_tmp3_);
      _tmp6_ = vala_interface_get_lower_case_csuffix (iface);
      _tmp7_ = _tmp6_;
      _tmp8_ = vala_interface_get_default_lower_case_csuffix (iface);
      _tmp9_ = _tmp8_;
      _tmp10_ = g_strcmp0 (_tmp7_, _tmp9_) != 0;
      _g_free0 (_tmp9_);
      _g_free0 (_tmp7_);
      if (_tmp10_) {
            gchar* _tmp11_ = NULL;
            gchar* _tmp12_;
            gchar* _tmp13_ = NULL;
            gchar* _tmp14_;
            _tmp11_ = vala_interface_get_lower_case_csuffix (iface);
            _tmp12_ = _tmp11_;
            _tmp13_ = g_strdup_printf (", lower_case_csuffix = \"%s\"", _tmp12_);
            _tmp14_ = _tmp13_;
            vala_code_writer_write_string (self, _tmp14_);
            _g_free0 (_tmp14_);
            _g_free0 (_tmp12_);
      }
      _tmp15_ = vala_interface_get_type_cname (iface);
      _tmp16_ = _tmp15_;
      _tmp17_ = vala_interface_get_default_type_cname (iface);
      _tmp18_ = _tmp17_;
      _tmp19_ = g_strcmp0 (_tmp16_, _tmp18_) != 0;
      _g_free0 (_tmp18_);
      _g_free0 (_tmp16_);
      if (_tmp19_) {
            gchar* _tmp20_ = NULL;
            gchar* _tmp21_;
            gchar* _tmp22_ = NULL;
            gchar* _tmp23_;
            _tmp20_ = vala_interface_get_type_cname (iface);
            _tmp21_ = _tmp20_;
            _tmp22_ = g_strdup_printf (", type_cname = \"%s\"", _tmp21_);
            _tmp23_ = _tmp22_;
            vala_code_writer_write_string (self, _tmp23_);
            _g_free0 (_tmp23_);
            _g_free0 (_tmp21_);
      }
      vala_code_writer_write_string (self, ")]");
      vala_code_writer_write_newline (self);
      vala_code_writer_write_attributes (self, (ValaCodeNode*) iface);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) iface);
      vala_code_writer_write_string (self, "interface ");
      _tmp24_ = vala_symbol_get_name ((ValaSymbol*) iface);
      vala_code_writer_write_identifier (self, _tmp24_);
      _tmp25_ = vala_object_type_symbol_get_type_parameters ((ValaObjectTypeSymbol*) iface);
      type_params = _tmp25_;
      _tmp26_ = vala_collection_get_size ((ValaCollection*) type_params);
      if (_tmp26_ > 0) {
            gboolean first;
            vala_code_writer_write_string (self, "<");
            first = TRUE;
            {
                  ValaList* _tmp27_;
                  ValaList* _type_param_list;
                  gint _tmp28_;
                  gint _type_param_size;
                  gint _type_param_index;
                  _tmp27_ = _vala_iterable_ref0 (type_params);
                  _type_param_list = _tmp27_;
                  _tmp28_ = vala_collection_get_size ((ValaCollection*) _type_param_list);
                  _type_param_size = _tmp28_;
                  _type_param_index = -1;
                  while (TRUE) {
                        gpointer _tmp29_ = NULL;
                        ValaTypeParameter* type_param;
                        const gchar* _tmp30_ = NULL;
                        _type_param_index = _type_param_index + 1;
                        if (!(_type_param_index < _type_param_size)) {
                              break;
                        }
                        _tmp29_ = vala_list_get (_type_param_list, _type_param_index);
                        type_param = (ValaTypeParameter*) _tmp29_;
                        if (first) {
                              first = FALSE;
                        } else {
                              vala_code_writer_write_string (self, ",");
                        }
                        _tmp30_ = vala_symbol_get_name ((ValaSymbol*) type_param);
                        vala_code_writer_write_identifier (self, _tmp30_);
                        _vala_code_node_unref0 (type_param);
                  }
                  _vala_iterable_unref0 (_type_param_list);
            }
            vala_code_writer_write_string (self, ">");
      }
      _tmp31_ = vala_interface_get_prerequisites (iface);
      prerequisites = _tmp31_;
      _tmp32_ = vala_collection_get_size ((ValaCollection*) prerequisites);
      if (_tmp32_ > 0) {
            gboolean first;
            vala_code_writer_write_string (self, " : ");
            first = TRUE;
            {
                  ValaList* _tmp33_;
                  ValaList* _prerequisite_list;
                  gint _tmp34_;
                  gint _prerequisite_size;
                  gint _prerequisite_index;
                  _tmp33_ = _vala_iterable_ref0 (prerequisites);
                  _prerequisite_list = _tmp33_;
                  _tmp34_ = vala_collection_get_size ((ValaCollection*) _prerequisite_list);
                  _prerequisite_size = _tmp34_;
                  _prerequisite_index = -1;
                  while (TRUE) {
                        gpointer _tmp35_ = NULL;
                        ValaDataType* prerequisite;
                        _prerequisite_index = _prerequisite_index + 1;
                        if (!(_prerequisite_index < _prerequisite_size)) {
                              break;
                        }
                        _tmp35_ = vala_list_get (_prerequisite_list, _prerequisite_index);
                        prerequisite = (ValaDataType*) _tmp35_;
                        if (!first) {
                              vala_code_writer_write_string (self, ", ");
                        } else {
                              first = FALSE;
                        }
                        vala_code_writer_write_type (self, prerequisite);
                        _vala_code_node_unref0 (prerequisite);
                  }
                  _vala_iterable_unref0 (_prerequisite_list);
            }
      }
      vala_code_writer_write_begin_block (self);
      _tmp36_ = vala_symbol_get_scope ((ValaSymbol*) iface);
      _tmp37_ = _vala_scope_ref0 (_tmp36_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp37_;
      _tmp38_ = vala_interface_get_classes (iface);
      _tmp39_ = _tmp38_;
      vala_code_writer_visit_sorted (self, _tmp39_);
      _vala_iterable_unref0 (_tmp39_);
      _tmp40_ = vala_interface_get_structs (iface);
      _tmp41_ = _tmp40_;
      vala_code_writer_visit_sorted (self, _tmp41_);
      _vala_iterable_unref0 (_tmp41_);
      _tmp42_ = vala_interface_get_enums (iface);
      _tmp43_ = _tmp42_;
      vala_code_writer_visit_sorted (self, _tmp43_);
      _vala_iterable_unref0 (_tmp43_);
      _tmp44_ = vala_interface_get_delegates (iface);
      _tmp45_ = _tmp44_;
      vala_code_writer_visit_sorted (self, _tmp45_);
      _vala_iterable_unref0 (_tmp45_);
      _tmp46_ = vala_interface_get_fields (iface);
      _tmp47_ = _tmp46_;
      vala_code_writer_visit_sorted (self, _tmp47_);
      _vala_iterable_unref0 (_tmp47_);
      _tmp48_ = vala_interface_get_constants (iface);
      _tmp49_ = _tmp48_;
      vala_code_writer_visit_sorted (self, _tmp49_);
      _vala_iterable_unref0 (_tmp49_);
      _tmp50_ = vala_object_type_symbol_get_methods ((ValaObjectTypeSymbol*) iface);
      _tmp51_ = _tmp50_;
      vala_code_writer_visit_sorted (self, _tmp51_);
      _vala_iterable_unref0 (_tmp51_);
      _tmp52_ = vala_object_type_symbol_get_properties ((ValaObjectTypeSymbol*) iface);
      _tmp53_ = _tmp52_;
      vala_code_writer_visit_sorted (self, _tmp53_);
      _vala_iterable_unref0 (_tmp53_);
      _tmp54_ = vala_object_type_symbol_get_signals ((ValaObjectTypeSymbol*) iface);
      _tmp55_ = _tmp54_;
      vala_code_writer_visit_sorted (self, _tmp55_);
      _vala_iterable_unref0 (_tmp55_);
      _tmp56_ = vala_scope_get_parent_scope (self->priv->current_scope);
      _tmp57_ = _vala_scope_ref0 (_tmp56_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp57_;
      vala_code_writer_write_end_block (self);
      vala_code_writer_write_newline (self);
      _vala_iterable_unref0 (prerequisites);
      _vala_iterable_unref0 (type_params);
}


static void vala_code_writer_real_visit_enum (ValaCodeVisitor* base, ValaEnum* en) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      gboolean _tmp6_;
      gchar* _tmp7_ = NULL;
      gchar* _tmp8_;
      gchar* _tmp9_ = NULL;
      gchar* _tmp10_;
      gboolean _tmp11_;
      const gchar* _tmp12_ = NULL;
      gboolean first;
      ValaScope* _tmp37_ = NULL;
      ValaScope* _tmp38_;
      ValaScope* _tmp45_ = NULL;
      ValaScope* _tmp46_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (en != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) en);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) en);
      if (!_tmp1_) {
            return;
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) en);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) en);
      vala_code_writer_write_indent (self);
      _tmp2_ = vala_symbol_get_cprefix ((ValaSymbol*) en);
      _tmp3_ = _tmp2_;
      _tmp4_ = g_strdup_printf ("[CCode (cprefix = \"%s\", ", _tmp3_);
      _tmp5_ = _tmp4_;
      vala_code_writer_write_string (self, _tmp5_);
      _g_free0 (_tmp5_);
      _g_free0 (_tmp3_);
      _tmp6_ = vala_enum_get_has_type_id (en);
      if (!_tmp6_) {
            vala_code_writer_write_string (self, "has_type_id = false, ");
      }
      _tmp7_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) en);
      _tmp8_ = _tmp7_;
      _tmp9_ = g_strdup_printf ("cheader_filename = \"%s\")]", _tmp8_);
      _tmp10_ = _tmp9_;
      vala_code_writer_write_string (self, _tmp10_);
      _g_free0 (_tmp10_);
      _g_free0 (_tmp8_);
      _tmp11_ = vala_enum_get_is_flags (en);
      if (_tmp11_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[Flags]");
      }
      vala_code_writer_write_attributes (self, (ValaCodeNode*) en);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) en);
      vala_code_writer_write_string (self, "enum ");
      _tmp12_ = vala_symbol_get_name ((ValaSymbol*) en);
      vala_code_writer_write_identifier (self, _tmp12_);
      vala_code_writer_write_begin_block (self);
      first = TRUE;
      {
            ValaList* _tmp13_ = NULL;
            ValaList* _ev_list;
            gint _tmp14_;
            gint _ev_size;
            gint _ev_index;
            _tmp13_ = vala_enum_get_values (en);
            _ev_list = _tmp13_;
            _tmp14_ = vala_collection_get_size ((ValaCollection*) _ev_list);
            _ev_size = _tmp14_;
            _ev_index = -1;
            while (TRUE) {
                  gpointer _tmp15_ = NULL;
                  ValaEnumValue* ev;
                  gchar* _tmp16_ = NULL;
                  gchar* _tmp17_;
                  gchar* _tmp18_ = NULL;
                  gchar* _tmp19_;
                  gboolean _tmp20_;
                  const gchar* _tmp25_ = NULL;
                  gboolean _tmp26_ = FALSE;
                  _ev_index = _ev_index + 1;
                  if (!(_ev_index < _ev_size)) {
                        break;
                  }
                  _tmp15_ = vala_list_get (_ev_list, _ev_index);
                  ev = (ValaEnumValue*) _tmp15_;
                  if (first) {
                        first = FALSE;
                  } else {
                        vala_code_writer_write_string (self, ",");
                        vala_code_writer_write_newline (self);
                  }
                  _tmp16_ = vala_constant_get_cname ((ValaConstant*) ev);
                  _tmp17_ = _tmp16_;
                  _tmp18_ = vala_constant_get_default_cname ((ValaConstant*) ev);
                  _tmp19_ = _tmp18_;
                  _tmp20_ = g_strcmp0 (_tmp17_, _tmp19_) != 0;
                  _g_free0 (_tmp19_);
                  _g_free0 (_tmp17_);
                  if (_tmp20_) {
                        gchar* _tmp21_ = NULL;
                        gchar* _tmp22_;
                        gchar* _tmp23_ = NULL;
                        gchar* _tmp24_;
                        vala_code_writer_write_indent (self);
                        _tmp21_ = vala_constant_get_cname ((ValaConstant*) ev);
                        _tmp22_ = _tmp21_;
                        _tmp23_ = g_strdup_printf ("[CCode (cname = \"%s\")]", _tmp22_);
                        _tmp24_ = _tmp23_;
                        vala_code_writer_write_string (self, _tmp24_);
                        _g_free0 (_tmp24_);
                        _g_free0 (_tmp22_);
                  }
                  vala_code_writer_write_indent (self);
                  _tmp25_ = vala_symbol_get_name ((ValaSymbol*) ev);
                  vala_code_writer_write_identifier (self, _tmp25_);
                  if (self->priv->type == VALA_CODE_WRITER_TYPE_FAST) {
                        ValaExpression* _tmp27_ = NULL;
                        _tmp27_ = vala_constant_get_value ((ValaConstant*) ev);
                        _tmp26_ = _tmp27_ != NULL;
                  } else {
                        _tmp26_ = FALSE;
                  }
                  if (_tmp26_) {
                        ValaExpression* _tmp28_ = NULL;
                        vala_code_writer_write_string (self, " = ");
                        _tmp28_ = vala_constant_get_value ((ValaConstant*) ev);
                        vala_code_node_accept ((ValaCodeNode*) _tmp28_, (ValaCodeVisitor*) self);
                  }
                  _vala_code_node_unref0 (ev);
            }
            _vala_iterable_unref0 (_ev_list);
      }
      if (!first) {
            gboolean _tmp29_ = FALSE;
            ValaList* _tmp30_ = NULL;
            ValaList* _tmp31_;
            gint _tmp32_;
            gboolean _tmp33_;
            _tmp30_ = vala_enum_get_methods (en);
            _tmp31_ = _tmp30_;
            _tmp32_ = vala_collection_get_size ((ValaCollection*) _tmp31_);
            _tmp33_ = _tmp32_ > 0;
            _vala_iterable_unref0 (_tmp31_);
            if (_tmp33_) {
                  _tmp29_ = TRUE;
            } else {
                  ValaList* _tmp34_ = NULL;
                  ValaList* _tmp35_;
                  gint _tmp36_;
                  _tmp34_ = vala_enum_get_constants (en);
                  _tmp35_ = _tmp34_;
                  _tmp36_ = vala_collection_get_size ((ValaCollection*) _tmp35_);
                  _tmp29_ = _tmp36_ > 0;
                  _vala_iterable_unref0 (_tmp35_);
            }
            if (_tmp29_) {
                  vala_code_writer_write_string (self, ";");
            }
            vala_code_writer_write_newline (self);
      }
      _tmp37_ = vala_symbol_get_scope ((ValaSymbol*) en);
      _tmp38_ = _vala_scope_ref0 (_tmp37_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp38_;
      {
            ValaList* _tmp39_ = NULL;
            ValaList* _m_list;
            gint _tmp40_;
            gint _m_size;
            gint _m_index;
            _tmp39_ = vala_enum_get_methods (en);
            _m_list = _tmp39_;
            _tmp40_ = vala_collection_get_size ((ValaCollection*) _m_list);
            _m_size = _tmp40_;
            _m_index = -1;
            while (TRUE) {
                  gpointer _tmp41_ = NULL;
                  ValaMethod* m;
                  _m_index = _m_index + 1;
                  if (!(_m_index < _m_size)) {
                        break;
                  }
                  _tmp41_ = vala_list_get (_m_list, _m_index);
                  m = (ValaMethod*) _tmp41_;
                  vala_code_node_accept ((ValaCodeNode*) m, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (m);
            }
            _vala_iterable_unref0 (_m_list);
      }
      {
            ValaList* _tmp42_ = NULL;
            ValaList* _c_list;
            gint _tmp43_;
            gint _c_size;
            gint _c_index;
            _tmp42_ = vala_enum_get_constants (en);
            _c_list = _tmp42_;
            _tmp43_ = vala_collection_get_size ((ValaCollection*) _c_list);
            _c_size = _tmp43_;
            _c_index = -1;
            while (TRUE) {
                  gpointer _tmp44_ = NULL;
                  ValaConstant* c;
                  _c_index = _c_index + 1;
                  if (!(_c_index < _c_size)) {
                        break;
                  }
                  _tmp44_ = vala_list_get (_c_list, _c_index);
                  c = (ValaConstant*) _tmp44_;
                  vala_code_node_accept ((ValaCodeNode*) c, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (c);
            }
            _vala_iterable_unref0 (_c_list);
      }
      _tmp45_ = vala_scope_get_parent_scope (self->priv->current_scope);
      _tmp46_ = _vala_scope_ref0 (_tmp45_);
      _vala_scope_unref0 (self->priv->current_scope);
      self->priv->current_scope = _tmp46_;
      vala_code_writer_write_end_block (self);
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_error_domain (ValaCodeVisitor* base, ValaErrorDomain* edomain) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      gchar* _tmp6_ = NULL;
      gchar* _tmp7_;
      const gchar* _tmp8_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (edomain != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) edomain);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) edomain);
      if (!_tmp1_) {
            return;
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) edomain);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) edomain);
      vala_code_writer_write_indent (self);
      _tmp2_ = vala_symbol_get_cprefix ((ValaSymbol*) edomain);
      _tmp3_ = _tmp2_;
      _tmp4_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) edomain);
      _tmp5_ = _tmp4_;
      _tmp6_ = g_strdup_printf ("[CCode (cprefix = \"%s\", cheader_filename = \"%s\")]", _tmp3_, _tmp5_);
      _tmp7_ = _tmp6_;
      vala_code_writer_write_string (self, _tmp7_);
      _g_free0 (_tmp7_);
      _g_free0 (_tmp5_);
      _g_free0 (_tmp3_);
      vala_code_writer_write_attributes (self, (ValaCodeNode*) edomain);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) edomain);
      vala_code_writer_write_string (self, "errordomain ");
      _tmp8_ = vala_symbol_get_name ((ValaSymbol*) edomain);
      vala_code_writer_write_identifier (self, _tmp8_);
      vala_code_writer_write_begin_block (self);
      vala_code_node_accept_children ((ValaCodeNode*) edomain, (ValaCodeVisitor*) self);
      vala_code_writer_write_end_block (self);
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_error_code (ValaCodeVisitor* base, ValaErrorCode* ecode) {
      ValaCodeWriter * self;
      const gchar* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (ecode != NULL);
      vala_code_writer_write_indent (self);
      _tmp0_ = vala_symbol_get_name ((ValaSymbol*) ecode);
      vala_code_writer_write_identifier (self, _tmp0_);
      vala_code_writer_write_string (self, ",");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_constant (ValaCodeVisitor* base, ValaConstant* c) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      gboolean _tmp6_;
      gboolean custom_cname;
      ValaSymbol* _tmp7_ = NULL;
      gboolean custom_cheaders;
      gboolean _tmp8_ = FALSE;
      ValaDataType* _tmp17_ = NULL;
      const gchar* _tmp18_ = NULL;
      gboolean _tmp19_ = FALSE;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (c != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) c);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) c);
      if (!_tmp1_) {
            return;
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) c);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) c);
      _tmp2_ = vala_constant_get_cname (c);
      _tmp3_ = _tmp2_;
      _tmp4_ = vala_constant_get_default_cname (c);
      _tmp5_ = _tmp4_;
      _tmp6_ = g_strcmp0 (_tmp3_, _tmp5_) != 0;
      _g_free0 (_tmp5_);
      _g_free0 (_tmp3_);
      custom_cname = _tmp6_;
      _tmp7_ = vala_symbol_get_parent_symbol ((ValaSymbol*) c);
      custom_cheaders = VALA_IS_NAMESPACE (_tmp7_);
      if (custom_cname) {
            _tmp8_ = TRUE;
      } else {
            _tmp8_ = custom_cheaders;
      }
      if (_tmp8_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[CCode (");
            if (custom_cname) {
                  gchar* _tmp9_ = NULL;
                  gchar* _tmp10_;
                  gchar* _tmp11_ = NULL;
                  gchar* _tmp12_;
                  _tmp9_ = vala_constant_get_cname (c);
                  _tmp10_ = _tmp9_;
                  _tmp11_ = g_strdup_printf ("cname = \"%s\"", _tmp10_);
                  _tmp12_ = _tmp11_;
                  vala_code_writer_write_string (self, _tmp12_);
                  _g_free0 (_tmp12_);
                  _g_free0 (_tmp10_);
            }
            if (custom_cheaders) {
                  gchar* _tmp13_ = NULL;
                  gchar* _tmp14_;
                  gchar* _tmp15_ = NULL;
                  gchar* _tmp16_;
                  if (custom_cname) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  _tmp13_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) c);
                  _tmp14_ = _tmp13_;
                  _tmp15_ = g_strdup_printf ("cheader_filename = \"%s\"", _tmp14_);
                  _tmp16_ = _tmp15_;
                  vala_code_writer_write_string (self, _tmp16_);
                  _g_free0 (_tmp16_);
                  _g_free0 (_tmp14_);
            }
            vala_code_writer_write_string (self, ")]");
      }
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) c);
      vala_code_writer_write_string (self, "const ");
      _tmp17_ = vala_constant_get_type_reference (c);
      vala_code_writer_write_type (self, _tmp17_);
      vala_code_writer_write_string (self, " ");
      _tmp18_ = vala_symbol_get_name ((ValaSymbol*) c);
      vala_code_writer_write_identifier (self, _tmp18_);
      if (self->priv->type == VALA_CODE_WRITER_TYPE_FAST) {
            ValaExpression* _tmp20_ = NULL;
            _tmp20_ = vala_constant_get_value (c);
            _tmp19_ = _tmp20_ != NULL;
      } else {
            _tmp19_ = FALSE;
      }
      if (_tmp19_) {
            ValaExpression* _tmp21_ = NULL;
            vala_code_writer_write_string (self, " = ");
            _tmp21_ = vala_constant_get_value (c);
            vala_code_node_accept ((ValaCodeNode*) _tmp21_, (ValaCodeVisitor*) self);
      }
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_field (ValaCodeVisitor* base, ValaField* f) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      gboolean _tmp6_;
      gboolean custom_cname;
      gchar* _tmp7_ = NULL;
      gchar* _tmp8_;
      gboolean _tmp9_;
      gboolean custom_ctype;
      ValaSymbol* _tmp10_ = NULL;
      gboolean custom_cheaders;
      gchar* _tmp11_ = NULL;
      gchar* _tmp12_;
      gboolean _tmp13_;
      gboolean custom_array_length_cname;
      const gchar* _tmp14_ = NULL;
      gboolean custom_array_length_type;
      gboolean _tmp15_ = FALSE;
      gboolean _tmp16_ = FALSE;
      gboolean _tmp17_ = FALSE;
      gboolean _tmp18_ = FALSE;
      gboolean _tmp19_ = FALSE;
      ValaMemberBinding _tmp53_;
      ValaDataType* _tmp55_ = NULL;
      gboolean _tmp56_;
      ValaDataType* _tmp57_ = NULL;
      const gchar* _tmp58_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (f != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) f);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) f);
      if (!_tmp1_) {
            return;
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) f);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) f);
      _tmp2_ = vala_field_get_cname (f);
      _tmp3_ = _tmp2_;
      _tmp4_ = vala_field_get_default_cname (f);
      _tmp5_ = _tmp4_;
      _tmp6_ = g_strcmp0 (_tmp3_, _tmp5_) != 0;
      _g_free0 (_tmp5_);
      _g_free0 (_tmp3_);
      custom_cname = _tmp6_;
      _tmp7_ = vala_field_get_ctype (f);
      _tmp8_ = _tmp7_;
      _tmp9_ = _tmp8_ != NULL;
      _g_free0 (_tmp8_);
      custom_ctype = _tmp9_;
      _tmp10_ = vala_symbol_get_parent_symbol ((ValaSymbol*) f);
      custom_cheaders = VALA_IS_NAMESPACE (_tmp10_);
      _tmp11_ = vala_variable_get_array_length_cname ((ValaVariable*) f);
      _tmp12_ = _tmp11_;
      _tmp13_ = _tmp12_ != NULL;
      _g_free0 (_tmp12_);
      custom_array_length_cname = _tmp13_;
      _tmp14_ = vala_variable_get_array_length_type ((ValaVariable*) f);
      custom_array_length_type = _tmp14_ != NULL;
      if (custom_cname) {
            _tmp19_ = TRUE;
      } else {
            _tmp19_ = custom_ctype;
      }
      if (_tmp19_) {
            _tmp18_ = TRUE;
      } else {
            _tmp18_ = custom_cheaders;
      }
      if (_tmp18_) {
            _tmp17_ = TRUE;
      } else {
            _tmp17_ = custom_array_length_cname;
      }
      if (_tmp17_) {
            _tmp16_ = TRUE;
      } else {
            _tmp16_ = custom_array_length_type;
      }
      if (_tmp16_) {
            _tmp15_ = TRUE;
      } else {
            gboolean _tmp20_ = FALSE;
            gboolean _tmp21_;
            _tmp21_ = vala_variable_get_no_array_length ((ValaVariable*) f);
            if (_tmp21_) {
                  ValaDataType* _tmp22_ = NULL;
                  _tmp22_ = vala_variable_get_variable_type ((ValaVariable*) f);
                  _tmp20_ = VALA_IS_ARRAY_TYPE (_tmp22_);
            } else {
                  _tmp20_ = FALSE;
            }
            _tmp15_ = _tmp20_;
      }
      if (_tmp15_) {
            ValaDataType* _tmp36_ = NULL;
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[CCode (");
            if (custom_cname) {
                  gchar* _tmp23_ = NULL;
                  gchar* _tmp24_;
                  gchar* _tmp25_ = NULL;
                  gchar* _tmp26_;
                  _tmp23_ = vala_field_get_cname (f);
                  _tmp24_ = _tmp23_;
                  _tmp25_ = g_strdup_printf ("cname = \"%s\"", _tmp24_);
                  _tmp26_ = _tmp25_;
                  vala_code_writer_write_string (self, _tmp26_);
                  _g_free0 (_tmp26_);
                  _g_free0 (_tmp24_);
            }
            if (custom_ctype) {
                  gchar* _tmp27_ = NULL;
                  gchar* _tmp28_;
                  gchar* _tmp29_ = NULL;
                  gchar* _tmp30_;
                  if (custom_cname) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  _tmp27_ = vala_field_get_ctype (f);
                  _tmp28_ = _tmp27_;
                  _tmp29_ = g_strdup_printf ("type = \"%s\"", _tmp28_);
                  _tmp30_ = _tmp29_;
                  vala_code_writer_write_string (self, _tmp30_);
                  _g_free0 (_tmp30_);
                  _g_free0 (_tmp28_);
            }
            if (custom_cheaders) {
                  gboolean _tmp31_ = FALSE;
                  gchar* _tmp32_ = NULL;
                  gchar* _tmp33_;
                  gchar* _tmp34_ = NULL;
                  gchar* _tmp35_;
                  if (custom_cname) {
                        _tmp31_ = TRUE;
                  } else {
                        _tmp31_ = custom_ctype;
                  }
                  if (_tmp31_) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  _tmp32_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) f);
                  _tmp33_ = _tmp32_;
                  _tmp34_ = g_strdup_printf ("cheader_filename = \"%s\"", _tmp33_);
                  _tmp35_ = _tmp34_;
                  vala_code_writer_write_string (self, _tmp35_);
                  _g_free0 (_tmp35_);
                  _g_free0 (_tmp33_);
            }
            _tmp36_ = vala_variable_get_variable_type ((ValaVariable*) f);
            if (VALA_IS_ARRAY_TYPE (_tmp36_)) {
                  gboolean _tmp37_;
                  _tmp37_ = vala_variable_get_no_array_length ((ValaVariable*) f);
                  if (_tmp37_) {
                        gboolean _tmp38_ = FALSE;
                        gboolean _tmp39_ = FALSE;
                        gboolean _tmp40_;
                        if (custom_cname) {
                              _tmp39_ = TRUE;
                        } else {
                              _tmp39_ = custom_ctype;
                        }
                        if (_tmp39_) {
                              _tmp38_ = TRUE;
                        } else {
                              _tmp38_ = custom_cheaders;
                        }
                        if (_tmp38_) {
                              vala_code_writer_write_string (self, ", ");
                        }
                        vala_code_writer_write_string (self, "array_length = false");
                        _tmp40_ = vala_variable_get_array_null_terminated ((ValaVariable*) f);
                        if (_tmp40_) {
                              vala_code_writer_write_string (self, ", array_null_terminated = true");
                        }
                  } else {
                        if (custom_array_length_cname) {
                              gboolean _tmp41_ = FALSE;
                              gboolean _tmp42_ = FALSE;
                              gchar* _tmp43_ = NULL;
                              gchar* _tmp44_;
                              gchar* _tmp45_ = NULL;
                              gchar* _tmp46_;
                              if (custom_cname) {
                                    _tmp42_ = TRUE;
                              } else {
                                    _tmp42_ = custom_ctype;
                              }
                              if (_tmp42_) {
                                    _tmp41_ = TRUE;
                              } else {
                                    _tmp41_ = custom_cheaders;
                              }
                              if (_tmp41_) {
                                    vala_code_writer_write_string (self, ", ");
                              }
                              _tmp43_ = vala_variable_get_array_length_cname ((ValaVariable*) f);
                              _tmp44_ = _tmp43_;
                              _tmp45_ = g_strdup_printf ("array_length_cname = \"%s\"", _tmp44_);
                              _tmp46_ = _tmp45_;
                              vala_code_writer_write_string (self, _tmp46_);
                              _g_free0 (_tmp46_);
                              _g_free0 (_tmp44_);
                        }
                        if (custom_array_length_type) {
                              gboolean _tmp47_ = FALSE;
                              gboolean _tmp48_ = FALSE;
                              gboolean _tmp49_ = FALSE;
                              const gchar* _tmp50_ = NULL;
                              gchar* _tmp51_ = NULL;
                              gchar* _tmp52_;
                              if (custom_cname) {
                                    _tmp49_ = TRUE;
                              } else {
                                    _tmp49_ = custom_ctype;
                              }
                              if (_tmp49_) {
                                    _tmp48_ = TRUE;
                              } else {
                                    _tmp48_ = custom_cheaders;
                              }
                              if (_tmp48_) {
                                    _tmp47_ = TRUE;
                              } else {
                                    _tmp47_ = custom_array_length_cname;
                              }
                              if (_tmp47_) {
                                    vala_code_writer_write_string (self, ", ");
                              }
                              _tmp50_ = vala_variable_get_array_length_type ((ValaVariable*) f);
                              _tmp51_ = g_strdup_printf ("array_length_type = \"%s\"", _tmp50_);
                              _tmp52_ = _tmp51_;
                              vala_code_writer_write_string (self, _tmp52_);
                              _g_free0 (_tmp52_);
                        }
                  }
            }
            vala_code_writer_write_string (self, ")]");
      }
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) f);
      _tmp53_ = vala_field_get_binding (f);
      if (_tmp53_ == VALA_MEMBER_BINDING_STATIC) {
            vala_code_writer_write_string (self, "static ");
      } else {
            ValaMemberBinding _tmp54_;
            _tmp54_ = vala_field_get_binding (f);
            if (_tmp54_ == VALA_MEMBER_BINDING_CLASS) {
                  vala_code_writer_write_string (self, "class ");
            }
      }
      _tmp55_ = vala_variable_get_variable_type ((ValaVariable*) f);
      _tmp56_ = vala_data_type_is_weak (_tmp55_);
      if (_tmp56_) {
            vala_code_writer_write_string (self, "weak ");
      }
      _tmp57_ = vala_variable_get_variable_type ((ValaVariable*) f);
      vala_code_writer_write_type (self, _tmp57_);
      vala_code_writer_write_string (self, " ");
      _tmp58_ = vala_symbol_get_name ((ValaSymbol*) f);
      vala_code_writer_write_identifier (self, _tmp58_);
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_write_error_domains (ValaCodeWriter* self, ValaList* error_domains) {
      gint _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (error_domains != NULL);
      _tmp0_ = vala_collection_get_size ((ValaCollection*) error_domains);
      if (_tmp0_ > 0) {
            gboolean first;
            vala_code_writer_write_string (self, " throws ");
            first = TRUE;
            {
                  ValaList* _tmp1_;
                  ValaList* _type_list;
                  gint _tmp2_;
                  gint _type_size;
                  gint _type_index;
                  _tmp1_ = _vala_iterable_ref0 (error_domains);
                  _type_list = _tmp1_;
                  _tmp2_ = vala_collection_get_size ((ValaCollection*) _type_list);
                  _type_size = _tmp2_;
                  _type_index = -1;
                  while (TRUE) {
                        gpointer _tmp3_ = NULL;
                        ValaDataType* type;
                        _type_index = _type_index + 1;
                        if (!(_type_index < _type_size)) {
                              break;
                        }
                        _tmp3_ = vala_list_get (_type_list, _type_index);
                        type = (ValaDataType*) _tmp3_;
                        if (!first) {
                              vala_code_writer_write_string (self, ", ");
                        } else {
                              first = FALSE;
                        }
                        vala_code_writer_write_type (self, type);
                        _vala_code_node_unref0 (type);
                  }
                  _vala_iterable_unref0 (_type_list);
            }
      }
}


static gboolean vala_code_writer_float_equal (ValaCodeWriter* self, gdouble d1, gdouble d2) {
      gboolean result = FALSE;
      g_return_val_if_fail (self != NULL, FALSE);
      result = ((gint) (d1 * 1000)) == ((gint) (d2 * 1000));
      return result;
}


static void vala_code_writer_write_params (ValaCodeWriter* self, ValaList* params) {
      gint i;
      g_return_if_fail (self != NULL);
      g_return_if_fail (params != NULL);
      vala_code_writer_write_string (self, "(");
      i = 1;
      {
            ValaList* _tmp0_;
            ValaList* _param_list;
            gint _tmp1_;
            gint _param_size;
            gint _param_index;
            _tmp0_ = _vala_iterable_ref0 (params);
            _param_list = _tmp0_;
            _tmp1_ = vala_collection_get_size ((ValaCollection*) _param_list);
            _param_size = _tmp1_;
            _param_index = -1;
            while (TRUE) {
                  gpointer _tmp2_ = NULL;
                  ValaParameter* param;
                  gboolean _tmp3_;
                  GString* _tmp4_ = NULL;
                  GString* ccode_params;
                  gchar* _tmp5_;
                  gchar* separator;
                  gdouble _tmp6_;
                  gboolean _tmp7_;
                  const gchar* _tmp10_ = NULL;
                  gboolean _tmp13_ = FALSE;
                  gboolean _tmp14_;
                  gboolean _tmp17_ = FALSE;
                  gboolean _tmp18_;
                  gboolean _tmp21_ = FALSE;
                  const gchar* _tmp22_ = NULL;
                  gboolean _tmp26_ = FALSE;
                  gchar* _tmp27_ = NULL;
                  gchar* _tmp28_;
                  gboolean _tmp29_;
                  gdouble _tmp34_;
                  gboolean _tmp35_;
                  gdouble _tmp38_;
                  gboolean _tmp39_;
                  gboolean _tmp44_;
                  ValaParameterDirection _tmp45_;
                  ValaDataType* _tmp52_ = NULL;
                  const gchar* _tmp53_ = NULL;
                  ValaExpression* _tmp54_ = NULL;
                  _param_index = _param_index + 1;
                  if (!(_param_index < _param_size)) {
                        break;
                  }
                  _tmp2_ = vala_list_get (_param_list, _param_index);
                  param = (ValaParameter*) _tmp2_;
                  if (i > 1) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  _tmp3_ = vala_parameter_get_ellipsis (param);
                  if (_tmp3_) {
                        vala_code_writer_write_string (self, "...");
                        _vala_code_node_unref0 (param);
                        continue;
                  }
                  _tmp4_ = g_string_new ("");
                  ccode_params = _tmp4_;
                  _tmp5_ = g_strdup ("");
                  separator = _tmp5_;
                  _tmp6_ = vala_parameter_get_cparameter_position (param);
                  _tmp7_ = vala_code_writer_float_equal (self, _tmp6_, (gdouble) i);
                  if (!_tmp7_) {
                        gdouble _tmp8_;
                        gchar* _tmp9_;
                        _tmp8_ = vala_parameter_get_cparameter_position (param);
                        g_string_append_printf (ccode_params, "%spos = %g", separator, _tmp8_);
                        _tmp9_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp9_;
                  }
                  _tmp10_ = vala_parameter_get_ctype (param);
                  if (_tmp10_ != NULL) {
                        const gchar* _tmp11_ = NULL;
                        gchar* _tmp12_;
                        _tmp11_ = vala_parameter_get_ctype (param);
                        g_string_append_printf (ccode_params, "%stype = \"%s\"", separator, _tmp11_);
                        _tmp12_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp12_;
                  }
                  _tmp14_ = vala_variable_get_no_array_length ((ValaVariable*) param);
                  if (_tmp14_) {
                        ValaDataType* _tmp15_ = NULL;
                        _tmp15_ = vala_variable_get_variable_type ((ValaVariable*) param);
                        _tmp13_ = VALA_IS_ARRAY_TYPE (_tmp15_);
                  } else {
                        _tmp13_ = FALSE;
                  }
                  if (_tmp13_) {
                        gchar* _tmp16_;
                        g_string_append_printf (ccode_params, "%sarray_length = false", separator);
                        _tmp16_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp16_;
                  }
                  _tmp18_ = vala_variable_get_array_null_terminated ((ValaVariable*) param);
                  if (_tmp18_) {
                        ValaDataType* _tmp19_ = NULL;
                        _tmp19_ = vala_variable_get_variable_type ((ValaVariable*) param);
                        _tmp17_ = VALA_IS_ARRAY_TYPE (_tmp19_);
                  } else {
                        _tmp17_ = FALSE;
                  }
                  if (_tmp17_) {
                        gchar* _tmp20_;
                        g_string_append_printf (ccode_params, "%sarray_null_terminated = true", separator);
                        _tmp20_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp20_;
                  }
                  _tmp22_ = vala_variable_get_array_length_type ((ValaVariable*) param);
                  if (_tmp22_ != NULL) {
                        ValaDataType* _tmp23_ = NULL;
                        _tmp23_ = vala_variable_get_variable_type ((ValaVariable*) param);
                        _tmp21_ = VALA_IS_ARRAY_TYPE (_tmp23_);
                  } else {
                        _tmp21_ = FALSE;
                  }
                  if (_tmp21_) {
                        const gchar* _tmp24_ = NULL;
                        gchar* _tmp25_;
                        _tmp24_ = vala_variable_get_array_length_type ((ValaVariable*) param);
                        g_string_append_printf (ccode_params, "%sarray_length_type = \"%s\"", separator, _tmp24_);
                        _tmp25_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp25_;
                  }
                  _tmp27_ = vala_variable_get_array_length_cname ((ValaVariable*) param);
                  _tmp28_ = _tmp27_;
                  _tmp29_ = _tmp28_ != NULL;
                  _g_free0 (_tmp28_);
                  if (_tmp29_) {
                        ValaDataType* _tmp30_ = NULL;
                        _tmp30_ = vala_variable_get_variable_type ((ValaVariable*) param);
                        _tmp26_ = VALA_IS_ARRAY_TYPE (_tmp30_);
                  } else {
                        _tmp26_ = FALSE;
                  }
                  if (_tmp26_) {
                        gchar* _tmp31_ = NULL;
                        gchar* _tmp32_;
                        gchar* _tmp33_;
                        _tmp31_ = vala_variable_get_array_length_cname ((ValaVariable*) param);
                        _tmp32_ = _tmp31_;
                        g_string_append_printf (ccode_params, "%sarray_length_cname = \"%s\"", separator, _tmp32_);
                        _g_free0 (_tmp32_);
                        _tmp33_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp33_;
                  }
                  _tmp34_ = vala_parameter_get_carray_length_parameter_position (param);
                  _tmp35_ = vala_code_writer_float_equal (self, _tmp34_, i + 0.1);
                  if (!_tmp35_) {
                        gdouble _tmp36_;
                        gchar* _tmp37_;
                        _tmp36_ = vala_parameter_get_carray_length_parameter_position (param);
                        g_string_append_printf (ccode_params, "%sarray_length_pos = %g", separator, _tmp36_);
                        _tmp37_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp37_;
                  }
                  _tmp38_ = vala_parameter_get_cdelegate_target_parameter_position (param);
                  _tmp39_ = vala_code_writer_float_equal (self, _tmp38_, i + 0.1);
                  if (!_tmp39_) {
                        gdouble _tmp40_;
                        gchar* _tmp41_;
                        _tmp40_ = vala_parameter_get_cdelegate_target_parameter_position (param);
                        g_string_append_printf (ccode_params, "%sdelegate_target_pos = %g", separator, _tmp40_);
                        _tmp41_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp41_;
                  }
                  if (ccode_params->len > 0) {
                        gchar* _tmp42_ = NULL;
                        gchar* _tmp43_;
                        _tmp42_ = g_strdup_printf ("[CCode (%s)] ", ccode_params->str);
                        _tmp43_ = _tmp42_;
                        vala_code_writer_write_string (self, _tmp43_);
                        _g_free0 (_tmp43_);
                  }
                  _tmp44_ = vala_parameter_get_params_array (param);
                  if (_tmp44_) {
                        vala_code_writer_write_string (self, "params ");
                  }
                  _tmp45_ = vala_parameter_get_direction (param);
                  if (_tmp45_ == VALA_PARAMETER_DIRECTION_IN) {
                        ValaDataType* _tmp46_ = NULL;
                        gboolean _tmp47_;
                        _tmp46_ = vala_variable_get_variable_type ((ValaVariable*) param);
                        _tmp47_ = vala_data_type_get_value_owned (_tmp46_);
                        if (_tmp47_) {
                              vala_code_writer_write_string (self, "owned ");
                        }
                  } else {
                        ValaParameterDirection _tmp48_;
                        ValaDataType* _tmp50_ = NULL;
                        gboolean _tmp51_;
                        _tmp48_ = vala_parameter_get_direction (param);
                        if (_tmp48_ == VALA_PARAMETER_DIRECTION_REF) {
                              vala_code_writer_write_string (self, "ref ");
                        } else {
                              ValaParameterDirection _tmp49_;
                              _tmp49_ = vala_parameter_get_direction (param);
                              if (_tmp49_ == VALA_PARAMETER_DIRECTION_OUT) {
                                    vala_code_writer_write_string (self, "out ");
                              }
                        }
                        _tmp50_ = vala_variable_get_variable_type ((ValaVariable*) param);
                        _tmp51_ = vala_data_type_is_weak (_tmp50_);
                        if (_tmp51_) {
                              vala_code_writer_write_string (self, "unowned ");
                        }
                  }
                  _tmp52_ = vala_variable_get_variable_type ((ValaVariable*) param);
                  vala_code_writer_write_type (self, _tmp52_);
                  vala_code_writer_write_string (self, " ");
                  _tmp53_ = vala_symbol_get_name ((ValaSymbol*) param);
                  vala_code_writer_write_identifier (self, _tmp53_);
                  _tmp54_ = vala_variable_get_initializer ((ValaVariable*) param);
                  if (_tmp54_ != NULL) {
                        ValaExpression* _tmp55_ = NULL;
                        vala_code_writer_write_string (self, " = ");
                        _tmp55_ = vala_variable_get_initializer ((ValaVariable*) param);
                        vala_code_node_accept ((ValaCodeNode*) _tmp55_, (ValaCodeVisitor*) self);
                  }
                  i++;
                  _g_free0 (separator);
                  _g_string_free0 (ccode_params);
                  _vala_code_node_unref0 (param);
            }
            _vala_iterable_unref0 (_param_list);
      }
      vala_code_writer_write_string (self, ")");
}


static void vala_code_writer_real_visit_delegate (ValaCodeVisitor* base, ValaDelegate* cb) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gchar* _tmp2_ = NULL;
      gchar* _tmp3_;
      gchar* _tmp4_ = NULL;
      gchar* _tmp5_;
      gboolean _tmp6_;
      ValaDataType* _tmp12_ = NULL;
      const gchar* _tmp13_ = NULL;
      ValaList* _tmp14_ = NULL;
      ValaList* type_params;
      gint _tmp15_;
      ValaList* _tmp20_ = NULL;
      ValaList* _tmp21_;
      ValaList* _tmp22_ = NULL;
      ValaList* _tmp23_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (cb != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) cb);
      if (_tmp0_) {
            return;
      }
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) cb);
      if (!_tmp1_) {
            return;
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) cb);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) cb);
      vala_code_writer_write_indent (self);
      _tmp2_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) cb);
      _tmp3_ = _tmp2_;
      _tmp4_ = g_strdup_printf ("[CCode (cheader_filename = \"%s\"", _tmp3_);
      _tmp5_ = _tmp4_;
      vala_code_writer_write_string (self, _tmp5_);
      _g_free0 (_tmp5_);
      _g_free0 (_tmp3_);
      _tmp6_ = vala_delegate_get_has_target (cb);
      if (!_tmp6_) {
            vala_code_writer_write_string (self, ", has_target = false");
      } else {
            gdouble _tmp7_;
            gboolean _tmp8_;
            _tmp7_ = vala_delegate_get_cinstance_parameter_position (cb);
            _tmp8_ = vala_code_writer_float_equal (self, _tmp7_, (gdouble) (-2));
            if (!_tmp8_) {
                  gdouble _tmp9_;
                  gchar* _tmp10_ = NULL;
                  gchar* _tmp11_;
                  _tmp9_ = vala_delegate_get_cinstance_parameter_position (cb);
                  _tmp10_ = g_strdup_printf (", instance_pos = %g", _tmp9_);
                  _tmp11_ = _tmp10_;
                  vala_code_writer_write_string (self, _tmp11_);
                  _g_free0 (_tmp11_);
            }
      }
      vala_code_writer_write_string (self, ")]");
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) cb);
      vala_code_writer_write_string (self, "delegate ");
      _tmp12_ = vala_delegate_get_return_type (cb);
      vala_code_writer_write_return_type (self, _tmp12_);
      vala_code_writer_write_string (self, " ");
      _tmp13_ = vala_symbol_get_name ((ValaSymbol*) cb);
      vala_code_writer_write_identifier (self, _tmp13_);
      _tmp14_ = vala_delegate_get_type_parameters (cb);
      type_params = _tmp14_;
      _tmp15_ = vala_collection_get_size ((ValaCollection*) type_params);
      if (_tmp15_ > 0) {
            gboolean first;
            vala_code_writer_write_string (self, "<");
            first = TRUE;
            {
                  ValaList* _tmp16_;
                  ValaList* _type_param_list;
                  gint _tmp17_;
                  gint _type_param_size;
                  gint _type_param_index;
                  _tmp16_ = _vala_iterable_ref0 (type_params);
                  _type_param_list = _tmp16_;
                  _tmp17_ = vala_collection_get_size ((ValaCollection*) _type_param_list);
                  _type_param_size = _tmp17_;
                  _type_param_index = -1;
                  while (TRUE) {
                        gpointer _tmp18_ = NULL;
                        ValaTypeParameter* type_param;
                        const gchar* _tmp19_ = NULL;
                        _type_param_index = _type_param_index + 1;
                        if (!(_type_param_index < _type_param_size)) {
                              break;
                        }
                        _tmp18_ = vala_list_get (_type_param_list, _type_param_index);
                        type_param = (ValaTypeParameter*) _tmp18_;
                        if (first) {
                              first = FALSE;
                        } else {
                              vala_code_writer_write_string (self, ",");
                        }
                        _tmp19_ = vala_symbol_get_name ((ValaSymbol*) type_param);
                        vala_code_writer_write_identifier (self, _tmp19_);
                        _vala_code_node_unref0 (type_param);
                  }
                  _vala_iterable_unref0 (_type_param_list);
            }
            vala_code_writer_write_string (self, ">");
      }
      vala_code_writer_write_string (self, " ");
      _tmp20_ = vala_delegate_get_parameters (cb);
      _tmp21_ = _tmp20_;
      vala_code_writer_write_params (self, _tmp21_);
      _vala_iterable_unref0 (_tmp21_);
      _tmp22_ = vala_code_node_get_error_types ((ValaCodeNode*) cb);
      _tmp23_ = _tmp22_;
      vala_code_writer_write_error_domains (self, _tmp23_);
      _vala_iterable_unref0 (_tmp23_);
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
      _vala_iterable_unref0 (type_params);
}


static void vala_code_writer_real_visit_constructor (ValaCodeVisitor* base, ValaConstructor* c) {
      ValaCodeWriter * self;
      ValaBlock* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (c != NULL);
      if (self->priv->type != VALA_CODE_WRITER_TYPE_DUMP) {
            return;
      }
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "construct");
      _tmp0_ = vala_subroutine_get_body ((ValaSubroutine*) c);
      vala_code_writer_write_code_block (self, _tmp0_);
      vala_code_writer_write_newline (self);
}


static gpointer _vala_code_node_ref0 (gpointer self) {
      return self ? vala_code_node_ref (self) : NULL;
}


static void vala_code_writer_real_visit_method (ValaCodeVisitor* base, ValaMethod* m) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_ = FALSE;
      gboolean _tmp2_;
      ValaAttribute* _tmp8_ = NULL;
      ValaAttribute* _tmp9_;
      gboolean _tmp10_;
      ValaAttribute* _tmp11_ = NULL;
      ValaAttribute* _tmp12_;
      gboolean _tmp13_;
      gboolean _tmp14_;
      gboolean _tmp15_;
      gboolean _tmp16_;
      ValaAttribute* _tmp17_ = NULL;
      ValaAttribute* _tmp18_;
      gboolean _tmp19_;
      ValaAttribute* _tmp20_ = NULL;
      ValaAttribute* _tmp21_;
      gboolean _tmp22_;
      ValaAttribute* _tmp23_ = NULL;
      ValaAttribute* _tmp24_;
      gboolean _tmp25_;
      GString* _tmp26_ = NULL;
      GString* ccode_params;
      gchar* _tmp27_;
      gchar* separator;
      gchar* _tmp28_ = NULL;
      gchar* _tmp29_;
      gchar* _tmp30_ = NULL;
      gchar* _tmp31_;
      gboolean _tmp32_;
      ValaSymbol* _tmp36_ = NULL;
      gdouble _tmp40_;
      gboolean _tmp41_;
      gboolean _tmp44_ = FALSE;
      gboolean _tmp45_;
      gdouble _tmp48_;
      gboolean _tmp49_;
      gboolean _tmp52_ = FALSE;
      gboolean _tmp53_;
      gboolean _tmp56_ = FALSE;
      const gchar* _tmp57_ = NULL;
      gdouble _tmp61_;
      gboolean _tmp62_;
      const gchar* _tmp65_ = NULL;
      const gchar* _tmp66_ = NULL;
      gboolean _tmp69_ = FALSE;
      gboolean _tmp70_;
      const gchar* _tmp78_ = NULL;
      ValaMethod* _tmp81_;
      ValaCreationMethod* _tmp82_;
      ValaCreationMethod* cm;
      ValaList* _tmp122_ = NULL;
      ValaList* _tmp123_;
      ValaProfile _tmp124_;
      ValaBlock* _tmp127_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (m != NULL);
      _tmp0_ = vala_symbol_get_external_package ((ValaSymbol*) m);
      if (_tmp0_) {
            return;
      }
      _tmp2_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) m);
      if (!_tmp2_) {
            _tmp1_ = TRUE;
      } else {
            gboolean _tmp3_ = FALSE;
            gboolean _tmp4_ = FALSE;
            ValaMethod* _tmp5_ = NULL;
            _tmp5_ = vala_method_get_base_interface_method (m);
            if (_tmp5_ != NULL) {
                  gboolean _tmp6_;
                  _tmp6_ = vala_method_get_is_abstract (m);
                  _tmp4_ = !_tmp6_;
            } else {
                  _tmp4_ = FALSE;
            }
            if (_tmp4_) {
                  gboolean _tmp7_;
                  _tmp7_ = vala_method_get_is_virtual (m);
                  _tmp3_ = !_tmp7_;
            } else {
                  _tmp3_ = FALSE;
            }
            _tmp1_ = _tmp3_;
      }
      if (_tmp1_) {
            if (self->priv->type != VALA_CODE_WRITER_TYPE_DUMP) {
                  return;
            }
      }
      _tmp8_ = vala_code_node_get_attribute ((ValaCodeNode*) m, "NoWrapper");
      _tmp9_ = _tmp8_;
      _tmp10_ = _tmp9_ != NULL;
      _vala_code_node_unref0 (_tmp9_);
      if (_tmp10_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[NoWrapper]");
      }
      _tmp11_ = vala_code_node_get_attribute ((ValaCodeNode*) m, "NoThrow");
      _tmp12_ = _tmp11_;
      _tmp13_ = _tmp12_ != NULL;
      _vala_code_node_unref0 (_tmp12_);
      if (_tmp13_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[NoThrow]");
      }
      _tmp14_ = vala_method_get_returns_modified_pointer (m);
      if (_tmp14_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[ReturnsModifiedPointer]");
      }
      _tmp15_ = vala_method_get_printf_format (m);
      if (_tmp15_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[PrintfFormat]");
      }
      _tmp16_ = vala_method_get_scanf_format (m);
      if (_tmp16_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[ScanfFormat]");
      }
      _tmp17_ = vala_code_node_get_attribute ((ValaCodeNode*) m, "Print");
      _tmp18_ = _tmp17_;
      _tmp19_ = _tmp18_ != NULL;
      _vala_code_node_unref0 (_tmp18_);
      if (_tmp19_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[Print]");
      }
      _tmp20_ = vala_code_node_get_attribute ((ValaCodeNode*) m, "NoReturn");
      _tmp21_ = _tmp20_;
      _tmp22_ = _tmp21_ != NULL;
      _vala_code_node_unref0 (_tmp21_);
      if (_tmp22_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[NoReturn]");
      }
      _tmp23_ = vala_code_node_get_attribute ((ValaCodeNode*) m, "Diagnostics");
      _tmp24_ = _tmp23_;
      _tmp25_ = _tmp24_ != NULL;
      _vala_code_node_unref0 (_tmp24_);
      if (_tmp25_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[Diagnostics]");
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) m);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) m);
      _tmp26_ = g_string_new ("");
      ccode_params = _tmp26_;
      _tmp27_ = g_strdup ("");
      separator = _tmp27_;
      _tmp28_ = vala_method_get_cname (m);
      _tmp29_ = _tmp28_;
      _tmp30_ = vala_method_get_default_cname (m);
      _tmp31_ = _tmp30_;
      _tmp32_ = g_strcmp0 (_tmp29_, _tmp31_) != 0;
      _g_free0 (_tmp31_);
      _g_free0 (_tmp29_);
      if (_tmp32_) {
            gchar* _tmp33_ = NULL;
            gchar* _tmp34_;
            gchar* _tmp35_;
            _tmp33_ = vala_method_get_cname (m);
            _tmp34_ = _tmp33_;
            g_string_append_printf (ccode_params, "%scname = \"%s\"", separator, _tmp34_);
            _g_free0 (_tmp34_);
            _tmp35_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp35_;
      }
      _tmp36_ = vala_symbol_get_parent_symbol ((ValaSymbol*) m);
      if (VALA_IS_NAMESPACE (_tmp36_)) {
            gchar* _tmp37_ = NULL;
            gchar* _tmp38_;
            gchar* _tmp39_;
            _tmp37_ = vala_code_writer_get_cheaders (self, (ValaSymbol*) m);
            _tmp38_ = _tmp37_;
            g_string_append_printf (ccode_params, "%scheader_filename = \"%s\"", separator, _tmp38_);
            _g_free0 (_tmp38_);
            _tmp39_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp39_;
      }
      _tmp40_ = vala_method_get_cinstance_parameter_position (m);
      _tmp41_ = vala_code_writer_float_equal (self, _tmp40_, (gdouble) 0);
      if (!_tmp41_) {
            gdouble _tmp42_;
            gchar* _tmp43_;
            _tmp42_ = vala_method_get_cinstance_parameter_position (m);
            g_string_append_printf (ccode_params, "%sinstance_pos = %g", separator, _tmp42_);
            _tmp43_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp43_;
      }
      _tmp45_ = vala_method_get_no_array_length (m);
      if (_tmp45_) {
            ValaDataType* _tmp46_ = NULL;
            _tmp46_ = vala_method_get_return_type (m);
            _tmp44_ = VALA_IS_ARRAY_TYPE (_tmp46_);
      } else {
            _tmp44_ = FALSE;
      }
      if (_tmp44_) {
            gchar* _tmp47_;
            g_string_append_printf (ccode_params, "%sarray_length = false", separator);
            _tmp47_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp47_;
      }
      _tmp48_ = vala_method_get_carray_length_parameter_position (m);
      _tmp49_ = vala_code_writer_float_equal (self, _tmp48_, (gdouble) (-3));
      if (!_tmp49_) {
            gdouble _tmp50_;
            gchar* _tmp51_;
            _tmp50_ = vala_method_get_carray_length_parameter_position (m);
            g_string_append_printf (ccode_params, "%sarray_length_pos = %g", separator, _tmp50_);
            _tmp51_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp51_;
      }
      _tmp53_ = vala_method_get_array_null_terminated (m);
      if (_tmp53_) {
            ValaDataType* _tmp54_ = NULL;
            _tmp54_ = vala_method_get_return_type (m);
            _tmp52_ = VALA_IS_ARRAY_TYPE (_tmp54_);
      } else {
            _tmp52_ = FALSE;
      }
      if (_tmp52_) {
            gchar* _tmp55_;
            g_string_append_printf (ccode_params, "%sarray_null_terminated = true", separator);
            _tmp55_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp55_;
      }
      _tmp57_ = vala_method_get_array_length_type (m);
      if (_tmp57_ != NULL) {
            ValaDataType* _tmp58_ = NULL;
            _tmp58_ = vala_method_get_return_type (m);
            _tmp56_ = VALA_IS_ARRAY_TYPE (_tmp58_);
      } else {
            _tmp56_ = FALSE;
      }
      if (_tmp56_) {
            const gchar* _tmp59_ = NULL;
            gchar* _tmp60_;
            _tmp59_ = vala_method_get_array_length_type (m);
            g_string_append_printf (ccode_params, "%sarray_length_type = \"%s\"", separator, _tmp59_);
            _tmp60_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp60_;
      }
      _tmp61_ = vala_method_get_cdelegate_target_parameter_position (m);
      _tmp62_ = vala_code_writer_float_equal (self, _tmp61_, (gdouble) (-3));
      if (!_tmp62_) {
            gdouble _tmp63_;
            gchar* _tmp64_;
            _tmp63_ = vala_method_get_cdelegate_target_parameter_position (m);
            g_string_append_printf (ccode_params, "%sdelegate_target_pos = %g", separator, _tmp63_);
            _tmp64_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp64_;
      }
      _tmp65_ = vala_method_get_vfunc_name (m);
      _tmp66_ = vala_symbol_get_name ((ValaSymbol*) m);
      if (g_strcmp0 (_tmp65_, _tmp66_) != 0) {
            const gchar* _tmp67_ = NULL;
            gchar* _tmp68_;
            _tmp67_ = vala_method_get_vfunc_name (m);
            g_string_append_printf (ccode_params, "%svfunc_name = \"%s\"", separator, _tmp67_);
            _tmp68_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp68_;
      }
      _tmp70_ = vala_method_get_coroutine (m);
      if (_tmp70_) {
            gchar* _tmp71_ = NULL;
            gchar* _tmp72_;
            gchar* _tmp73_ = NULL;
            gchar* _tmp74_;
            _tmp71_ = vala_method_get_finish_cname (m);
            _tmp72_ = _tmp71_;
            _tmp73_ = vala_method_get_default_finish_cname (m);
            _tmp74_ = _tmp73_;
            _tmp69_ = g_strcmp0 (_tmp72_, _tmp74_) != 0;
            _g_free0 (_tmp74_);
            _g_free0 (_tmp72_);
      } else {
            _tmp69_ = FALSE;
      }
      if (_tmp69_) {
            gchar* _tmp75_ = NULL;
            gchar* _tmp76_;
            gchar* _tmp77_;
            _tmp75_ = vala_method_get_finish_cname (m);
            _tmp76_ = _tmp75_;
            g_string_append_printf (ccode_params, "%sfinish_name = \"%s\"", separator, _tmp76_);
            _g_free0 (_tmp76_);
            _tmp77_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp77_;
      }
      _tmp78_ = vala_method_get_sentinel (m);
      if (g_strcmp0 (_tmp78_, VALA_METHOD_DEFAULT_SENTINEL) != 0) {
            const gchar* _tmp79_ = NULL;
            gchar* _tmp80_;
            _tmp79_ = vala_method_get_sentinel (m);
            g_string_append_printf (ccode_params, "%ssentinel = \"%s\"", separator, _tmp79_);
            _tmp80_ = g_strdup (", ");
            _g_free0 (separator);
            separator = _tmp80_;
      }
      _tmp81_ = m;
      _tmp82_ = _vala_code_node_ref0 (VALA_IS_CREATION_METHOD (_tmp81_) ? ((ValaCreationMethod*) _tmp81_) : NULL);
      cm = _tmp82_;
      if (cm != NULL) {
            const gchar* _tmp83_ = NULL;
            gboolean _tmp86_;
            gboolean _tmp88_;
            _tmp83_ = vala_creation_method_get_custom_return_type_cname (cm);
            if (_tmp83_ != NULL) {
                  const gchar* _tmp84_ = NULL;
                  gchar* _tmp85_;
                  _tmp84_ = vala_creation_method_get_custom_return_type_cname (cm);
                  g_string_append_printf (ccode_params, "%stype = \"%s\"", separator, _tmp84_);
                  _tmp85_ = g_strdup (", ");
                  _g_free0 (separator);
                  separator = _tmp85_;
            }
            _tmp86_ = vala_method_get_has_new_function (m);
            if (!_tmp86_) {
                  gchar* _tmp87_;
                  g_string_append_printf (ccode_params, "%shas_new_function = false", separator);
                  _tmp87_ = g_strdup (", ");
                  _g_free0 (separator);
                  separator = _tmp87_;
            }
            _tmp88_ = vala_method_get_has_construct_function (m);
            if (!_tmp88_) {
                  gchar* _tmp89_;
                  g_string_append_printf (ccode_params, "%shas_construct_function = false", separator);
                  _tmp89_ = g_strdup (", ");
                  _g_free0 (separator);
                  separator = _tmp89_;
            } else {
                  gboolean _tmp90_ = FALSE;
                  const gchar* _tmp91_ = NULL;
                  _tmp91_ = vala_symbol_get_name ((ValaSymbol*) m);
                  if (g_strcmp0 (_tmp91_, ".new") == 0) {
                        gchar* _tmp92_ = NULL;
                        gchar* _tmp93_;
                        gchar* _tmp94_ = NULL;
                        gchar* _tmp95_;
                        _tmp92_ = vala_method_get_real_cname (m);
                        _tmp93_ = _tmp92_;
                        _tmp94_ = vala_creation_method_get_default_construct_function (cm);
                        _tmp95_ = _tmp94_;
                        _tmp90_ = g_strcmp0 (_tmp93_, _tmp95_) != 0;
                        _g_free0 (_tmp95_);
                        _g_free0 (_tmp93_);
                  } else {
                        _tmp90_ = FALSE;
                  }
                  if (_tmp90_) {
                        gchar* _tmp96_ = NULL;
                        gchar* _tmp97_;
                        gchar* _tmp98_;
                        _tmp96_ = vala_method_get_real_cname (m);
                        _tmp97_ = _tmp96_;
                        g_string_append_printf (ccode_params, "%sconstruct_function = \"%s\"", separator, _tmp97_);
                        _g_free0 (_tmp97_);
                        _tmp98_ = g_strdup (", ");
                        _g_free0 (separator);
                        separator = _tmp98_;
                  }
            }
      }
      if (ccode_params->len > 0) {
            gchar* _tmp99_ = NULL;
            gchar* _tmp100_;
            vala_code_writer_write_indent (self);
            _tmp99_ = g_strdup_printf ("[CCode (%s)]", ccode_params->str);
            _tmp100_ = _tmp99_;
            vala_code_writer_write_string (self, _tmp100_);
            _g_free0 (_tmp100_);
      }
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) m);
      if (VALA_IS_CREATION_METHOD (m)) {
            gboolean _tmp101_;
            ValaSymbol* _tmp102_ = NULL;
            ValaTypeSymbol* _tmp103_;
            ValaTypeSymbol* datatype;
            const gchar* _tmp104_ = NULL;
            const gchar* _tmp105_ = NULL;
            _tmp101_ = vala_method_get_coroutine (m);
            if (_tmp101_) {
                  vala_code_writer_write_string (self, "async ");
            }
            _tmp102_ = vala_symbol_get_parent_symbol ((ValaSymbol*) m);
            _tmp103_ = _vala_code_node_ref0 (VALA_TYPESYMBOL (_tmp102_));
            datatype = _tmp103_;
            _tmp104_ = vala_symbol_get_name ((ValaSymbol*) datatype);
            vala_code_writer_write_identifier (self, _tmp104_);
            _tmp105_ = vala_symbol_get_name ((ValaSymbol*) m);
            if (g_strcmp0 (_tmp105_, ".new") != 0) {
                  const gchar* _tmp106_ = NULL;
                  vala_code_writer_write_string (self, ".");
                  _tmp106_ = vala_symbol_get_name ((ValaSymbol*) m);
                  vala_code_writer_write_identifier (self, _tmp106_);
            }
            vala_code_writer_write_string (self, " ");
            _vala_code_node_unref0 (datatype);
      } else {
            ValaMemberBinding _tmp107_;
            gboolean _tmp112_;
            gboolean _tmp113_;
            ValaDataType* _tmp114_ = NULL;
            const gchar* _tmp115_ = NULL;
            ValaList* _tmp116_ = NULL;
            ValaList* type_params;
            gint _tmp117_;
            _tmp107_ = vala_method_get_binding (m);
            if (_tmp107_ == VALA_MEMBER_BINDING_STATIC) {
                  vala_code_writer_write_string (self, "static ");
            } else {
                  ValaMemberBinding _tmp108_;
                  _tmp108_ = vala_method_get_binding (m);
                  if (_tmp108_ == VALA_MEMBER_BINDING_CLASS) {
                        vala_code_writer_write_string (self, "class ");
                  } else {
                        gboolean _tmp109_;
                        _tmp109_ = vala_method_get_is_abstract (m);
                        if (_tmp109_) {
                              vala_code_writer_write_string (self, "abstract ");
                        } else {
                              gboolean _tmp110_;
                              _tmp110_ = vala_method_get_is_virtual (m);
                              if (_tmp110_) {
                                    vala_code_writer_write_string (self, "virtual ");
                              } else {
                                    gboolean _tmp111_;
                                    _tmp111_ = vala_method_get_overrides (m);
                                    if (_tmp111_) {
                                          vala_code_writer_write_string (self, "override ");
                                    }
                              }
                        }
                  }
            }
            _tmp112_ = vala_symbol_get_hides ((ValaSymbol*) m);
            if (_tmp112_) {
                  vala_code_writer_write_string (self, "new ");
            }
            _tmp113_ = vala_method_get_coroutine (m);
            if (_tmp113_) {
                  vala_code_writer_write_string (self, "async ");
            }
            _tmp114_ = vala_method_get_return_type (m);
            vala_code_writer_write_return_type (self, _tmp114_);
            vala_code_writer_write_string (self, " ");
            _tmp115_ = vala_symbol_get_name ((ValaSymbol*) m);
            vala_code_writer_write_identifier (self, _tmp115_);
            _tmp116_ = vala_method_get_type_parameters (m);
            type_params = _tmp116_;
            _tmp117_ = vala_collection_get_size ((ValaCollection*) type_params);
            if (_tmp117_ > 0) {
                  gboolean first;
                  vala_code_writer_write_string (self, "<");
                  first = TRUE;
                  {
                        ValaList* _tmp118_;
                        ValaList* _type_param_list;
                        gint _tmp119_;
                        gint _type_param_size;
                        gint _type_param_index;
                        _tmp118_ = _vala_iterable_ref0 (type_params);
                        _type_param_list = _tmp118_;
                        _tmp119_ = vala_collection_get_size ((ValaCollection*) _type_param_list);
                        _type_param_size = _tmp119_;
                        _type_param_index = -1;
                        while (TRUE) {
                              gpointer _tmp120_ = NULL;
                              ValaTypeParameter* type_param;
                              const gchar* _tmp121_ = NULL;
                              _type_param_index = _type_param_index + 1;
                              if (!(_type_param_index < _type_param_size)) {
                                    break;
                              }
                              _tmp120_ = vala_list_get (_type_param_list, _type_param_index);
                              type_param = (ValaTypeParameter*) _tmp120_;
                              if (first) {
                                    first = FALSE;
                              } else {
                                    vala_code_writer_write_string (self, ",");
                              }
                              _tmp121_ = vala_symbol_get_name ((ValaSymbol*) type_param);
                              vala_code_writer_write_identifier (self, _tmp121_);
                              _vala_code_node_unref0 (type_param);
                        }
                        _vala_iterable_unref0 (_type_param_list);
                  }
                  vala_code_writer_write_string (self, ">");
            }
            vala_code_writer_write_string (self, " ");
            _vala_iterable_unref0 (type_params);
      }
      _tmp122_ = vala_method_get_parameters (m);
      _tmp123_ = _tmp122_;
      vala_code_writer_write_params (self, _tmp123_);
      _vala_iterable_unref0 (_tmp123_);
      _tmp124_ = vala_code_context_get_profile (self->priv->context);
      if (_tmp124_ != VALA_PROFILE_DOVA) {
            ValaList* _tmp125_ = NULL;
            ValaList* _tmp126_;
            _tmp125_ = vala_code_node_get_error_types ((ValaCodeNode*) m);
            _tmp126_ = _tmp125_;
            vala_code_writer_write_error_domains (self, _tmp126_);
            _vala_iterable_unref0 (_tmp126_);
      }
      _tmp127_ = vala_subroutine_get_body ((ValaSubroutine*) m);
      vala_code_writer_write_code_block (self, _tmp127_);
      vala_code_writer_write_newline (self);
      _vala_code_node_unref0 (cm);
      _g_free0 (separator);
      _g_string_free0 (ccode_params);
}


static void vala_code_writer_real_visit_creation_method (ValaCodeVisitor* base, ValaCreationMethod* m) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (m != NULL);
      vala_code_visitor_visit_method ((ValaCodeVisitor*) self, (ValaMethod*) m);
}


static void vala_code_writer_real_visit_property (ValaCodeVisitor* base, ValaProperty* prop) {
      ValaCodeWriter * self;
      gboolean _tmp0_ = FALSE;
      gboolean _tmp1_;
      gboolean _tmp7_;
      gboolean _tmp8_ = FALSE;
      ValaDataType* _tmp9_ = NULL;
      ValaMemberBinding _tmp12_;
      ValaDataType* _tmp16_ = NULL;
      const gchar* _tmp17_ = NULL;
      ValaPropertyAccessor* _tmp18_ = NULL;
      ValaPropertyAccessor* _tmp42_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (prop != NULL);
      _tmp1_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) prop);
      if (!_tmp1_) {
            _tmp0_ = TRUE;
      } else {
            gboolean _tmp2_ = FALSE;
            gboolean _tmp3_ = FALSE;
            ValaProperty* _tmp4_ = NULL;
            _tmp4_ = vala_property_get_base_interface_property (prop);
            if (_tmp4_ != NULL) {
                  gboolean _tmp5_;
                  _tmp5_ = vala_property_get_is_abstract (prop);
                  _tmp3_ = !_tmp5_;
            } else {
                  _tmp3_ = FALSE;
            }
            if (_tmp3_) {
                  gboolean _tmp6_;
                  _tmp6_ = vala_property_get_is_virtual (prop);
                  _tmp2_ = !_tmp6_;
            } else {
                  _tmp2_ = FALSE;
            }
            _tmp0_ = _tmp2_;
      }
      if (_tmp0_) {
            return;
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) prop);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) prop);
      _tmp7_ = vala_property_get_no_accessor_method (prop);
      if (_tmp7_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[NoAccessorMethod]");
      }
      _tmp9_ = vala_property_get_property_type (prop);
      if (VALA_IS_ARRAY_TYPE (_tmp9_)) {
            gboolean _tmp10_;
            _tmp10_ = vala_property_get_no_array_length (prop);
            _tmp8_ = _tmp10_;
      } else {
            _tmp8_ = FALSE;
      }
      if (_tmp8_) {
            gboolean _tmp11_;
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[CCode (array_length = false");
            _tmp11_ = vala_property_get_array_null_terminated (prop);
            if (_tmp11_) {
                  vala_code_writer_write_string (self, ", array_null_terminated = true");
            }
            vala_code_writer_write_string (self, ")]");
      }
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) prop);
      _tmp12_ = vala_property_get_binding (prop);
      if (_tmp12_ == VALA_MEMBER_BINDING_STATIC) {
            vala_code_writer_write_string (self, "static ");
      } else {
            gboolean _tmp13_;
            _tmp13_ = vala_property_get_is_abstract (prop);
            if (_tmp13_) {
                  vala_code_writer_write_string (self, "abstract ");
            } else {
                  gboolean _tmp14_;
                  _tmp14_ = vala_property_get_is_virtual (prop);
                  if (_tmp14_) {
                        vala_code_writer_write_string (self, "virtual ");
                  } else {
                        gboolean _tmp15_;
                        _tmp15_ = vala_property_get_overrides (prop);
                        if (_tmp15_) {
                              vala_code_writer_write_string (self, "override ");
                        }
                  }
            }
      }
      _tmp16_ = vala_property_get_property_type (prop);
      vala_code_writer_write_type (self, _tmp16_);
      vala_code_writer_write_string (self, " ");
      _tmp17_ = vala_symbol_get_name ((ValaSymbol*) prop);
      vala_code_writer_write_identifier (self, _tmp17_);
      vala_code_writer_write_string (self, " {");
      _tmp18_ = vala_property_get_get_accessor (prop);
      if (_tmp18_ != NULL) {
            GString* _tmp19_ = NULL;
            GString* ccode_params;
            gchar* _tmp20_;
            gchar* separator;
            ValaPropertyAccessor* _tmp21_ = NULL;
            gchar* _tmp22_ = NULL;
            gchar* _tmp23_;
            ValaPropertyAccessor* _tmp24_ = NULL;
            gchar* _tmp25_ = NULL;
            gchar* _tmp26_;
            gboolean _tmp27_;
            ValaPropertyAccessor* _tmp34_ = NULL;
            gboolean _tmp35_ = FALSE;
            ValaProfile _tmp36_;
            ValaPropertyAccessor* _tmp40_ = NULL;
            ValaBlock* _tmp41_ = NULL;
            _tmp19_ = g_string_new ("");
            ccode_params = _tmp19_;
            _tmp20_ = g_strdup ("");
            separator = _tmp20_;
            _tmp21_ = vala_property_get_get_accessor (prop);
            _tmp22_ = vala_property_accessor_get_cname (_tmp21_);
            _tmp23_ = _tmp22_;
            _tmp24_ = vala_property_get_get_accessor (prop);
            _tmp25_ = vala_property_accessor_get_default_cname (_tmp24_);
            _tmp26_ = _tmp25_;
            _tmp27_ = g_strcmp0 (_tmp23_, _tmp26_) != 0;
            _g_free0 (_tmp26_);
            _g_free0 (_tmp23_);
            if (_tmp27_) {
                  ValaPropertyAccessor* _tmp28_ = NULL;
                  gchar* _tmp29_ = NULL;
                  gchar* _tmp30_;
                  gchar* _tmp31_;
                  _tmp28_ = vala_property_get_get_accessor (prop);
                  _tmp29_ = vala_property_accessor_get_cname (_tmp28_);
                  _tmp30_ = _tmp29_;
                  g_string_append_printf (ccode_params, "%scname = \"%s\"", separator, _tmp30_);
                  _g_free0 (_tmp30_);
                  _tmp31_ = g_strdup (", ");
                  _g_free0 (separator);
                  separator = _tmp31_;
            }
            if (ccode_params->len > 0) {
                  gchar* _tmp32_ = NULL;
                  gchar* _tmp33_;
                  vala_code_writer_write_indent (self);
                  _tmp32_ = g_strdup_printf ("[CCode (%s)]", ccode_params->str);
                  _tmp33_ = _tmp32_;
                  vala_code_writer_write_string (self, _tmp33_);
                  _g_free0 (_tmp33_);
            }
            _tmp34_ = vala_property_get_get_accessor (prop);
            vala_code_writer_write_property_accessor_accessibility (self, (ValaSymbol*) _tmp34_);
            _tmp36_ = vala_code_context_get_profile (self->priv->context);
            if (_tmp36_ != VALA_PROFILE_DOVA) {
                  ValaPropertyAccessor* _tmp37_ = NULL;
                  ValaDataType* _tmp38_ = NULL;
                  gboolean _tmp39_;
                  _tmp37_ = vala_property_get_get_accessor (prop);
                  _tmp38_ = vala_property_accessor_get_value_type (_tmp37_);
                  _tmp39_ = vala_data_type_is_disposable (_tmp38_);
                  _tmp35_ = _tmp39_;
            } else {
                  _tmp35_ = FALSE;
            }
            if (_tmp35_) {
                  vala_code_writer_write_string (self, " owned");
            }
            vala_code_writer_write_string (self, " get");
            _tmp40_ = vala_property_get_get_accessor (prop);
            _tmp41_ = vala_subroutine_get_body ((ValaSubroutine*) _tmp40_);
            vala_code_writer_write_code_block (self, _tmp41_);
            _g_free0 (separator);
            _g_string_free0 (ccode_params);
      }
      _tmp42_ = vala_property_get_set_accessor (prop);
      if (_tmp42_ != NULL) {
            GString* _tmp43_ = NULL;
            GString* ccode_params;
            gchar* _tmp44_;
            gchar* separator;
            ValaPropertyAccessor* _tmp45_ = NULL;
            gchar* _tmp46_ = NULL;
            gchar* _tmp47_;
            ValaPropertyAccessor* _tmp48_ = NULL;
            gchar* _tmp49_ = NULL;
            gchar* _tmp50_;
            gboolean _tmp51_;
            ValaPropertyAccessor* _tmp58_ = NULL;
            gboolean _tmp59_ = FALSE;
            ValaProfile _tmp60_;
            ValaPropertyAccessor* _tmp64_ = NULL;
            gboolean _tmp65_;
            ValaPropertyAccessor* _tmp66_ = NULL;
            gboolean _tmp67_;
            ValaPropertyAccessor* _tmp68_ = NULL;
            ValaBlock* _tmp69_ = NULL;
            _tmp43_ = g_string_new ("");
            ccode_params = _tmp43_;
            _tmp44_ = g_strdup ("");
            separator = _tmp44_;
            _tmp45_ = vala_property_get_set_accessor (prop);
            _tmp46_ = vala_property_accessor_get_cname (_tmp45_);
            _tmp47_ = _tmp46_;
            _tmp48_ = vala_property_get_set_accessor (prop);
            _tmp49_ = vala_property_accessor_get_default_cname (_tmp48_);
            _tmp50_ = _tmp49_;
            _tmp51_ = g_strcmp0 (_tmp47_, _tmp50_) != 0;
            _g_free0 (_tmp50_);
            _g_free0 (_tmp47_);
            if (_tmp51_) {
                  ValaPropertyAccessor* _tmp52_ = NULL;
                  gchar* _tmp53_ = NULL;
                  gchar* _tmp54_;
                  gchar* _tmp55_;
                  _tmp52_ = vala_property_get_set_accessor (prop);
                  _tmp53_ = vala_property_accessor_get_cname (_tmp52_);
                  _tmp54_ = _tmp53_;
                  g_string_append_printf (ccode_params, "%scname = \"%s\"", separator, _tmp54_);
                  _g_free0 (_tmp54_);
                  _tmp55_ = g_strdup (", ");
                  _g_free0 (separator);
                  separator = _tmp55_;
            }
            if (ccode_params->len > 0) {
                  gchar* _tmp56_ = NULL;
                  gchar* _tmp57_;
                  vala_code_writer_write_indent (self);
                  _tmp56_ = g_strdup_printf ("[CCode (%s)]", ccode_params->str);
                  _tmp57_ = _tmp56_;
                  vala_code_writer_write_string (self, _tmp57_);
                  _g_free0 (_tmp57_);
            }
            _tmp58_ = vala_property_get_set_accessor (prop);
            vala_code_writer_write_property_accessor_accessibility (self, (ValaSymbol*) _tmp58_);
            _tmp60_ = vala_code_context_get_profile (self->priv->context);
            if (_tmp60_ != VALA_PROFILE_DOVA) {
                  ValaPropertyAccessor* _tmp61_ = NULL;
                  ValaDataType* _tmp62_ = NULL;
                  gboolean _tmp63_;
                  _tmp61_ = vala_property_get_set_accessor (prop);
                  _tmp62_ = vala_property_accessor_get_value_type (_tmp61_);
                  _tmp63_ = vala_data_type_get_value_owned (_tmp62_);
                  _tmp59_ = _tmp63_;
            } else {
                  _tmp59_ = FALSE;
            }
            if (_tmp59_) {
                  vala_code_writer_write_string (self, " owned");
            }
            _tmp64_ = vala_property_get_set_accessor (prop);
            _tmp65_ = vala_property_accessor_get_writable (_tmp64_);
            if (_tmp65_) {
                  vala_code_writer_write_string (self, " set");
            }
            _tmp66_ = vala_property_get_set_accessor (prop);
            _tmp67_ = vala_property_accessor_get_construction (_tmp66_);
            if (_tmp67_) {
                  vala_code_writer_write_string (self, " construct");
            }
            _tmp68_ = vala_property_get_set_accessor (prop);
            _tmp69_ = vala_subroutine_get_body ((ValaSubroutine*) _tmp68_);
            vala_code_writer_write_code_block (self, _tmp69_);
            _g_free0 (separator);
            _g_string_free0 (ccode_params);
      }
      vala_code_writer_write_string (self, " }");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_signal (ValaCodeVisitor* base, ValaSignal* sig) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp1_;
      gboolean _tmp2_;
      ValaDataType* _tmp3_ = NULL;
      const gchar* _tmp4_ = NULL;
      ValaList* _tmp5_ = NULL;
      ValaList* _tmp6_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (sig != NULL);
      _tmp0_ = vala_code_writer_check_accessibility (self, (ValaSymbol*) sig);
      if (!_tmp0_) {
            return;
      }
      _tmp1_ = vala_signal_get_has_emitter (sig);
      if (_tmp1_) {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "[HasEmitter]");
      }
      vala_code_writer_emit_deprecated_attribute (self, (ValaSymbol*) sig);
      vala_code_writer_emit_experimental_attribute (self, (ValaSymbol*) sig);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_accessibility (self, (ValaSymbol*) sig);
      _tmp2_ = vala_signal_get_is_virtual (sig);
      if (_tmp2_) {
            vala_code_writer_write_string (self, "virtual ");
      }
      vala_code_writer_write_string (self, "signal ");
      _tmp3_ = vala_signal_get_return_type (sig);
      vala_code_writer_write_return_type (self, _tmp3_);
      vala_code_writer_write_string (self, " ");
      _tmp4_ = vala_symbol_get_name ((ValaSymbol*) sig);
      vala_code_writer_write_identifier (self, _tmp4_);
      vala_code_writer_write_string (self, " ");
      _tmp5_ = vala_signal_get_parameters (sig);
      _tmp6_ = _tmp5_;
      vala_code_writer_write_params (self, _tmp6_);
      _vala_iterable_unref0 (_tmp6_);
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_block (ValaCodeVisitor* base, ValaBlock* b) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (b != NULL);
      vala_code_writer_write_begin_block (self);
      {
            ValaList* _tmp0_ = NULL;
            ValaList* _stmt_list;
            gint _tmp1_;
            gint _stmt_size;
            gint _stmt_index;
            _tmp0_ = vala_block_get_statements (b);
            _stmt_list = _tmp0_;
            _tmp1_ = vala_collection_get_size ((ValaCollection*) _stmt_list);
            _stmt_size = _tmp1_;
            _stmt_index = -1;
            while (TRUE) {
                  gpointer _tmp2_ = NULL;
                  ValaStatement* stmt;
                  _stmt_index = _stmt_index + 1;
                  if (!(_stmt_index < _stmt_size)) {
                        break;
                  }
                  _tmp2_ = vala_list_get (_stmt_list, _stmt_index);
                  stmt = (ValaStatement*) _tmp2_;
                  vala_code_node_accept ((ValaCodeNode*) stmt, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (stmt);
            }
            _vala_iterable_unref0 (_stmt_list);
      }
      vala_code_writer_write_end_block (self);
}


static void vala_code_writer_real_visit_empty_statement (ValaCodeVisitor* base, ValaEmptyStatement* stmt) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
}


static void vala_code_writer_real_visit_declaration_statement (ValaCodeVisitor* base, ValaDeclarationStatement* stmt) {
      ValaCodeWriter * self;
      ValaSymbol* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      _tmp0_ = vala_declaration_statement_get_declaration (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_local_variable (ValaCodeVisitor* base, ValaLocalVariable* local) {
      ValaCodeWriter * self;
      ValaDataType* _tmp0_ = NULL;
      const gchar* _tmp1_ = NULL;
      ValaExpression* _tmp2_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (local != NULL);
      _tmp0_ = vala_variable_get_variable_type ((ValaVariable*) local);
      vala_code_writer_write_type (self, _tmp0_);
      vala_code_writer_write_string (self, " ");
      _tmp1_ = vala_symbol_get_name ((ValaSymbol*) local);
      vala_code_writer_write_identifier (self, _tmp1_);
      _tmp2_ = vala_variable_get_initializer ((ValaVariable*) local);
      if (_tmp2_ != NULL) {
            ValaExpression* _tmp3_ = NULL;
            vala_code_writer_write_string (self, " = ");
            _tmp3_ = vala_variable_get_initializer ((ValaVariable*) local);
            vala_code_node_accept ((ValaCodeNode*) _tmp3_, (ValaCodeVisitor*) self);
      }
}


static void vala_code_writer_real_visit_initializer_list (ValaCodeVisitor* base, ValaInitializerList* list) {
      ValaCodeWriter * self;
      gboolean first;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (list != NULL);
      vala_code_writer_write_string (self, "{");
      first = TRUE;
      {
            ValaList* _tmp0_ = NULL;
            ValaList* _initializer_list;
            gint _tmp1_;
            gint _initializer_size;
            gint _initializer_index;
            _tmp0_ = vala_initializer_list_get_initializers (list);
            _initializer_list = _tmp0_;
            _tmp1_ = vala_collection_get_size ((ValaCollection*) _initializer_list);
            _initializer_size = _tmp1_;
            _initializer_index = -1;
            while (TRUE) {
                  gpointer _tmp2_ = NULL;
                  ValaExpression* initializer;
                  _initializer_index = _initializer_index + 1;
                  if (!(_initializer_index < _initializer_size)) {
                        break;
                  }
                  _tmp2_ = vala_list_get (_initializer_list, _initializer_index);
                  initializer = (ValaExpression*) _tmp2_;
                  if (!first) {
                        vala_code_writer_write_string (self, ", ");
                  } else {
                        vala_code_writer_write_string (self, " ");
                  }
                  first = FALSE;
                  vala_code_node_accept ((ValaCodeNode*) initializer, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (initializer);
            }
            _vala_iterable_unref0 (_initializer_list);
      }
      vala_code_writer_write_string (self, " }");
}


static void vala_code_writer_real_visit_expression_statement (ValaCodeVisitor* base, ValaExpressionStatement* stmt) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      _tmp0_ = vala_expression_statement_get_expression (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_if_statement (ValaCodeVisitor* base, ValaIfStatement* stmt) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      ValaBlock* _tmp1_ = NULL;
      ValaBlock* _tmp2_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "if (");
      _tmp0_ = vala_if_statement_get_condition (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ")");
      _tmp1_ = vala_if_statement_get_true_statement (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
      _tmp2_ = vala_if_statement_get_false_statement (stmt);
      if (_tmp2_ != NULL) {
            ValaBlock* _tmp3_ = NULL;
            vala_code_writer_write_string (self, " else");
            _tmp3_ = vala_if_statement_get_false_statement (stmt);
            vala_code_node_accept ((ValaCodeNode*) _tmp3_, (ValaCodeVisitor*) self);
      }
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_switch_statement (ValaCodeVisitor* base, ValaSwitchStatement* stmt) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "switch (");
      _tmp0_ = vala_switch_statement_get_expression (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ") {");
      vala_code_writer_write_newline (self);
      {
            ValaList* _tmp1_ = NULL;
            ValaList* _section_list;
            gint _tmp2_;
            gint _section_size;
            gint _section_index;
            _tmp1_ = vala_switch_statement_get_sections (stmt);
            _section_list = _tmp1_;
            _tmp2_ = vala_collection_get_size ((ValaCollection*) _section_list);
            _section_size = _tmp2_;
            _section_index = -1;
            while (TRUE) {
                  gpointer _tmp3_ = NULL;
                  ValaSwitchSection* section;
                  _section_index = _section_index + 1;
                  if (!(_section_index < _section_size)) {
                        break;
                  }
                  _tmp3_ = vala_list_get (_section_list, _section_index);
                  section = (ValaSwitchSection*) _tmp3_;
                  vala_code_node_accept ((ValaCodeNode*) section, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (section);
            }
            _vala_iterable_unref0 (_section_list);
      }
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "}");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_switch_section (ValaCodeVisitor* base, ValaSwitchSection* section) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (section != NULL);
      {
            ValaList* _tmp0_ = NULL;
            ValaList* _label_list;
            gint _tmp1_;
            gint _label_size;
            gint _label_index;
            _tmp0_ = vala_switch_section_get_labels (section);
            _label_list = _tmp0_;
            _tmp1_ = vala_collection_get_size ((ValaCollection*) _label_list);
            _label_size = _tmp1_;
            _label_index = -1;
            while (TRUE) {
                  gpointer _tmp2_ = NULL;
                  ValaSwitchLabel* label;
                  _label_index = _label_index + 1;
                  if (!(_label_index < _label_size)) {
                        break;
                  }
                  _tmp2_ = vala_list_get (_label_list, _label_index);
                  label = (ValaSwitchLabel*) _tmp2_;
                  vala_code_node_accept ((ValaCodeNode*) label, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (label);
            }
            _vala_iterable_unref0 (_label_list);
      }
      vala_code_visitor_visit_block ((ValaCodeVisitor*) self, (ValaBlock*) section);
}


static void vala_code_writer_real_visit_switch_label (ValaCodeVisitor* base, ValaSwitchLabel* label) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (label != NULL);
      _tmp0_ = vala_switch_label_get_expression (label);
      if (_tmp0_ != NULL) {
            ValaExpression* _tmp1_ = NULL;
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "case ");
            _tmp1_ = vala_switch_label_get_expression (label);
            vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
            vala_code_writer_write_string (self, ":");
            vala_code_writer_write_newline (self);
      } else {
            vala_code_writer_write_indent (self);
            vala_code_writer_write_string (self, "default:");
            vala_code_writer_write_newline (self);
      }
}


static void vala_code_writer_real_visit_loop (ValaCodeVisitor* base, ValaLoop* stmt) {
      ValaCodeWriter * self;
      ValaBlock* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "loop");
      _tmp0_ = vala_loop_get_body (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_while_statement (ValaCodeVisitor* base, ValaWhileStatement* stmt) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      ValaBlock* _tmp1_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "while (");
      _tmp0_ = vala_while_statement_get_condition (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ")");
      _tmp1_ = vala_while_statement_get_body (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_do_statement (ValaCodeVisitor* base, ValaDoStatement* stmt) {
      ValaCodeWriter * self;
      ValaBlock* _tmp0_ = NULL;
      ValaExpression* _tmp1_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "do");
      _tmp0_ = vala_do_statement_get_body (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, "while (");
      _tmp1_ = vala_do_statement_get_condition (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ");");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_for_statement (ValaCodeVisitor* base, ValaForStatement* stmt) {
      ValaCodeWriter * self;
      gboolean first;
      ValaExpression* _tmp3_ = NULL;
      ValaBlock* _tmp7_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "for (");
      first = TRUE;
      {
            ValaList* _tmp0_ = NULL;
            ValaList* _initializer_list;
            gint _tmp1_;
            gint _initializer_size;
            gint _initializer_index;
            _tmp0_ = vala_for_statement_get_initializer (stmt);
            _initializer_list = _tmp0_;
            _tmp1_ = vala_collection_get_size ((ValaCollection*) _initializer_list);
            _initializer_size = _tmp1_;
            _initializer_index = -1;
            while (TRUE) {
                  gpointer _tmp2_ = NULL;
                  ValaExpression* initializer;
                  _initializer_index = _initializer_index + 1;
                  if (!(_initializer_index < _initializer_size)) {
                        break;
                  }
                  _tmp2_ = vala_list_get (_initializer_list, _initializer_index);
                  initializer = (ValaExpression*) _tmp2_;
                  if (!first) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  first = FALSE;
                  vala_code_node_accept ((ValaCodeNode*) initializer, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (initializer);
            }
            _vala_iterable_unref0 (_initializer_list);
      }
      vala_code_writer_write_string (self, "; ");
      _tmp3_ = vala_for_statement_get_condition (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp3_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, "; ");
      first = TRUE;
      {
            ValaList* _tmp4_ = NULL;
            ValaList* _iterator_list;
            gint _tmp5_;
            gint _iterator_size;
            gint _iterator_index;
            _tmp4_ = vala_for_statement_get_iterator (stmt);
            _iterator_list = _tmp4_;
            _tmp5_ = vala_collection_get_size ((ValaCollection*) _iterator_list);
            _iterator_size = _tmp5_;
            _iterator_index = -1;
            while (TRUE) {
                  gpointer _tmp6_ = NULL;
                  ValaExpression* iterator;
                  _iterator_index = _iterator_index + 1;
                  if (!(_iterator_index < _iterator_size)) {
                        break;
                  }
                  _tmp6_ = vala_list_get (_iterator_list, _iterator_index);
                  iterator = (ValaExpression*) _tmp6_;
                  if (!first) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  first = FALSE;
                  vala_code_node_accept ((ValaCodeNode*) iterator, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (iterator);
            }
            _vala_iterable_unref0 (_iterator_list);
      }
      vala_code_writer_write_string (self, ")");
      _tmp7_ = vala_for_statement_get_body (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp7_, (ValaCodeVisitor*) self);
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_foreach_statement (ValaCodeVisitor* base, ValaForeachStatement* stmt) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
}


static void vala_code_writer_real_visit_break_statement (ValaCodeVisitor* base, ValaBreakStatement* stmt) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "break;");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_continue_statement (ValaCodeVisitor* base, ValaContinueStatement* stmt) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "continue;");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_return_statement (ValaCodeVisitor* base, ValaReturnStatement* stmt) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "return");
      _tmp0_ = vala_return_statement_get_return_expression (stmt);
      if (_tmp0_ != NULL) {
            ValaExpression* _tmp1_ = NULL;
            vala_code_writer_write_string (self, " ");
            _tmp1_ = vala_return_statement_get_return_expression (stmt);
            vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
      }
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_yield_statement (ValaCodeVisitor* base, ValaYieldStatement* y) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (y != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "yield");
      _tmp0_ = vala_yield_statement_get_yield_expression (y);
      if (_tmp0_ != NULL) {
            ValaExpression* _tmp1_ = NULL;
            vala_code_writer_write_string (self, " ");
            _tmp1_ = vala_yield_statement_get_yield_expression (y);
            vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
      }
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_throw_statement (ValaCodeVisitor* base, ValaThrowStatement* stmt) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "throw");
      _tmp0_ = vala_throw_statement_get_error_expression (stmt);
      if (_tmp0_ != NULL) {
            ValaExpression* _tmp1_ = NULL;
            vala_code_writer_write_string (self, " ");
            _tmp1_ = vala_throw_statement_get_error_expression (stmt);
            vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
      }
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_try_statement (ValaCodeVisitor* base, ValaTryStatement* stmt) {
      ValaCodeWriter * self;
      ValaBlock* _tmp0_ = NULL;
      ValaBlock* _tmp4_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "try");
      _tmp0_ = vala_try_statement_get_body (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      {
            ValaList* _tmp1_ = NULL;
            ValaList* _clause_list;
            gint _tmp2_;
            gint _clause_size;
            gint _clause_index;
            _tmp1_ = vala_try_statement_get_catch_clauses (stmt);
            _clause_list = _tmp1_;
            _tmp2_ = vala_collection_get_size ((ValaCollection*) _clause_list);
            _clause_size = _tmp2_;
            _clause_index = -1;
            while (TRUE) {
                  gpointer _tmp3_ = NULL;
                  ValaCatchClause* clause;
                  _clause_index = _clause_index + 1;
                  if (!(_clause_index < _clause_size)) {
                        break;
                  }
                  _tmp3_ = vala_list_get (_clause_list, _clause_index);
                  clause = (ValaCatchClause*) _tmp3_;
                  vala_code_node_accept ((ValaCodeNode*) clause, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (clause);
            }
            _vala_iterable_unref0 (_clause_list);
      }
      _tmp4_ = vala_try_statement_get_finally_body (stmt);
      if (_tmp4_ != NULL) {
            ValaBlock* _tmp5_ = NULL;
            vala_code_writer_write_string (self, " finally");
            _tmp5_ = vala_try_statement_get_finally_body (stmt);
            vala_code_node_accept ((ValaCodeNode*) _tmp5_, (ValaCodeVisitor*) self);
      }
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_catch_clause (ValaCodeVisitor* base, ValaCatchClause* clause) {
      ValaCodeWriter * self;
      gchar* _tmp0_ = NULL;
      ValaDataType* _tmp1_ = NULL;
      gchar* _tmp5_;
      gchar* type_name;
      const gchar* _tmp6_ = NULL;
      const gchar* _tmp7_ = NULL;
      gchar* _tmp9_;
      gchar* var_name;
      gchar* _tmp10_ = NULL;
      gchar* _tmp11_;
      ValaBlock* _tmp12_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (clause != NULL);
      _tmp1_ = vala_catch_clause_get_error_type (clause);
      if (_tmp1_ == NULL) {
            gchar* _tmp2_;
            _tmp2_ = g_strdup ("GLib.Error");
            _g_free0 (_tmp0_);
            _tmp0_ = _tmp2_;
      } else {
            ValaDataType* _tmp3_ = NULL;
            gchar* _tmp4_ = NULL;
            _tmp3_ = vala_catch_clause_get_error_type (clause);
            _tmp4_ = vala_code_node_to_string ((ValaCodeNode*) _tmp3_);
            _g_free0 (_tmp0_);
            _tmp0_ = _tmp4_;
      }
      _tmp5_ = g_strdup (_tmp0_);
      type_name = _tmp5_;
      _tmp7_ = vala_catch_clause_get_variable_name (clause);
      if (_tmp7_ == NULL) {
            _tmp6_ = "_";
      } else {
            const gchar* _tmp8_ = NULL;
            _tmp8_ = vala_catch_clause_get_variable_name (clause);
            _tmp6_ = _tmp8_;
      }
      _tmp9_ = g_strdup (_tmp6_);
      var_name = _tmp9_;
      _tmp10_ = g_strdup_printf (" catch (%s %s)", type_name, var_name);
      _tmp11_ = _tmp10_;
      vala_code_writer_write_string (self, _tmp11_);
      _g_free0 (_tmp11_);
      _tmp12_ = vala_catch_clause_get_body (clause);
      vala_code_node_accept ((ValaCodeNode*) _tmp12_, (ValaCodeVisitor*) self);
      _g_free0 (var_name);
      _g_free0 (type_name);
      _g_free0 (_tmp0_);
}


static void vala_code_writer_real_visit_lock_statement (ValaCodeVisitor* base, ValaLockStatement* stmt) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      ValaBlock* _tmp1_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "lock (");
      _tmp0_ = vala_lock_statement_get_resource (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ")");
      _tmp1_ = vala_lock_statement_get_body (stmt);
      if (_tmp1_ == NULL) {
            vala_code_writer_write_string (self, ";");
      } else {
            ValaBlock* _tmp2_ = NULL;
            _tmp2_ = vala_lock_statement_get_body (stmt);
            vala_code_node_accept ((ValaCodeNode*) _tmp2_, (ValaCodeVisitor*) self);
      }
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_delete_statement (ValaCodeVisitor* base, ValaDeleteStatement* stmt) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (stmt != NULL);
      vala_code_writer_write_indent (self);
      vala_code_writer_write_string (self, "delete ");
      _tmp0_ = vala_delete_statement_get_expression (stmt);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ";");
      vala_code_writer_write_newline (self);
}


static void vala_code_writer_real_visit_array_creation_expression (ValaCodeVisitor* base, ValaArrayCreationExpression* expr) {
      ValaCodeWriter * self;
      ValaDataType* _tmp0_ = NULL;
      gboolean first;
      ValaInitializerList* _tmp4_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      vala_code_writer_write_string (self, "new ");
      _tmp0_ = vala_array_creation_expression_get_element_type (expr);
      vala_code_writer_write_type (self, _tmp0_);
      vala_code_writer_write_string (self, "[");
      first = TRUE;
      {
            ValaList* _tmp1_ = NULL;
            ValaList* _size_list;
            gint _tmp2_;
            gint _size_size;
            gint _size_index;
            _tmp1_ = vala_array_creation_expression_get_sizes (expr);
            _size_list = _tmp1_;
            _tmp2_ = vala_collection_get_size ((ValaCollection*) _size_list);
            _size_size = _tmp2_;
            _size_index = -1;
            while (TRUE) {
                  gpointer _tmp3_ = NULL;
                  ValaExpression* size;
                  _size_index = _size_index + 1;
                  if (!(_size_index < _size_size)) {
                        break;
                  }
                  _tmp3_ = vala_list_get (_size_list, _size_index);
                  size = (ValaExpression*) _tmp3_;
                  if (!first) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  first = FALSE;
                  vala_code_node_accept ((ValaCodeNode*) size, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (size);
            }
            _vala_iterable_unref0 (_size_list);
      }
      vala_code_writer_write_string (self, "]");
      _tmp4_ = vala_array_creation_expression_get_initializer_list (expr);
      if (_tmp4_ != NULL) {
            ValaInitializerList* _tmp5_ = NULL;
            vala_code_writer_write_string (self, " ");
            _tmp5_ = vala_array_creation_expression_get_initializer_list (expr);
            vala_code_node_accept ((ValaCodeNode*) _tmp5_, (ValaCodeVisitor*) self);
      }
}


static gchar* bool_to_string (gboolean self) {
      gchar* result = NULL;
      if (self) {
            gchar* _tmp0_;
            _tmp0_ = g_strdup ("true");
            result = _tmp0_;
            return result;
      } else {
            gchar* _tmp1_;
            _tmp1_ = g_strdup ("false");
            result = _tmp1_;
            return result;
      }
}


static void vala_code_writer_real_visit_boolean_literal (ValaCodeVisitor* base, ValaBooleanLiteral* lit) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gchar* _tmp1_ = NULL;
      gchar* _tmp2_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (lit != NULL);
      _tmp0_ = vala_boolean_literal_get_value (lit);
      _tmp1_ = bool_to_string (_tmp0_);
      _tmp2_ = _tmp1_;
      vala_code_writer_write_string (self, _tmp2_);
      _g_free0 (_tmp2_);
}


static void vala_code_writer_real_visit_character_literal (ValaCodeVisitor* base, ValaCharacterLiteral* lit) {
      ValaCodeWriter * self;
      const gchar* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (lit != NULL);
      _tmp0_ = vala_character_literal_get_value (lit);
      vala_code_writer_write_string (self, _tmp0_);
}


static void vala_code_writer_real_visit_integer_literal (ValaCodeVisitor* base, ValaIntegerLiteral* lit) {
      ValaCodeWriter * self;
      const gchar* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (lit != NULL);
      _tmp0_ = vala_integer_literal_get_value (lit);
      vala_code_writer_write_string (self, _tmp0_);
}


static void vala_code_writer_real_visit_real_literal (ValaCodeVisitor* base, ValaRealLiteral* lit) {
      ValaCodeWriter * self;
      const gchar* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (lit != NULL);
      _tmp0_ = vala_real_literal_get_value (lit);
      vala_code_writer_write_string (self, _tmp0_);
}


static void vala_code_writer_real_visit_string_literal (ValaCodeVisitor* base, ValaStringLiteral* lit) {
      ValaCodeWriter * self;
      const gchar* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (lit != NULL);
      _tmp0_ = vala_string_literal_get_value (lit);
      vala_code_writer_write_string (self, _tmp0_);
}


static void vala_code_writer_real_visit_null_literal (ValaCodeVisitor* base, ValaNullLiteral* lit) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (lit != NULL);
      vala_code_writer_write_string (self, "null");
}


static void vala_code_writer_real_visit_member_access (ValaCodeVisitor* base, ValaMemberAccess* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      const gchar* _tmp2_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_member_access_get_inner (expr);
      if (_tmp0_ != NULL) {
            ValaExpression* _tmp1_ = NULL;
            _tmp1_ = vala_member_access_get_inner (expr);
            vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
            vala_code_writer_write_string (self, ".");
      }
      _tmp2_ = vala_member_access_get_member_name (expr);
      vala_code_writer_write_identifier (self, _tmp2_);
}


static void vala_code_writer_real_visit_method_call (ValaCodeVisitor* base, ValaMethodCall* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      gboolean first;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_method_call_get_call (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, " (");
      first = TRUE;
      {
            ValaList* _tmp1_ = NULL;
            ValaList* _arg_list;
            gint _tmp2_;
            gint _arg_size;
            gint _arg_index;
            _tmp1_ = vala_method_call_get_argument_list (expr);
            _arg_list = _tmp1_;
            _tmp2_ = vala_collection_get_size ((ValaCollection*) _arg_list);
            _arg_size = _tmp2_;
            _arg_index = -1;
            while (TRUE) {
                  gpointer _tmp3_ = NULL;
                  ValaExpression* arg;
                  _arg_index = _arg_index + 1;
                  if (!(_arg_index < _arg_size)) {
                        break;
                  }
                  _tmp3_ = vala_list_get (_arg_list, _arg_index);
                  arg = (ValaExpression*) _tmp3_;
                  if (!first) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  first = FALSE;
                  vala_code_node_accept ((ValaCodeNode*) arg, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (arg);
            }
            _vala_iterable_unref0 (_arg_list);
      }
      vala_code_writer_write_string (self, ")");
}


static void vala_code_writer_real_visit_element_access (ValaCodeVisitor* base, ValaElementAccess* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      gboolean first;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_element_access_get_container (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, "[");
      first = TRUE;
      {
            ValaList* _tmp1_ = NULL;
            ValaList* _index_list;
            gint _tmp2_;
            gint _index_size;
            gint _index_index;
            _tmp1_ = vala_element_access_get_indices (expr);
            _index_list = _tmp1_;
            _tmp2_ = vala_collection_get_size ((ValaCollection*) _index_list);
            _index_size = _tmp2_;
            _index_index = -1;
            while (TRUE) {
                  gpointer _tmp3_ = NULL;
                  ValaExpression* index;
                  _index_index = _index_index + 1;
                  if (!(_index_index < _index_size)) {
                        break;
                  }
                  _tmp3_ = vala_list_get (_index_list, _index_index);
                  index = (ValaExpression*) _tmp3_;
                  if (!first) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  first = FALSE;
                  vala_code_node_accept ((ValaCodeNode*) index, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (index);
            }
            _vala_iterable_unref0 (_index_list);
      }
      vala_code_writer_write_string (self, "]");
}


static void vala_code_writer_real_visit_slice_expression (ValaCodeVisitor* base, ValaSliceExpression* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      ValaExpression* _tmp1_ = NULL;
      ValaExpression* _tmp2_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_slice_expression_get_container (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, "[");
      _tmp1_ = vala_slice_expression_get_start (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ":");
      _tmp2_ = vala_slice_expression_get_stop (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp2_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, "]");
}


static void vala_code_writer_real_visit_base_access (ValaCodeVisitor* base, ValaBaseAccess* expr) {
      ValaCodeWriter * self;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      vala_code_writer_write_string (self, "base");
}


static void vala_code_writer_real_visit_postfix_expression (ValaCodeVisitor* base, ValaPostfixExpression* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      gboolean _tmp1_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_postfix_expression_get_inner (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      _tmp1_ = vala_postfix_expression_get_increment (expr);
      if (_tmp1_) {
            vala_code_writer_write_string (self, "++");
      } else {
            vala_code_writer_write_string (self, "--");
      }
}


static void vala_code_writer_real_visit_object_creation_expression (ValaCodeVisitor* base, ValaObjectCreationExpression* expr) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      ValaDataType* _tmp1_ = NULL;
      ValaSymbol* _tmp2_ = NULL;
      const gchar* _tmp3_ = NULL;
      gboolean first;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_object_creation_expression_get_struct_creation (expr);
      if (!_tmp0_) {
            vala_code_writer_write_string (self, "new ");
      }
      _tmp1_ = vala_object_creation_expression_get_type_reference (expr);
      vala_code_writer_write_type (self, _tmp1_);
      _tmp2_ = vala_expression_get_symbol_reference ((ValaExpression*) expr);
      _tmp3_ = vala_symbol_get_name (_tmp2_);
      if (g_strcmp0 (_tmp3_, ".new") != 0) {
            ValaSymbol* _tmp4_ = NULL;
            const gchar* _tmp5_ = NULL;
            vala_code_writer_write_string (self, ".");
            _tmp4_ = vala_expression_get_symbol_reference ((ValaExpression*) expr);
            _tmp5_ = vala_symbol_get_name (_tmp4_);
            vala_code_writer_write_string (self, _tmp5_);
      }
      vala_code_writer_write_string (self, " (");
      first = TRUE;
      {
            ValaList* _tmp6_ = NULL;
            ValaList* _arg_list;
            gint _tmp7_;
            gint _arg_size;
            gint _arg_index;
            _tmp6_ = vala_object_creation_expression_get_argument_list (expr);
            _arg_list = _tmp6_;
            _tmp7_ = vala_collection_get_size ((ValaCollection*) _arg_list);
            _arg_size = _tmp7_;
            _arg_index = -1;
            while (TRUE) {
                  gpointer _tmp8_ = NULL;
                  ValaExpression* arg;
                  _arg_index = _arg_index + 1;
                  if (!(_arg_index < _arg_size)) {
                        break;
                  }
                  _tmp8_ = vala_list_get (_arg_list, _arg_index);
                  arg = (ValaExpression*) _tmp8_;
                  if (!first) {
                        vala_code_writer_write_string (self, ", ");
                  }
                  first = FALSE;
                  vala_code_node_accept ((ValaCodeNode*) arg, (ValaCodeVisitor*) self);
                  _vala_code_node_unref0 (arg);
            }
            _vala_iterable_unref0 (_arg_list);
      }
      vala_code_writer_write_string (self, ")");
}


static void vala_code_writer_real_visit_sizeof_expression (ValaCodeVisitor* base, ValaSizeofExpression* expr) {
      ValaCodeWriter * self;
      ValaDataType* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      vala_code_writer_write_string (self, "sizeof (");
      _tmp0_ = vala_sizeof_expression_get_type_reference (expr);
      vala_code_writer_write_type (self, _tmp0_);
      vala_code_writer_write_string (self, ")");
}


static void vala_code_writer_real_visit_typeof_expression (ValaCodeVisitor* base, ValaTypeofExpression* expr) {
      ValaCodeWriter * self;
      ValaDataType* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      vala_code_writer_write_string (self, "typeof (");
      _tmp0_ = vala_typeof_expression_get_type_reference (expr);
      vala_code_writer_write_type (self, _tmp0_);
      vala_code_writer_write_string (self, ")");
}


static void vala_code_writer_real_visit_unary_expression (ValaCodeVisitor* base, ValaUnaryExpression* expr) {
      ValaCodeWriter * self;
      ValaUnaryOperator _tmp0_;
      ValaExpression* _tmp1_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_unary_expression_get_operator (expr);
      switch (_tmp0_) {
            case VALA_UNARY_OPERATOR_PLUS:
            {
                  vala_code_writer_write_string (self, "+");
                  break;
            }
            case VALA_UNARY_OPERATOR_MINUS:
            {
                  vala_code_writer_write_string (self, "-");
                  break;
            }
            case VALA_UNARY_OPERATOR_LOGICAL_NEGATION:
            {
                  vala_code_writer_write_string (self, "!");
                  break;
            }
            case VALA_UNARY_OPERATOR_BITWISE_COMPLEMENT:
            {
                  vala_code_writer_write_string (self, "~");
                  break;
            }
            case VALA_UNARY_OPERATOR_INCREMENT:
            {
                  vala_code_writer_write_string (self, "++");
                  break;
            }
            case VALA_UNARY_OPERATOR_DECREMENT:
            {
                  vala_code_writer_write_string (self, "--");
                  break;
            }
            case VALA_UNARY_OPERATOR_REF:
            {
                  vala_code_writer_write_string (self, "ref ");
                  break;
            }
            case VALA_UNARY_OPERATOR_OUT:
            {
                  vala_code_writer_write_string (self, "out ");
                  break;
            }
            default:
            {
                  g_assert_not_reached ();
            }
      }
      _tmp1_ = vala_unary_expression_get_inner (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
}


static void vala_code_writer_real_visit_cast_expression (ValaCodeVisitor* base, ValaCastExpression* expr) {
      ValaCodeWriter * self;
      gboolean _tmp0_;
      gboolean _tmp2_;
      ValaExpression* _tmp4_ = NULL;
      gboolean _tmp5_;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_cast_expression_get_is_non_null_cast (expr);
      if (_tmp0_) {
            ValaExpression* _tmp1_ = NULL;
            vala_code_writer_write_string (self, "(!) ");
            _tmp1_ = vala_cast_expression_get_inner (expr);
            vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
            return;
      }
      _tmp2_ = vala_cast_expression_get_is_silent_cast (expr);
      if (!_tmp2_) {
            ValaDataType* _tmp3_ = NULL;
            vala_code_writer_write_string (self, "(");
            _tmp3_ = vala_cast_expression_get_type_reference (expr);
            vala_code_writer_write_type (self, _tmp3_);
            vala_code_writer_write_string (self, ") ");
      }
      _tmp4_ = vala_cast_expression_get_inner (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp4_, (ValaCodeVisitor*) self);
      _tmp5_ = vala_cast_expression_get_is_silent_cast (expr);
      if (_tmp5_) {
            ValaDataType* _tmp6_ = NULL;
            vala_code_writer_write_string (self, " as ");
            _tmp6_ = vala_cast_expression_get_type_reference (expr);
            vala_code_writer_write_type (self, _tmp6_);
      }
}


static void vala_code_writer_real_visit_pointer_indirection (ValaCodeVisitor* base, ValaPointerIndirection* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      vala_code_writer_write_string (self, "*");
      _tmp0_ = vala_pointer_indirection_get_inner (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
}


static void vala_code_writer_real_visit_addressof_expression (ValaCodeVisitor* base, ValaAddressofExpression* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      vala_code_writer_write_string (self, "&");
      _tmp0_ = vala_addressof_expression_get_inner (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
}


static void vala_code_writer_real_visit_reference_transfer_expression (ValaCodeVisitor* base, ValaReferenceTransferExpression* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      vala_code_writer_write_string (self, "(owned) ");
      _tmp0_ = vala_reference_transfer_expression_get_inner (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
}


static void vala_code_writer_real_visit_binary_expression (ValaCodeVisitor* base, ValaBinaryExpression* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      ValaBinaryOperator _tmp1_;
      ValaExpression* _tmp2_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_binary_expression_get_left (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      _tmp1_ = vala_binary_expression_get_operator (expr);
      switch (_tmp1_) {
            case VALA_BINARY_OPERATOR_PLUS:
            {
                  vala_code_writer_write_string (self, " + ");
                  break;
            }
            case VALA_BINARY_OPERATOR_MINUS:
            {
                  vala_code_writer_write_string (self, " - ");
                  break;
            }
            case VALA_BINARY_OPERATOR_MUL:
            {
                  vala_code_writer_write_string (self, " * ");
                  break;
            }
            case VALA_BINARY_OPERATOR_DIV:
            {
                  vala_code_writer_write_string (self, " / ");
                  break;
            }
            case VALA_BINARY_OPERATOR_MOD:
            {
                  vala_code_writer_write_string (self, " % ");
                  break;
            }
            case VALA_BINARY_OPERATOR_SHIFT_LEFT:
            {
                  vala_code_writer_write_string (self, " << ");
                  break;
            }
            case VALA_BINARY_OPERATOR_SHIFT_RIGHT:
            {
                  vala_code_writer_write_string (self, " >> ");
                  break;
            }
            case VALA_BINARY_OPERATOR_LESS_THAN:
            {
                  vala_code_writer_write_string (self, " < ");
                  break;
            }
            case VALA_BINARY_OPERATOR_GREATER_THAN:
            {
                  vala_code_writer_write_string (self, " > ");
                  break;
            }
            case VALA_BINARY_OPERATOR_LESS_THAN_OR_EQUAL:
            {
                  vala_code_writer_write_string (self, " <= ");
                  break;
            }
            case VALA_BINARY_OPERATOR_GREATER_THAN_OR_EQUAL:
            {
                  vala_code_writer_write_string (self, " >= ");
                  break;
            }
            case VALA_BINARY_OPERATOR_EQUALITY:
            {
                  vala_code_writer_write_string (self, " == ");
                  break;
            }
            case VALA_BINARY_OPERATOR_INEQUALITY:
            {
                  vala_code_writer_write_string (self, " != ");
                  break;
            }
            case VALA_BINARY_OPERATOR_BITWISE_AND:
            {
                  vala_code_writer_write_string (self, " & ");
                  break;
            }
            case VALA_BINARY_OPERATOR_BITWISE_OR:
            {
                  vala_code_writer_write_string (self, " | ");
                  break;
            }
            case VALA_BINARY_OPERATOR_BITWISE_XOR:
            {
                  vala_code_writer_write_string (self, " ^ ");
                  break;
            }
            case VALA_BINARY_OPERATOR_AND:
            {
                  vala_code_writer_write_string (self, " && ");
                  break;
            }
            case VALA_BINARY_OPERATOR_OR:
            {
                  vala_code_writer_write_string (self, " || ");
                  break;
            }
            case VALA_BINARY_OPERATOR_IN:
            {
                  vala_code_writer_write_string (self, " in ");
                  break;
            }
            case VALA_BINARY_OPERATOR_COALESCE:
            {
                  vala_code_writer_write_string (self, " ?? ");
                  break;
            }
            default:
            {
                  g_assert_not_reached ();
            }
      }
      _tmp2_ = vala_binary_expression_get_right (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp2_, (ValaCodeVisitor*) self);
}


static void vala_code_writer_real_visit_type_check (ValaCodeVisitor* base, ValaTypeCheck* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      ValaDataType* _tmp1_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_typecheck_get_expression (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, " is ");
      _tmp1_ = vala_typecheck_get_type_reference (expr);
      vala_code_writer_write_type (self, _tmp1_);
}


static void vala_code_writer_real_visit_conditional_expression (ValaCodeVisitor* base, ValaConditionalExpression* expr) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      ValaExpression* _tmp1_ = NULL;
      ValaExpression* _tmp2_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      _tmp0_ = vala_conditional_expression_get_condition (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, "?");
      _tmp1_ = vala_conditional_expression_get_true_expression (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, ":");
      _tmp2_ = vala_conditional_expression_get_false_expression (expr);
      vala_code_node_accept ((ValaCodeNode*) _tmp2_, (ValaCodeVisitor*) self);
}


static void vala_code_writer_real_visit_lambda_expression (ValaCodeVisitor* base, ValaLambdaExpression* expr) {
      ValaCodeWriter * self;
      ValaList* _tmp0_ = NULL;
      ValaList* params;
      gint _tmp1_;
      ValaBlock* _tmp9_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (expr != NULL);
      vala_code_writer_write_string (self, "(");
      _tmp0_ = vala_lambda_expression_get_parameters (expr);
      params = _tmp0_;
      _tmp1_ = vala_collection_get_size ((ValaCollection*) params);
      if (_tmp1_ != 0) {
            gint _tmp6_;
            gpointer _tmp7_ = NULL;
            gchar* _tmp8_;
            {
                  gint i;
                  i = 0;
                  {
                        gboolean _tmp2_;
                        _tmp2_ = TRUE;
                        while (TRUE) {
                              gint _tmp3_;
                              gpointer _tmp4_ = NULL;
                              gchar* _tmp5_;
                              if (!_tmp2_) {
                                    i = i + 1;
                              }
                              _tmp2_ = FALSE;
                              _tmp3_ = vala_collection_get_size ((ValaCollection*) params);
                              if (!(i < (_tmp3_ - 1))) {
                                    break;
                              }
                              _tmp4_ = vala_list_get (params, i);
                              _tmp5_ = (gchar*) _tmp4_;
                              vala_code_writer_write_string (self, _tmp5_);
                              _g_free0 (_tmp5_);
                              vala_code_writer_write_string (self, ", ");
                        }
                  }
            }
            _tmp6_ = vala_collection_get_size ((ValaCollection*) params);
            _tmp7_ = vala_list_get (params, _tmp6_ - 1);
            _tmp8_ = (gchar*) _tmp7_;
            vala_code_writer_write_string (self, _tmp8_);
            _g_free0 (_tmp8_);
      }
      vala_code_writer_write_string (self, ") =>");
      _tmp9_ = vala_lambda_expression_get_statement_body (expr);
      if (_tmp9_ != NULL) {
            ValaBlock* _tmp10_ = NULL;
            _tmp10_ = vala_lambda_expression_get_statement_body (expr);
            vala_code_node_accept ((ValaCodeNode*) _tmp10_, (ValaCodeVisitor*) self);
      } else {
            ValaExpression* _tmp11_ = NULL;
            _tmp11_ = vala_lambda_expression_get_expression_body (expr);
            if (_tmp11_ != NULL) {
                  ValaExpression* _tmp12_ = NULL;
                  _tmp12_ = vala_lambda_expression_get_expression_body (expr);
                  vala_code_node_accept ((ValaCodeNode*) _tmp12_, (ValaCodeVisitor*) self);
            }
      }
      _vala_iterable_unref0 (params);
}


static void vala_code_writer_real_visit_assignment (ValaCodeVisitor* base, ValaAssignment* a) {
      ValaCodeWriter * self;
      ValaExpression* _tmp0_ = NULL;
      ValaExpression* _tmp1_ = NULL;
      self = (ValaCodeWriter*) base;
      g_return_if_fail (a != NULL);
      _tmp0_ = vala_assignment_get_left (a);
      vala_code_node_accept ((ValaCodeNode*) _tmp0_, (ValaCodeVisitor*) self);
      vala_code_writer_write_string (self, " = ");
      _tmp1_ = vala_assignment_get_right (a);
      vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
}


static void vala_code_writer_write_indent (ValaCodeWriter* self) {
      gint i = 0;
      g_return_if_fail (self != NULL);
      if (!self->priv->bol) {
            fputc ('\n', self->priv->stream);
      }
      {
            gboolean _tmp0_;
            i = 0;
            _tmp0_ = TRUE;
            while (TRUE) {
                  if (!_tmp0_) {
                        i++;
                  }
                  _tmp0_ = FALSE;
                  if (!(i < self->priv->indent)) {
                        break;
                  }
                  fputc ('\t', self->priv->stream);
            }
      }
      self->priv->bol = FALSE;
}


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


static void vala_code_writer_write_identifier (ValaCodeWriter* self, const gchar* s) {
      gchar* id;
      gint _tmp0_;
      gint id_length;
      gboolean _tmp1_ = FALSE;
      ValaProfile _tmp2_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (s != NULL);
      id = (gchar*) s;
      _tmp0_ = strlen (s);
      id_length = (gint) _tmp0_;
      _tmp2_ = vala_code_context_get_profile (self->priv->context);
      if (_tmp2_ != VALA_PROFILE_DOVA) {
            gboolean _tmp3_ = FALSE;
            ValaTokenType _tmp4_;
            _tmp4_ = vala_scanner_get_identifier_or_keyword (id, id_length);
            if (_tmp4_ != VALA_TOKEN_TYPE_IDENTIFIER) {
                  _tmp3_ = TRUE;
            } else {
                  gunichar _tmp5_;
                  gboolean _tmp6_;
                  _tmp5_ = string_get_char (s, (glong) 0);
                  _tmp6_ = g_unichar_isdigit (_tmp5_);
                  _tmp3_ = _tmp6_;
            }
            _tmp1_ = _tmp3_;
      } else {
            _tmp1_ = FALSE;
      }
      if (_tmp1_) {
            fputc ('@', self->priv->stream);
      }
      vala_code_writer_write_string (self, s);
}


static void vala_code_writer_write_return_type (ValaCodeWriter* self, ValaDataType* type) {
      gboolean _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (type != NULL);
      _tmp0_ = vala_data_type_is_weak (type);
      if (_tmp0_) {
            vala_code_writer_write_string (self, "unowned ");
      }
      vala_code_writer_write_type (self, type);
}


static void vala_code_writer_write_type (ValaCodeWriter* self, ValaDataType* type) {
      gchar* _tmp0_ = NULL;
      gchar* _tmp1_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (type != NULL);
      _tmp0_ = vala_data_type_to_qualified_string (type, self->priv->current_scope);
      _tmp1_ = _tmp0_;
      vala_code_writer_write_string (self, _tmp1_);
      _g_free0 (_tmp1_);
}


static void vala_code_writer_write_string (ValaCodeWriter* self, const gchar* s) {
      g_return_if_fail (self != NULL);
      g_return_if_fail (s != NULL);
      fprintf (self->priv->stream, "%s", s);
      self->priv->bol = FALSE;
}


static void vala_code_writer_write_newline (ValaCodeWriter* self) {
      g_return_if_fail (self != NULL);
      fputc ('\n', self->priv->stream);
      self->priv->bol = TRUE;
}


static void vala_code_writer_write_code_block (ValaCodeWriter* self, ValaBlock* block) {
      gboolean _tmp0_ = FALSE;
      g_return_if_fail (self != NULL);
      if (block == NULL) {
            _tmp0_ = TRUE;
      } else {
            _tmp0_ = self->priv->type != VALA_CODE_WRITER_TYPE_DUMP;
      }
      if (_tmp0_) {
            vala_code_writer_write_string (self, ";");
            return;
      }
      vala_code_node_accept ((ValaCodeNode*) block, (ValaCodeVisitor*) self);
}


static void vala_code_writer_write_begin_block (ValaCodeWriter* self) {
      g_return_if_fail (self != NULL);
      if (!self->priv->bol) {
            fputc (' ', self->priv->stream);
      } else {
            vala_code_writer_write_indent (self);
      }
      fputc ('{', self->priv->stream);
      vala_code_writer_write_newline (self);
      self->priv->indent++;
}


static void vala_code_writer_write_end_block (ValaCodeWriter* self) {
      g_return_if_fail (self != NULL);
      self->priv->indent--;
      vala_code_writer_write_indent (self);
      fprintf (self->priv->stream, "}");
}


static gboolean vala_code_writer_check_accessibility (ValaCodeWriter* self, ValaSymbol* sym) {
      gboolean result = FALSE;
      g_return_val_if_fail (self != NULL, FALSE);
      g_return_val_if_fail (sym != NULL, FALSE);
      switch (self->priv->type) {
            case VALA_CODE_WRITER_TYPE_EXTERNAL:
            {
                  gboolean _tmp0_ = FALSE;
                  ValaSymbolAccessibility _tmp1_;
                  _tmp1_ = vala_symbol_get_access (sym);
                  if (_tmp1_ == VALA_SYMBOL_ACCESSIBILITY_PUBLIC) {
                        _tmp0_ = TRUE;
                  } else {
                        ValaSymbolAccessibility _tmp2_;
                        _tmp2_ = vala_symbol_get_access (sym);
                        _tmp0_ = _tmp2_ == VALA_SYMBOL_ACCESSIBILITY_PROTECTED;
                  }
                  result = _tmp0_;
                  return result;
            }
            case VALA_CODE_WRITER_TYPE_INTERNAL:
            case VALA_CODE_WRITER_TYPE_FAST:
            {
                  gboolean _tmp3_ = FALSE;
                  gboolean _tmp4_ = FALSE;
                  ValaSymbolAccessibility _tmp5_;
                  _tmp5_ = vala_symbol_get_access (sym);
                  if (_tmp5_ == VALA_SYMBOL_ACCESSIBILITY_INTERNAL) {
                        _tmp4_ = TRUE;
                  } else {
                        ValaSymbolAccessibility _tmp6_;
                        _tmp6_ = vala_symbol_get_access (sym);
                        _tmp4_ = _tmp6_ == VALA_SYMBOL_ACCESSIBILITY_PUBLIC;
                  }
                  if (_tmp4_) {
                        _tmp3_ = TRUE;
                  } else {
                        ValaSymbolAccessibility _tmp7_;
                        _tmp7_ = vala_symbol_get_access (sym);
                        _tmp3_ = _tmp7_ == VALA_SYMBOL_ACCESSIBILITY_PROTECTED;
                  }
                  result = _tmp3_;
                  return result;
            }
            case VALA_CODE_WRITER_TYPE_DUMP:
            {
                  result = TRUE;
                  return result;
            }
            default:
            {
                  g_assert_not_reached ();
            }
      }
}


static void vala_code_writer_write_attributes (ValaCodeWriter* self, ValaCodeNode* node) {
      g_return_if_fail (self != NULL);
      g_return_if_fail (node != NULL);
      {
            GList* attr_collection;
            GList* attr_it;
            attr_collection = node->attributes;
            for (attr_it = attr_collection; attr_it != NULL; attr_it = attr_it->next) {
                  ValaAttribute* _tmp0_;
                  ValaAttribute* attr;
                  _tmp0_ = _vala_code_node_ref0 ((ValaAttribute*) attr_it->data);
                  attr = _tmp0_;
                  {
                        gboolean _tmp1_;
                        _tmp1_ = vala_code_writer_filter_attribute (self, attr);
                        if (!_tmp1_) {
                              const gchar* _tmp2_ = NULL;
                              ValaSet* _tmp3_ = NULL;
                              ValaSet* keys;
                              gint _tmp4_;
                              vala_code_writer_write_indent (self);
                              _tmp2_ = vala_attribute_get_name (attr);
                              fprintf (self->priv->stream, "[%s", _tmp2_);
                              _tmp3_ = vala_map_get_keys (attr->args);
                              keys = _tmp3_;
                              _tmp4_ = vala_collection_get_size ((ValaCollection*) keys);
                              if (_tmp4_ != 0) {
                                    gchar* _tmp5_;
                                    gchar* separator;
                                    fprintf (self->priv->stream, " (");
                                    _tmp5_ = g_strdup ("");
                                    separator = _tmp5_;
                                    {
                                          ValaIterator* _tmp6_ = NULL;
                                          ValaIterator* _arg_name_it;
                                          _tmp6_ = vala_iterable_iterator ((ValaIterable*) keys);
                                          _arg_name_it = _tmp6_;
                                          while (TRUE) {
                                                gboolean _tmp7_;
                                                gpointer _tmp8_ = NULL;
                                                gchar* arg_name;
                                                gpointer _tmp9_ = NULL;
                                                gchar* _tmp10_;
                                                gchar* _tmp11_;
                                                _tmp7_ = vala_iterator_next (_arg_name_it);
                                                if (!_tmp7_) {
                                                      break;
                                                }
                                                _tmp8_ = vala_iterator_get (_arg_name_it);
                                                arg_name = (gchar*) _tmp8_;
                                                _tmp9_ = vala_map_get (attr->args, arg_name);
                                                _tmp10_ = (gchar*) _tmp9_;
                                                fprintf (self->priv->stream, "%s%s = %s", separator, arg_name, _tmp10_);
                                                _g_free0 (_tmp10_);
                                                _tmp11_ = g_strdup (", ");
                                                _g_free0 (separator);
                                                separator = _tmp11_;
                                                _g_free0 (arg_name);
                                          }
                                          _vala_iterator_unref0 (_arg_name_it);
                                    }
                                    fprintf (self->priv->stream, ")");
                                    _g_free0 (separator);
                              }
                              fprintf (self->priv->stream, "]");
                              vala_code_writer_write_newline (self);
                              _vala_iterable_unref0 (keys);
                        }
                        _vala_code_node_unref0 (attr);
                  }
            }
      }
}


static gboolean vala_code_writer_filter_attribute (ValaCodeWriter* self, ValaAttribute* attr) {
      gboolean result = FALSE;
      gboolean _tmp0_ = FALSE;
      gboolean _tmp1_ = FALSE;
      gboolean _tmp2_ = FALSE;
      gboolean _tmp3_ = FALSE;
      gboolean _tmp4_ = FALSE;
      gboolean _tmp5_ = FALSE;
      const gchar* _tmp6_ = NULL;
      g_return_val_if_fail (self != NULL, FALSE);
      g_return_val_if_fail (attr != NULL, FALSE);
      _tmp6_ = vala_attribute_get_name (attr);
      if (g_strcmp0 (_tmp6_, "CCode") == 0) {
            _tmp5_ = TRUE;
      } else {
            const gchar* _tmp7_ = NULL;
            _tmp7_ = vala_attribute_get_name (attr);
            _tmp5_ = g_strcmp0 (_tmp7_, "Compact") == 0;
      }
      if (_tmp5_) {
            _tmp4_ = TRUE;
      } else {
            const gchar* _tmp8_ = NULL;
            _tmp8_ = vala_attribute_get_name (attr);
            _tmp4_ = g_strcmp0 (_tmp8_, "Immutable") == 0;
      }
      if (_tmp4_) {
            _tmp3_ = TRUE;
      } else {
            const gchar* _tmp9_ = NULL;
            _tmp9_ = vala_attribute_get_name (attr);
            _tmp3_ = g_strcmp0 (_tmp9_, "SimpleType") == 0;
      }
      if (_tmp3_) {
            _tmp2_ = TRUE;
      } else {
            const gchar* _tmp10_ = NULL;
            _tmp10_ = vala_attribute_get_name (attr);
            _tmp2_ = g_strcmp0 (_tmp10_, "IntegerType") == 0;
      }
      if (_tmp2_) {
            _tmp1_ = TRUE;
      } else {
            const gchar* _tmp11_ = NULL;
            _tmp11_ = vala_attribute_get_name (attr);
            _tmp1_ = g_strcmp0 (_tmp11_, "FloatingType") == 0;
      }
      if (_tmp1_) {
            _tmp0_ = TRUE;
      } else {
            const gchar* _tmp12_ = NULL;
            _tmp12_ = vala_attribute_get_name (attr);
            _tmp0_ = g_strcmp0 (_tmp12_, "Flags") == 0;
      }
      if (_tmp0_) {
            result = TRUE;
            return result;
      }
      result = FALSE;
      return result;
}


static void vala_code_writer_write_accessibility (ValaCodeWriter* self, ValaSymbol* sym) {
      ValaSymbolAccessibility _tmp0_;
      gboolean _tmp4_ = FALSE;
      gboolean _tmp5_ = FALSE;
      g_return_if_fail (self != NULL);
      g_return_if_fail (sym != NULL);
      _tmp0_ = vala_symbol_get_access (sym);
      if (_tmp0_ == VALA_SYMBOL_ACCESSIBILITY_PUBLIC) {
            vala_code_writer_write_string (self, "public ");
      } else {
            ValaSymbolAccessibility _tmp1_;
            _tmp1_ = vala_symbol_get_access (sym);
            if (_tmp1_ == VALA_SYMBOL_ACCESSIBILITY_PROTECTED) {
                  vala_code_writer_write_string (self, "protected ");
            } else {
                  ValaSymbolAccessibility _tmp2_;
                  _tmp2_ = vala_symbol_get_access (sym);
                  if (_tmp2_ == VALA_SYMBOL_ACCESSIBILITY_INTERNAL) {
                        vala_code_writer_write_string (self, "internal ");
                  } else {
                        ValaSymbolAccessibility _tmp3_;
                        _tmp3_ = vala_symbol_get_access (sym);
                        if (_tmp3_ == VALA_SYMBOL_ACCESSIBILITY_PRIVATE) {
                              vala_code_writer_write_string (self, "private ");
                        }
                  }
            }
      }
      if (self->priv->type != VALA_CODE_WRITER_TYPE_EXTERNAL) {
            gboolean _tmp6_;
            _tmp6_ = vala_symbol_get_external (sym);
            _tmp5_ = _tmp6_;
      } else {
            _tmp5_ = FALSE;
      }
      if (_tmp5_) {
            gboolean _tmp7_;
            _tmp7_ = vala_symbol_get_external_package (sym);
            _tmp4_ = !_tmp7_;
      } else {
            _tmp4_ = FALSE;
      }
      if (_tmp4_) {
            vala_code_writer_write_string (self, "extern ");
      }
}


static void vala_code_writer_write_property_accessor_accessibility (ValaCodeWriter* self, ValaSymbol* sym) {
      ValaSymbolAccessibility _tmp0_;
      g_return_if_fail (self != NULL);
      g_return_if_fail (sym != NULL);
      _tmp0_ = vala_symbol_get_access (sym);
      if (_tmp0_ == VALA_SYMBOL_ACCESSIBILITY_PROTECTED) {
            vala_code_writer_write_string (self, " protected");
      } else {
            ValaSymbolAccessibility _tmp1_;
            _tmp1_ = vala_symbol_get_access (sym);
            if (_tmp1_ == VALA_SYMBOL_ACCESSIBILITY_INTERNAL) {
                  vala_code_writer_write_string (self, " internal");
            } else {
                  ValaSymbolAccessibility _tmp2_;
                  _tmp2_ = vala_symbol_get_access (sym);
                  if (_tmp2_ == VALA_SYMBOL_ACCESSIBILITY_PRIVATE) {
                        vala_code_writer_write_string (self, " private");
                  }
            }
      }
}


static void vala_code_writer_class_init (ValaCodeWriterClass * klass) {
      vala_code_writer_parent_class = g_type_class_peek_parent (klass);
      VALA_CODE_VISITOR_CLASS (klass)->finalize = vala_code_writer_finalize;
      g_type_class_add_private (klass, sizeof (ValaCodeWriterPrivate));
      VALA_CODE_VISITOR_CLASS (klass)->visit_using_directive = vala_code_writer_real_visit_using_directive;
      VALA_CODE_VISITOR_CLASS (klass)->visit_namespace = vala_code_writer_real_visit_namespace;
      VALA_CODE_VISITOR_CLASS (klass)->visit_class = vala_code_writer_real_visit_class;
      VALA_CODE_VISITOR_CLASS (klass)->visit_struct = vala_code_writer_real_visit_struct;
      VALA_CODE_VISITOR_CLASS (klass)->visit_interface = vala_code_writer_real_visit_interface;
      VALA_CODE_VISITOR_CLASS (klass)->visit_enum = vala_code_writer_real_visit_enum;
      VALA_CODE_VISITOR_CLASS (klass)->visit_error_domain = vala_code_writer_real_visit_error_domain;
      VALA_CODE_VISITOR_CLASS (klass)->visit_error_code = vala_code_writer_real_visit_error_code;
      VALA_CODE_VISITOR_CLASS (klass)->visit_constant = vala_code_writer_real_visit_constant;
      VALA_CODE_VISITOR_CLASS (klass)->visit_field = vala_code_writer_real_visit_field;
      VALA_CODE_VISITOR_CLASS (klass)->visit_delegate = vala_code_writer_real_visit_delegate;
      VALA_CODE_VISITOR_CLASS (klass)->visit_constructor = vala_code_writer_real_visit_constructor;
      VALA_CODE_VISITOR_CLASS (klass)->visit_method = vala_code_writer_real_visit_method;
      VALA_CODE_VISITOR_CLASS (klass)->visit_creation_method = vala_code_writer_real_visit_creation_method;
      VALA_CODE_VISITOR_CLASS (klass)->visit_property = vala_code_writer_real_visit_property;
      VALA_CODE_VISITOR_CLASS (klass)->visit_signal = vala_code_writer_real_visit_signal;
      VALA_CODE_VISITOR_CLASS (klass)->visit_block = vala_code_writer_real_visit_block;
      VALA_CODE_VISITOR_CLASS (klass)->visit_empty_statement = vala_code_writer_real_visit_empty_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_declaration_statement = vala_code_writer_real_visit_declaration_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_local_variable = vala_code_writer_real_visit_local_variable;
      VALA_CODE_VISITOR_CLASS (klass)->visit_initializer_list = vala_code_writer_real_visit_initializer_list;
      VALA_CODE_VISITOR_CLASS (klass)->visit_expression_statement = vala_code_writer_real_visit_expression_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_if_statement = vala_code_writer_real_visit_if_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_switch_statement = vala_code_writer_real_visit_switch_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_switch_section = vala_code_writer_real_visit_switch_section;
      VALA_CODE_VISITOR_CLASS (klass)->visit_switch_label = vala_code_writer_real_visit_switch_label;
      VALA_CODE_VISITOR_CLASS (klass)->visit_loop = vala_code_writer_real_visit_loop;
      VALA_CODE_VISITOR_CLASS (klass)->visit_while_statement = vala_code_writer_real_visit_while_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_do_statement = vala_code_writer_real_visit_do_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_for_statement = vala_code_writer_real_visit_for_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_foreach_statement = vala_code_writer_real_visit_foreach_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_break_statement = vala_code_writer_real_visit_break_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_continue_statement = vala_code_writer_real_visit_continue_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_return_statement = vala_code_writer_real_visit_return_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_yield_statement = vala_code_writer_real_visit_yield_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_throw_statement = vala_code_writer_real_visit_throw_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_try_statement = vala_code_writer_real_visit_try_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_catch_clause = vala_code_writer_real_visit_catch_clause;
      VALA_CODE_VISITOR_CLASS (klass)->visit_lock_statement = vala_code_writer_real_visit_lock_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_delete_statement = vala_code_writer_real_visit_delete_statement;
      VALA_CODE_VISITOR_CLASS (klass)->visit_array_creation_expression = vala_code_writer_real_visit_array_creation_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_boolean_literal = vala_code_writer_real_visit_boolean_literal;
      VALA_CODE_VISITOR_CLASS (klass)->visit_character_literal = vala_code_writer_real_visit_character_literal;
      VALA_CODE_VISITOR_CLASS (klass)->visit_integer_literal = vala_code_writer_real_visit_integer_literal;
      VALA_CODE_VISITOR_CLASS (klass)->visit_real_literal = vala_code_writer_real_visit_real_literal;
      VALA_CODE_VISITOR_CLASS (klass)->visit_string_literal = vala_code_writer_real_visit_string_literal;
      VALA_CODE_VISITOR_CLASS (klass)->visit_null_literal = vala_code_writer_real_visit_null_literal;
      VALA_CODE_VISITOR_CLASS (klass)->visit_member_access = vala_code_writer_real_visit_member_access;
      VALA_CODE_VISITOR_CLASS (klass)->visit_method_call = vala_code_writer_real_visit_method_call;
      VALA_CODE_VISITOR_CLASS (klass)->visit_element_access = vala_code_writer_real_visit_element_access;
      VALA_CODE_VISITOR_CLASS (klass)->visit_slice_expression = vala_code_writer_real_visit_slice_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_base_access = vala_code_writer_real_visit_base_access;
      VALA_CODE_VISITOR_CLASS (klass)->visit_postfix_expression = vala_code_writer_real_visit_postfix_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_object_creation_expression = vala_code_writer_real_visit_object_creation_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_sizeof_expression = vala_code_writer_real_visit_sizeof_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_typeof_expression = vala_code_writer_real_visit_typeof_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_unary_expression = vala_code_writer_real_visit_unary_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_cast_expression = vala_code_writer_real_visit_cast_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_pointer_indirection = vala_code_writer_real_visit_pointer_indirection;
      VALA_CODE_VISITOR_CLASS (klass)->visit_addressof_expression = vala_code_writer_real_visit_addressof_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_reference_transfer_expression = vala_code_writer_real_visit_reference_transfer_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_binary_expression = vala_code_writer_real_visit_binary_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_type_check = vala_code_writer_real_visit_type_check;
      VALA_CODE_VISITOR_CLASS (klass)->visit_conditional_expression = vala_code_writer_real_visit_conditional_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_lambda_expression = vala_code_writer_real_visit_lambda_expression;
      VALA_CODE_VISITOR_CLASS (klass)->visit_assignment = vala_code_writer_real_visit_assignment;
}


static void vala_code_writer_instance_init (ValaCodeWriter * self) {
      self->priv = VALA_CODE_WRITER_GET_PRIVATE (self);
      self->priv->bol = TRUE;
      self->priv->override_header = NULL;
      self->priv->header_to_override = NULL;
}


static void vala_code_writer_finalize (ValaCodeVisitor* obj) {
      ValaCodeWriter * self;
      self = VALA_CODE_WRITER (obj);
      _vala_code_context_unref0 (self->priv->context);
      _fclose0 (self->priv->stream);
      _vala_scope_unref0 (self->priv->current_scope);
      _g_free0 (self->priv->override_header);
      _g_free0 (self->priv->header_to_override);
      VALA_CODE_VISITOR_CLASS (vala_code_writer_parent_class)->finalize (obj);
}


/**
 * Code visitor generating Vala API file for the public interface.
 */
GType vala_code_writer_get_type (void) {
      static volatile gsize vala_code_writer_type_id__volatile = 0;
      if (g_once_init_enter (&vala_code_writer_type_id__volatile)) {
            static const GTypeInfo g_define_type_info = { sizeof (ValaCodeWriterClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_code_writer_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaCodeWriter), 0, (GInstanceInitFunc) vala_code_writer_instance_init, NULL };
            GType vala_code_writer_type_id;
            vala_code_writer_type_id = g_type_register_static (VALA_TYPE_CODE_VISITOR, "ValaCodeWriter", &g_define_type_info, 0);
            g_once_init_leave (&vala_code_writer_type_id__volatile, vala_code_writer_type_id);
      }
      return vala_code_writer_type_id__volatile;
}


GType vala_code_writer_type_get_type (void) {
      static volatile gsize vala_code_writer_type_type_id__volatile = 0;
      if (g_once_init_enter (&vala_code_writer_type_type_id__volatile)) {
            static const GEnumValue values[] = {{VALA_CODE_WRITER_TYPE_EXTERNAL, "VALA_CODE_WRITER_TYPE_EXTERNAL", "external"}, {VALA_CODE_WRITER_TYPE_INTERNAL, "VALA_CODE_WRITER_TYPE_INTERNAL", "internal"}, {VALA_CODE_WRITER_TYPE_FAST, "VALA_CODE_WRITER_TYPE_FAST", "fast"}, {VALA_CODE_WRITER_TYPE_DUMP, "VALA_CODE_WRITER_TYPE_DUMP", "dump"}, {0, NULL, NULL}};
            GType vala_code_writer_type_type_id;
            vala_code_writer_type_type_id = g_enum_register_static ("ValaCodeWriterType", values);
            g_once_init_leave (&vala_code_writer_type_type_id__volatile, vala_code_writer_type_type_id);
      }
      return vala_code_writer_type_type_id__volatile;
}




Generated by  Doxygen 1.6.0   Back to index