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

/* valaparser.vala
 *
 * Copyright (C) 2006-2013  Jürg Billeter
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Author:
 * 	Jürg Billeter <j@bitron.ch>
 */

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


#define VALA_PARSER_TYPE_TOKEN_INFO (vala_parser_token_info_get_type ())
typedef struct _ValaParserTokenInfo ValaParserTokenInfo;

#define VALA_PARSER_TYPE_MODIFIER_FLAGS (vala_parser_modifier_flags_get_type ())

#define VALA_PARSER_TYPE_RECOVERY_STATE (vala_parser_recovery_state_get_type ())
#define _vala_scanner_unref0(var) ((var == NULL) ? NULL : (var = (vala_scanner_unref (var), NULL)))
#define _vala_code_context_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_context_unref (var), NULL)))
#define _vala_comment_unref0(var) ((var == NULL) ? NULL : (var = (vala_comment_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _vala_source_reference_unref0(var) ((var == NULL) ? NULL : (var = (vala_source_reference_unref (var), NULL)))
#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (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_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
#define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
#define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
#define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

struct _ValaParserTokenInfo {
	ValaTokenType type;
	ValaSourceLocation begin;
	ValaSourceLocation end;
};

struct _ValaParserPrivate {
	ValaScanner* scanner;
	ValaCodeContext* context;
	ValaParserTokenInfo* tokens;
	gint tokens_length1;
	gint _tokens_size_;
	gint index;
	gint size;
	ValaComment* comment;
};

typedef enum  {
	VALA_PARSER_MODIFIER_FLAGS_NONE,
	VALA_PARSER_MODIFIER_FLAGS_ABSTRACT = 1 << 0,
	VALA_PARSER_MODIFIER_FLAGS_CLASS = 1 << 1,
	VALA_PARSER_MODIFIER_FLAGS_EXTERN = 1 << 2,
	VALA_PARSER_MODIFIER_FLAGS_INLINE = 1 << 3,
	VALA_PARSER_MODIFIER_FLAGS_NEW = 1 << 4,
	VALA_PARSER_MODIFIER_FLAGS_OVERRIDE = 1 << 5,
	VALA_PARSER_MODIFIER_FLAGS_STATIC = 1 << 6,
	VALA_PARSER_MODIFIER_FLAGS_VIRTUAL = 1 << 7,
	VALA_PARSER_MODIFIER_FLAGS_ASYNC = 1 << 8,
	VALA_PARSER_MODIFIER_FLAGS_SEALED = 1 << 9
} ValaParserModifierFlags;

typedef enum  {
	VALA_PARSER_RECOVERY_STATE_EOF,
	VALA_PARSER_RECOVERY_STATE_DECLARATION_BEGIN,
	VALA_PARSER_RECOVERY_STATE_STATEMENT_BEGIN
} ValaParserRecoveryState;


static gpointer vala_parser_parent_class = NULL;
static ValaList* vala_parser__empty_type_parameter_list;
static ValaList* vala_parser__empty_type_parameter_list = NULL;

static GType vala_parser_token_info_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static ValaParserTokenInfo* vala_parser_token_info_dup (const ValaParserTokenInfo* self);
static void vala_parser_token_info_free (ValaParserTokenInfo* self);
#define VALA_PARSER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALA_TYPE_PARSER, ValaParserPrivate))
static GType vala_parser_modifier_flags_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GType vala_parser_recovery_state_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define VALA_PARSER_BUFFER_SIZE 32
static void vala_parser_real_visit_source_file (ValaCodeVisitor* base, ValaSourceFile* source_file);
static inline gboolean vala_parser_next (ValaParser* self);
static inline void vala_parser_prev (ValaParser* self);
static inline ValaTokenType vala_parser_current (ValaParser* self);
static inline gboolean vala_parser_accept (ValaParser* self, ValaTokenType type);
static void vala_parser_report_parse_error (ValaParser* self, GError* e);
static inline void vala_parser_get_location (ValaParser* self, ValaSourceLocation* result);
static ValaSourceReference* vala_parser_get_src (ValaParser* self, ValaSourceLocation* begin);
static inline gboolean vala_parser_expect (ValaParser* self, ValaTokenType type, GError** error);
static gchar* vala_parser_get_current_string (ValaParser* self);
static gchar* vala_parser_get_last_string (ValaParser* self);
static ValaSourceReference* vala_parser_get_current_src (ValaParser* self);
static ValaSourceReference* vala_parser_get_last_src (ValaParser* self);
static void vala_parser_rollback (ValaParser* self, ValaSourceLocation* location);
static void vala_parser_skip_identifier (ValaParser* self, GError** error);
static gchar* vala_parser_parse_identifier (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_literal (ValaParser* self, GError** error);
static void vala_parser_parse_file_comments (ValaParser* self);
static void vala_parser_parse_using_directives (ValaParser* self, ValaNamespace* ns, GError** error);
static void vala_parser_parse_declarations (ValaParser* self, ValaSymbol* parent, gboolean root, GError** error);
static void vala_parser_skip_symbol_name (ValaParser* self, GError** error);
static ValaUnresolvedSymbol* vala_parser_parse_symbol_name (ValaParser* self, GError** error);
static void vala_parser_skip_type (ValaParser* self, GError** error);
static gboolean vala_parser_is_inner_array_type (ValaParser* self);
static void vala_parser_skip_type_argument_list (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_expression (ValaParser* self, GError** error);
static ValaDataType* vala_parser_parse_type (ValaParser* self, gboolean owned_by_default, gboolean can_weak_ref, gboolean require_unowned, GError** error);
static ValaList* vala_parser_parse_type_argument_list (ValaParser* self, gboolean maybe_expression, GError** error);
static ValaDataType* vala_parser_parse_inline_array_type (ValaParser* self, ValaDataType* type, GError** error);
static ValaList* vala_parser_parse_argument_list (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_argument (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_primary_expression (ValaParser* self, GError** error);
static ValaInitializerList* vala_parser_parse_initializer (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_simple_name (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_tuple (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_template (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_regex_literal (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_this_access (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_base_access (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_object_or_array_creation_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_yield_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_sizeof_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_typeof_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_member_access (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error);
static ValaExpression* vala_parser_parse_pointer_member_access (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error);
static ValaExpression* vala_parser_parse_method_call (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error);
static ValaExpression* vala_parser_parse_element_access (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error);
static ValaExpression* vala_parser_parse_post_increment_expression (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error);
static ValaExpression* vala_parser_parse_post_decrement_expression (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error);
static ValaList* vala_parser_parse_object_initializer (ValaParser* self, GError** error);
static ValaList* vala_parser_parse_expression_list (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_array_creation_expression (ValaParser* self, GError** error);
static ValaMemberAccess* vala_parser_parse_member_name (ValaParser* self, ValaExpression* base_expr, GError** error);
static ValaExpression* vala_parser_parse_object_creation_expression (ValaParser* self, ValaSourceLocation* begin, ValaMemberAccess* member, GError** error);
static ValaMemberInitializer* vala_parser_parse_member_initializer (ValaParser* self, GError** error);
static ValaUnaryOperator vala_parser_get_unary_operator (ValaParser* self, ValaTokenType token_type);
static ValaExpression* vala_parser_parse_unary_expression (ValaParser* self, GError** error);
static ValaBinaryOperator vala_parser_get_binary_operator (ValaParser* self, ValaTokenType token_type);
static ValaExpression* vala_parser_parse_multiplicative_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_additive_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_shift_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_relational_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_equality_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_and_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_exclusive_or_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_inclusive_or_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_in_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_conditional_and_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_conditional_or_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_coalescing_expression (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_conditional_expression (ValaParser* self, GError** error);
static ValaParameter* vala_parser_parse_lambda_parameter (ValaParser* self, GError** error);
static ValaExpression* vala_parser_parse_lambda_expression (ValaParser* self, GError** error);
static ValaBlock* vala_parser_parse_block (ValaParser* self, GError** error);
static ValaAssignmentOperator vala_parser_get_assignment_operator (ValaParser* self, ValaTokenType token_type);
static gboolean vala_parser_is_lambda_expression (ValaParser* self);
static void vala_parser_parse_statements (ValaParser* self, ValaBlock* block, GError** error);
static ValaStatement* vala_parser_parse_empty_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_if_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_switch_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_while_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_do_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_for_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_foreach_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_break_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_continue_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_return_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_yield_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_throw_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_try_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_lock_statement (ValaParser* self, GError** error);
static ValaStatement* vala_parser_parse_delete_statement (ValaParser* self, GError** error);
static void vala_parser_parse_local_variable_declarations (ValaParser* self, ValaBlock* block, GError** error);
static void vala_parser_parse_local_constant_declarations (ValaParser* self, ValaBlock* block, GError** error);
static ValaStatement* vala_parser_parse_expression_statement (ValaParser* self, GError** error);
static gboolean vala_parser_is_expression (ValaParser* self, GError** error);
static ValaParserRecoveryState vala_parser_recover (ValaParser* self);
static ValaBlock* vala_parser_parse_embedded_statement (ValaParser* self, const gchar* statement_name, gboolean accept_empty_body, GError** error);
static ValaStatement* vala_parser_parse_embedded_statement_without_block (ValaParser* self, const gchar* statement_name, gboolean accept_empty_body, GError** error);
static void _vala_array_add12 (gchar** * array, int* length, int* size, gchar* value);
static ValaLocalVariable* vala_parser_parse_local_variable (ValaParser* self, ValaDataType* variable_type, GError** error);
static ValaConstant* vala_parser_parse_local_constant (ValaParser* self, ValaDataType* constant_type, GError** error);
static ValaExpression* vala_parser_parse_statement_expression (ValaParser* self, GError** error);
static void vala_parser_parse_catch_clauses (ValaParser* self, ValaList* catch_clauses, GError** error);
static ValaBlock* vala_parser_parse_finally_clause (ValaParser* self, GError** error);
static gchar* vala_parser_parse_attribute_value (ValaParser* self, GError** error);
static ValaList* vala_parser_parse_attributes (ValaParser* self, GError** error);
static void vala_parser_set_attributes (ValaParser* self, ValaCodeNode* node, ValaList* attributes);
static void vala_parser_parse_main_block (ValaParser* self, ValaSymbol* parent, GError** error);
static void vala_parser_parse_declaration (ValaParser* self, ValaSymbol* parent, gboolean root, GError** error);
static gboolean vala_parser_is_declaration_keyword (ValaParser* self, ValaTokenType type);
static void vala_parser_parse_constructor_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_destructor_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_class_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_enum_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_errordomain_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_interface_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_namespace_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_struct_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_creation_method_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_delegate_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_signal_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_method_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_constant_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_field_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static void vala_parser_parse_property_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error);
static ValaSymbolAccessibility vala_parser_parse_access_modifier (ValaParser* self, ValaSymbolAccessibility default_access);
static ValaParserModifierFlags vala_parser_parse_type_declaration_modifiers (ValaParser* self);
static ValaList* vala_parser_parse_type_parameter_list (ValaParser* self, GError** error);
static ValaParserModifierFlags vala_parser_parse_member_declaration_modifiers (ValaParser* self);
static ValaParameter* vala_parser_parse_parameter (ValaParser* self, GError** error);
static void vala_parser_finalize (ValaCodeVisitor * obj);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


static GType vala_parser_modifier_flags_get_type (void) {
	static volatile gsize vala_parser_modifier_flags_type_id__volatile = 0;
	if (g_once_init_enter (&vala_parser_modifier_flags_type_id__volatile)) {
		static const GEnumValue values[] = {{VALA_PARSER_MODIFIER_FLAGS_NONE, "VALA_PARSER_MODIFIER_FLAGS_NONE", "none"}, {VALA_PARSER_MODIFIER_FLAGS_ABSTRACT, "VALA_PARSER_MODIFIER_FLAGS_ABSTRACT", "abstract"}, {VALA_PARSER_MODIFIER_FLAGS_CLASS, "VALA_PARSER_MODIFIER_FLAGS_CLASS", "class"}, {VALA_PARSER_MODIFIER_FLAGS_EXTERN, "VALA_PARSER_MODIFIER_FLAGS_EXTERN", "extern"}, {VALA_PARSER_MODIFIER_FLAGS_INLINE, "VALA_PARSER_MODIFIER_FLAGS_INLINE", "inline"}, {VALA_PARSER_MODIFIER_FLAGS_NEW, "VALA_PARSER_MODIFIER_FLAGS_NEW", "new"}, {VALA_PARSER_MODIFIER_FLAGS_OVERRIDE, "VALA_PARSER_MODIFIER_FLAGS_OVERRIDE", "override"}, {VALA_PARSER_MODIFIER_FLAGS_STATIC, "VALA_PARSER_MODIFIER_FLAGS_STATIC", "static"}, {VALA_PARSER_MODIFIER_FLAGS_VIRTUAL, "VALA_PARSER_MODIFIER_FLAGS_VIRTUAL", "virtual"}, {VALA_PARSER_MODIFIER_FLAGS_ASYNC, "VALA_PARSER_MODIFIER_FLAGS_ASYNC", "async"}, {VALA_PARSER_MODIFIER_FLAGS_SEALED, "VALA_PARSER_MODIFIER_FLAGS_SEALED", "sealed"}, {0, NULL, NULL}};
		GType vala_parser_modifier_flags_type_id;
		vala_parser_modifier_flags_type_id = g_enum_register_static ("ValaParserModifierFlags", values);
		g_once_init_leave (&vala_parser_modifier_flags_type_id__volatile, vala_parser_modifier_flags_type_id);
	}
	return vala_parser_modifier_flags_type_id__volatile;
}


static GType vala_parser_recovery_state_get_type (void) {
	static volatile gsize vala_parser_recovery_state_type_id__volatile = 0;
	if (g_once_init_enter (&vala_parser_recovery_state_type_id__volatile)) {
		static const GEnumValue values[] = {{VALA_PARSER_RECOVERY_STATE_EOF, "VALA_PARSER_RECOVERY_STATE_EOF", "eof"}, {VALA_PARSER_RECOVERY_STATE_DECLARATION_BEGIN, "VALA_PARSER_RECOVERY_STATE_DECLARATION_BEGIN", "declaration-begin"}, {VALA_PARSER_RECOVERY_STATE_STATEMENT_BEGIN, "VALA_PARSER_RECOVERY_STATE_STATEMENT_BEGIN", "statement-begin"}, {0, NULL, NULL}};
		GType vala_parser_recovery_state_type_id;
		vala_parser_recovery_state_type_id = g_enum_register_static ("ValaParserRecoveryState", values);
		g_once_init_leave (&vala_parser_recovery_state_type_id__volatile, vala_parser_recovery_state_type_id);
	}
	return vala_parser_recovery_state_type_id__volatile;
}


ValaParser* vala_parser_construct (GType object_type) {
	ValaParser* self = NULL;
	ValaParserTokenInfo* _tmp0_;
	self = (ValaParser*) vala_code_visitor_construct (object_type);
	_tmp0_ = g_new0 (ValaParserTokenInfo, VALA_PARSER_BUFFER_SIZE);
	self->priv->tokens = (g_free (self->priv->tokens), NULL);
	self->priv->tokens = _tmp0_;
	self->priv->tokens_length1 = VALA_PARSER_BUFFER_SIZE;
	self->priv->_tokens_size_ = self->priv->tokens_length1;
	return self;
}


ValaParser* vala_parser_new (void) {
	return vala_parser_construct (VALA_TYPE_PARSER);
}


/**
 * Parses all .vala and .vapi source files in the specified code
 * context and builds a code tree.
 *
 * @param context a code context
 */
static gpointer _vala_code_context_ref0 (gpointer self) {
	return self ? vala_code_context_ref (self) : NULL;
}


void vala_parser_parse (ValaParser* self, ValaCodeContext* context) {
	ValaCodeContext* _tmp0_;
	ValaCodeContext* _tmp1_;
	ValaCodeContext* _tmp2_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (context != NULL);
	_tmp0_ = context;
	_tmp1_ = _vala_code_context_ref0 (_tmp0_);
	_vala_code_context_unref0 (self->priv->context);
	self->priv->context = _tmp1_;
	_tmp2_ = context;
	vala_code_context_accept (_tmp2_, (ValaCodeVisitor*) self);
}


static void vala_parser_real_visit_source_file (ValaCodeVisitor* base, ValaSourceFile* source_file) {
	ValaParser * self;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	ValaCodeContext* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	self = (ValaParser*) base;
	g_return_if_fail (source_file != NULL);
	_tmp2_ = self->priv->context;
	_tmp3_ = vala_code_context_get_run_output (_tmp2_);
	_tmp4_ = _tmp3_;
	if (_tmp4_) {
		_tmp1_ = TRUE;
	} else {
		ValaSourceFile* _tmp5_;
		const gchar* _tmp6_;
		const gchar* _tmp7_;
		gboolean _tmp8_;
		_tmp5_ = source_file;
		_tmp6_ = vala_source_file_get_filename (_tmp5_);
		_tmp7_ = _tmp6_;
		_tmp8_ = g_str_has_suffix (_tmp7_, ".vala");
		_tmp1_ = _tmp8_;
	}
	if (_tmp1_) {
		_tmp0_ = TRUE;
	} else {
		ValaSourceFile* _tmp9_;
		const gchar* _tmp10_;
		const gchar* _tmp11_;
		gboolean _tmp12_;
		_tmp9_ = source_file;
		_tmp10_ = vala_source_file_get_filename (_tmp9_);
		_tmp11_ = _tmp10_;
		_tmp12_ = g_str_has_suffix (_tmp11_, ".vapi");
		_tmp0_ = _tmp12_;
	}
	if (_tmp0_) {
		ValaSourceFile* _tmp13_;
		_tmp13_ = source_file;
		vala_parser_parse_file (self, _tmp13_);
	}
}


static inline gboolean vala_parser_next (ValaParser* self) {
	gboolean result = FALSE;
	gint _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	ValaParserTokenInfo* _tmp14_;
	gint _tmp14__length1;
	gint _tmp15_;
	ValaParserTokenInfo _tmp16_;
	ValaTokenType _tmp17_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->index;
	self->priv->index = (_tmp0_ + 1) % VALA_PARSER_BUFFER_SIZE;
	_tmp1_ = self->priv->size;
	self->priv->size = _tmp1_ - 1;
	_tmp2_ = self->priv->size;
	if (_tmp2_ <= 0) {
		ValaSourceLocation begin = {0};
		ValaSourceLocation end = {0};
		ValaTokenType type = 0;
		ValaScanner* _tmp3_;
		ValaSourceLocation _tmp4_ = {0};
		ValaSourceLocation _tmp5_ = {0};
		ValaTokenType _tmp6_;
		ValaParserTokenInfo* _tmp7_;
		gint _tmp7__length1;
		gint _tmp8_;
		ValaTokenType _tmp9_;
		ValaSourceLocation _tmp10_;
		ValaSourceLocation _tmp11_;
		ValaParserTokenInfo _tmp12_ = {0};
		ValaParserTokenInfo _tmp13_;
		_tmp3_ = self->priv->scanner;
		_tmp6_ = vala_scanner_read_token (_tmp3_, &_tmp4_, &_tmp5_);
		begin = _tmp4_;
		end = _tmp5_;
		type = _tmp6_;
		_tmp7_ = self->priv->tokens;
		_tmp7__length1 = self->priv->tokens_length1;
		_tmp8_ = self->priv->index;
		_tmp9_ = type;
		_tmp10_ = begin;
		_tmp11_ = end;
		_tmp12_.type = _tmp9_;
		_tmp12_.begin = _tmp10_;
		_tmp12_.end = _tmp11_;
		_tmp7_[_tmp8_] = _tmp12_;
		_tmp13_ = _tmp7_[_tmp8_];
		self->priv->size = 1;
	}
	_tmp14_ = self->priv->tokens;
	_tmp14__length1 = self->priv->tokens_length1;
	_tmp15_ = self->priv->index;
	_tmp16_ = _tmp14_[_tmp15_];
	_tmp17_ = _tmp16_.type;
	result = _tmp17_ != VALA_TOKEN_TYPE_EOF;
	return result;
}


static inline void vala_parser_prev (ValaParser* self) {
	gint _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->index;
	self->priv->index = ((_tmp0_ - 1) + VALA_PARSER_BUFFER_SIZE) % VALA_PARSER_BUFFER_SIZE;
	_tmp1_ = self->priv->size;
	self->priv->size = _tmp1_ + 1;
	_tmp2_ = self->priv->size;
	_vala_assert (_tmp2_ <= VALA_PARSER_BUFFER_SIZE, "size <= BUFFER_SIZE");
}


static inline ValaTokenType vala_parser_current (ValaParser* self) {
	ValaTokenType result = 0;
	ValaParserTokenInfo* _tmp0_;
	gint _tmp0__length1;
	gint _tmp1_;
	ValaParserTokenInfo _tmp2_;
	ValaTokenType _tmp3_;
	g_return_val_if_fail (self != NULL, 0);
	_tmp0_ = self->priv->tokens;
	_tmp0__length1 = self->priv->tokens_length1;
	_tmp1_ = self->priv->index;
	_tmp2_ = _tmp0_[_tmp1_];
	_tmp3_ = _tmp2_.type;
	result = _tmp3_;
	return result;
}


static inline gboolean vala_parser_accept (ValaParser* self, ValaTokenType type) {
	gboolean result = FALSE;
	ValaTokenType _tmp0_;
	ValaTokenType _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = vala_parser_current (self);
	_tmp1_ = type;
	if (_tmp0_ == _tmp1_) {
		vala_parser_next (self);
		result = TRUE;
		return result;
	}
	result = FALSE;
	return result;
}


static void vala_parser_report_parse_error (ValaParser* self, GError* e) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	GError* _tmp4_;
	const gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	g_return_if_fail (self != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_next (self);
	_tmp1_ = begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = e;
	_tmp5_ = _tmp4_->message;
	_tmp6_ = g_strconcat ("syntax error, ", _tmp5_, NULL);
	_tmp7_ = _tmp6_;
	vala_report_error (_tmp3_, _tmp7_);
	_g_free0 (_tmp7_);
	_vala_source_reference_unref0 (_tmp3_);
}


static inline gboolean vala_parser_expect (ValaParser* self, ValaTokenType type, GError** error) {
	gboolean result = FALSE;
	ValaTokenType _tmp0_;
	gboolean _tmp1_;
	ValaTokenType _tmp2_;
	const gchar* _tmp3_;
	GError* _tmp4_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = type;
	_tmp1_ = vala_parser_accept (self, _tmp0_);
	if (_tmp1_) {
		result = TRUE;
		return result;
	}
	_tmp2_ = type;
	_tmp3_ = vala_token_type_to_string (_tmp2_);
	_tmp4_ = g_error_new (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected %s", _tmp3_);
	_inner_error_ = _tmp4_;
	if (_inner_error_->domain == VALA_PARSE_ERROR) {
		gboolean _tmp5_ = FALSE;
		g_propagate_error (error, _inner_error_);
		return _tmp5_;
	} else {
		gboolean _tmp6_ = FALSE;
		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 _tmp6_;
	}
}


static inline void vala_parser_get_location (ValaParser* self, ValaSourceLocation* result) {
	ValaParserTokenInfo* _tmp0_;
	gint _tmp0__length1;
	gint _tmp1_;
	ValaParserTokenInfo _tmp2_;
	ValaSourceLocation _tmp3_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->tokens;
	_tmp0__length1 = self->priv->tokens_length1;
	_tmp1_ = self->priv->index;
	_tmp2_ = _tmp0_[_tmp1_];
	_tmp3_ = _tmp2_.begin;
	*result = _tmp3_;
	return;
}


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


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


static gchar* vala_parser_get_current_string (ValaParser* self) {
	gchar* result = NULL;
	ValaParserTokenInfo token = {0};
	ValaParserTokenInfo* _tmp0_;
	gint _tmp0__length1;
	gint _tmp1_;
	ValaParserTokenInfo _tmp2_;
	ValaParserTokenInfo _tmp3_;
	ValaSourceLocation _tmp4_;
	gchar* _tmp5_;
	ValaParserTokenInfo _tmp6_;
	ValaSourceLocation _tmp7_;
	gchar* _tmp8_;
	ValaParserTokenInfo _tmp9_;
	ValaSourceLocation _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->tokens;
	_tmp0__length1 = self->priv->tokens_length1;
	_tmp1_ = self->priv->index;
	_tmp2_ = _tmp0_[_tmp1_];
	token = _tmp2_;
	_tmp3_ = token;
	_tmp4_ = _tmp3_.begin;
	_tmp5_ = _tmp4_.pos;
	_tmp6_ = token;
	_tmp7_ = _tmp6_.end;
	_tmp8_ = _tmp7_.pos;
	_tmp9_ = token;
	_tmp10_ = _tmp9_.begin;
	_tmp11_ = _tmp10_.pos;
	_tmp12_ = string_substring ((const gchar*) _tmp5_, (glong) 0, (glong) ((gint) (_tmp8_ - _tmp11_)));
	result = _tmp12_;
	return result;
}


static gchar* vala_parser_get_last_string (ValaParser* self) {
	gchar* result = NULL;
	gint last_index = 0;
	gint _tmp0_;
	ValaParserTokenInfo token = {0};
	ValaParserTokenInfo* _tmp1_;
	gint _tmp1__length1;
	ValaParserTokenInfo _tmp2_;
	ValaParserTokenInfo _tmp3_;
	ValaSourceLocation _tmp4_;
	gchar* _tmp5_;
	ValaParserTokenInfo _tmp6_;
	ValaSourceLocation _tmp7_;
	gchar* _tmp8_;
	ValaParserTokenInfo _tmp9_;
	ValaSourceLocation _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->index;
	last_index = ((_tmp0_ + VALA_PARSER_BUFFER_SIZE) - 1) % VALA_PARSER_BUFFER_SIZE;
	_tmp1_ = self->priv->tokens;
	_tmp1__length1 = self->priv->tokens_length1;
	_tmp2_ = _tmp1_[last_index];
	token = _tmp2_;
	_tmp3_ = token;
	_tmp4_ = _tmp3_.begin;
	_tmp5_ = _tmp4_.pos;
	_tmp6_ = token;
	_tmp7_ = _tmp6_.end;
	_tmp8_ = _tmp7_.pos;
	_tmp9_ = token;
	_tmp10_ = _tmp9_.begin;
	_tmp11_ = _tmp10_.pos;
	_tmp12_ = string_substring ((const gchar*) _tmp5_, (glong) 0, (glong) ((gint) (_tmp8_ - _tmp11_)));
	result = _tmp12_;
	return result;
}


static ValaSourceReference* vala_parser_get_src (ValaParser* self, ValaSourceLocation* begin) {
	ValaSourceReference* result = NULL;
	gint last_index = 0;
	gint _tmp0_;
	ValaScanner* _tmp1_;
	ValaSourceFile* _tmp2_;
	ValaSourceFile* _tmp3_;
	ValaSourceLocation _tmp4_;
	ValaParserTokenInfo* _tmp5_;
	gint _tmp5__length1;
	ValaParserTokenInfo _tmp6_;
	ValaSourceLocation _tmp7_;
	ValaSourceReference* _tmp8_;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (begin != NULL, NULL);
	_tmp0_ = self->priv->index;
	last_index = ((_tmp0_ + VALA_PARSER_BUFFER_SIZE) - 1) % VALA_PARSER_BUFFER_SIZE;
	_tmp1_ = self->priv->scanner;
	_tmp2_ = vala_scanner_get_source_file (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = *begin;
	_tmp5_ = self->priv->tokens;
	_tmp5__length1 = self->priv->tokens_length1;
	_tmp6_ = _tmp5_[last_index];
	_tmp7_ = _tmp6_.end;
	_tmp8_ = vala_source_reference_new (_tmp3_, &_tmp4_, &_tmp7_);
	result = _tmp8_;
	return result;
}


static ValaSourceReference* vala_parser_get_current_src (ValaParser* self) {
	ValaSourceReference* result = NULL;
	ValaParserTokenInfo token = {0};
	ValaParserTokenInfo* _tmp0_;
	gint _tmp0__length1;
	gint _tmp1_;
	ValaParserTokenInfo _tmp2_;
	ValaScanner* _tmp3_;
	ValaSourceFile* _tmp4_;
	ValaSourceFile* _tmp5_;
	ValaParserTokenInfo _tmp6_;
	ValaSourceLocation _tmp7_;
	ValaParserTokenInfo _tmp8_;
	ValaSourceLocation _tmp9_;
	ValaSourceReference* _tmp10_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->tokens;
	_tmp0__length1 = self->priv->tokens_length1;
	_tmp1_ = self->priv->index;
	_tmp2_ = _tmp0_[_tmp1_];
	token = _tmp2_;
	_tmp3_ = self->priv->scanner;
	_tmp4_ = vala_scanner_get_source_file (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = token;
	_tmp7_ = _tmp6_.begin;
	_tmp8_ = token;
	_tmp9_ = _tmp8_.end;
	_tmp10_ = vala_source_reference_new (_tmp5_, &_tmp7_, &_tmp9_);
	result = _tmp10_;
	return result;
}


static ValaSourceReference* vala_parser_get_last_src (ValaParser* self) {
	ValaSourceReference* result = NULL;
	gint last_index = 0;
	gint _tmp0_;
	ValaParserTokenInfo token = {0};
	ValaParserTokenInfo* _tmp1_;
	gint _tmp1__length1;
	ValaParserTokenInfo _tmp2_;
	ValaScanner* _tmp3_;
	ValaSourceFile* _tmp4_;
	ValaSourceFile* _tmp5_;
	ValaParserTokenInfo _tmp6_;
	ValaSourceLocation _tmp7_;
	ValaParserTokenInfo _tmp8_;
	ValaSourceLocation _tmp9_;
	ValaSourceReference* _tmp10_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->index;
	last_index = ((_tmp0_ + VALA_PARSER_BUFFER_SIZE) - 1) % VALA_PARSER_BUFFER_SIZE;
	_tmp1_ = self->priv->tokens;
	_tmp1__length1 = self->priv->tokens_length1;
	_tmp2_ = _tmp1_[last_index];
	token = _tmp2_;
	_tmp3_ = self->priv->scanner;
	_tmp4_ = vala_scanner_get_source_file (_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = token;
	_tmp7_ = _tmp6_.begin;
	_tmp8_ = token;
	_tmp9_ = _tmp8_.end;
	_tmp10_ = vala_source_reference_new (_tmp5_, &_tmp7_, &_tmp9_);
	result = _tmp10_;
	return result;
}


static void vala_parser_rollback (ValaParser* self, ValaSourceLocation* location) {
	g_return_if_fail (self != NULL);
	g_return_if_fail (location != NULL);
	while (TRUE) {
		ValaParserTokenInfo* _tmp0_;
		gint _tmp0__length1;
		gint _tmp1_;
		ValaParserTokenInfo _tmp2_;
		ValaSourceLocation _tmp3_;
		gchar* _tmp4_;
		ValaSourceLocation _tmp5_;
		gchar* _tmp6_;
		gint _tmp7_;
		gint _tmp8_;
		gint _tmp9_;
		_tmp0_ = self->priv->tokens;
		_tmp0__length1 = self->priv->tokens_length1;
		_tmp1_ = self->priv->index;
		_tmp2_ = _tmp0_[_tmp1_];
		_tmp3_ = _tmp2_.begin;
		_tmp4_ = _tmp3_.pos;
		_tmp5_ = *location;
		_tmp6_ = _tmp5_.pos;
		if (!(_tmp4_ != _tmp6_)) {
			break;
		}
		_tmp7_ = self->priv->index;
		self->priv->index = ((_tmp7_ - 1) + VALA_PARSER_BUFFER_SIZE) % VALA_PARSER_BUFFER_SIZE;
		_tmp8_ = self->priv->size;
		self->priv->size = _tmp8_ + 1;
		_tmp9_ = self->priv->size;
		if (_tmp9_ > VALA_PARSER_BUFFER_SIZE) {
			ValaScanner* _tmp10_;
			ValaSourceLocation _tmp11_;
			_tmp10_ = self->priv->scanner;
			_tmp11_ = *location;
			vala_scanner_seek (_tmp10_, &_tmp11_);
			self->priv->size = 0;
			self->priv->index = 0;
			vala_parser_next (self);
		}
	}
}


static gchar string_get (const gchar* self, glong index) {
	gchar result = '\0';
	glong _tmp0_;
	gchar _tmp1_;
	g_return_val_if_fail (self != NULL, '\0');
	_tmp0_ = index;
	_tmp1_ = ((gchar*) self)[_tmp0_];
	result = _tmp1_;
	return result;
}


static gboolean string_contains (const gchar* self, const gchar* needle) {
	gboolean result = FALSE;
	const gchar* _tmp0_;
	gchar* _tmp1_;
	g_return_val_if_fail (self != NULL, FALSE);
	g_return_val_if_fail (needle != NULL, FALSE);
	_tmp0_ = needle;
	_tmp1_ = strstr ((gchar*) self, (gchar*) _tmp0_);
	result = _tmp1_ != NULL;
	return result;
}


static void vala_parser_skip_identifier (ValaParser* self, GError** error) {
	ValaTokenType _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = vala_parser_current (self);
	switch (_tmp0_) {
		case VALA_TOKEN_TYPE_ABSTRACT:
		case VALA_TOKEN_TYPE_AS:
		case VALA_TOKEN_TYPE_ASYNC:
		case VALA_TOKEN_TYPE_BASE:
		case VALA_TOKEN_TYPE_BREAK:
		case VALA_TOKEN_TYPE_CASE:
		case VALA_TOKEN_TYPE_CATCH:
		case VALA_TOKEN_TYPE_CLASS:
		case VALA_TOKEN_TYPE_CONST:
		case VALA_TOKEN_TYPE_CONSTRUCT:
		case VALA_TOKEN_TYPE_CONTINUE:
		case VALA_TOKEN_TYPE_DEFAULT:
		case VALA_TOKEN_TYPE_DELEGATE:
		case VALA_TOKEN_TYPE_DELETE:
		case VALA_TOKEN_TYPE_DO:
		case VALA_TOKEN_TYPE_DYNAMIC:
		case VALA_TOKEN_TYPE_ELSE:
		case VALA_TOKEN_TYPE_ENUM:
		case VALA_TOKEN_TYPE_ENSURES:
		case VALA_TOKEN_TYPE_ERRORDOMAIN:
		case VALA_TOKEN_TYPE_EXTERN:
		case VALA_TOKEN_TYPE_FALSE:
		case VALA_TOKEN_TYPE_FINALLY:
		case VALA_TOKEN_TYPE_FOR:
		case VALA_TOKEN_TYPE_FOREACH:
		case VALA_TOKEN_TYPE_GET:
		case VALA_TOKEN_TYPE_IDENTIFIER:
		case VALA_TOKEN_TYPE_IF:
		case VALA_TOKEN_TYPE_IN:
		case VALA_TOKEN_TYPE_INLINE:
		case VALA_TOKEN_TYPE_INTERFACE:
		case VALA_TOKEN_TYPE_INTERNAL:
		case VALA_TOKEN_TYPE_IS:
		case VALA_TOKEN_TYPE_LOCK:
		case VALA_TOKEN_TYPE_NAMESPACE:
		case VALA_TOKEN_TYPE_NEW:
		case VALA_TOKEN_TYPE_NULL:
		case VALA_TOKEN_TYPE_OUT:
		case VALA_TOKEN_TYPE_OVERRIDE:
		case VALA_TOKEN_TYPE_OWNED:
		case VALA_TOKEN_TYPE_PARAMS:
		case VALA_TOKEN_TYPE_PRIVATE:
		case VALA_TOKEN_TYPE_PROTECTED:
		case VALA_TOKEN_TYPE_PUBLIC:
		case VALA_TOKEN_TYPE_REF:
		case VALA_TOKEN_TYPE_REQUIRES:
		case VALA_TOKEN_TYPE_RETURN:
		case VALA_TOKEN_TYPE_SEALED:
		case VALA_TOKEN_TYPE_SET:
		case VALA_TOKEN_TYPE_SIGNAL:
		case VALA_TOKEN_TYPE_SIZEOF:
		case VALA_TOKEN_TYPE_STATIC:
		case VALA_TOKEN_TYPE_STRUCT:
		case VALA_TOKEN_TYPE_SWITCH:
		case VALA_TOKEN_TYPE_THIS:
		case VALA_TOKEN_TYPE_THROW:
		case VALA_TOKEN_TYPE_THROWS:
		case VALA_TOKEN_TYPE_TRUE:
		case VALA_TOKEN_TYPE_TRY:
		case VALA_TOKEN_TYPE_TYPEOF:
		case VALA_TOKEN_TYPE_UNOWNED:
		case VALA_TOKEN_TYPE_USING:
		case VALA_TOKEN_TYPE_VAR:
		case VALA_TOKEN_TYPE_VIRTUAL:
		case VALA_TOKEN_TYPE_VOID:
		case VALA_TOKEN_TYPE_VOLATILE:
		case VALA_TOKEN_TYPE_WEAK:
		case VALA_TOKEN_TYPE_WHILE:
		case VALA_TOKEN_TYPE_YIELD:
		{
			vala_parser_next (self);
			return;
		}
		case VALA_TOKEN_TYPE_INTEGER_LITERAL:
		case VALA_TOKEN_TYPE_REAL_LITERAL:
		{
			gchar* id = NULL;
			gchar* _tmp1_;
			gboolean _tmp2_ = FALSE;
			const gchar* _tmp3_;
			const gchar* _tmp4_;
			gint _tmp5_;
			gint _tmp6_;
			gchar _tmp7_;
			gboolean _tmp8_;
			_tmp1_ = vala_parser_get_current_string (self);
			id = _tmp1_;
			_tmp3_ = id;
			_tmp4_ = id;
			_tmp5_ = strlen (_tmp4_);
			_tmp6_ = _tmp5_;
			_tmp7_ = string_get (_tmp3_, (glong) (_tmp6_ - 1));
			_tmp8_ = g_ascii_isalpha (_tmp7_);
			if (_tmp8_) {
				const gchar* _tmp9_;
				gboolean _tmp10_;
				_tmp9_ = id;
				_tmp10_ = string_contains (_tmp9_, ".");
				_tmp2_ = !_tmp10_;
			} else {
				_tmp2_ = FALSE;
			}
			if (_tmp2_) {
				vala_parser_next (self);
				_g_free0 (id);
				return;
			}
			_g_free0 (id);
			break;
		}
		default:
		{
			GError* _tmp11_;
			_tmp11_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected identifier");
			_inner_error_ = _tmp11_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
	}
}


static gchar* vala_parser_parse_identifier (ValaParser* self, GError** error) {
	gchar* result = NULL;
	gchar* _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_skip_identifier (self, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = vala_parser_get_last_string (self);
	result = _tmp0_;
	return result;
}


static ValaExpression* vala_parser_parse_literal (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaTokenType _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_current (self);
	switch (_tmp1_) {
		case VALA_TOKEN_TYPE_TRUE:
		{
			ValaSourceLocation _tmp2_;
			ValaSourceReference* _tmp3_;
			ValaSourceReference* _tmp4_;
			ValaBooleanLiteral* _tmp5_;
			ValaExpression* _tmp6_;
			vala_parser_next (self);
			_tmp2_ = begin;
			_tmp3_ = vala_parser_get_src (self, &_tmp2_);
			_tmp4_ = _tmp3_;
			_tmp5_ = vala_boolean_literal_new (TRUE, _tmp4_);
			_tmp6_ = (ValaExpression*) _tmp5_;
			_vala_source_reference_unref0 (_tmp4_);
			result = _tmp6_;
			return result;
		}
		case VALA_TOKEN_TYPE_FALSE:
		{
			ValaSourceLocation _tmp7_;
			ValaSourceReference* _tmp8_;
			ValaSourceReference* _tmp9_;
			ValaBooleanLiteral* _tmp10_;
			ValaExpression* _tmp11_;
			vala_parser_next (self);
			_tmp7_ = begin;
			_tmp8_ = vala_parser_get_src (self, &_tmp7_);
			_tmp9_ = _tmp8_;
			_tmp10_ = vala_boolean_literal_new (FALSE, _tmp9_);
			_tmp11_ = (ValaExpression*) _tmp10_;
			_vala_source_reference_unref0 (_tmp9_);
			result = _tmp11_;
			return result;
		}
		case VALA_TOKEN_TYPE_INTEGER_LITERAL:
		{
			gchar* _tmp12_;
			gchar* _tmp13_;
			ValaSourceLocation _tmp14_;
			ValaSourceReference* _tmp15_;
			ValaSourceReference* _tmp16_;
			ValaIntegerLiteral* _tmp17_;
			ValaExpression* _tmp18_;
			vala_parser_next (self);
			_tmp12_ = vala_parser_get_last_string (self);
			_tmp13_ = _tmp12_;
			_tmp14_ = begin;
			_tmp15_ = vala_parser_get_src (self, &_tmp14_);
			_tmp16_ = _tmp15_;
			_tmp17_ = vala_integer_literal_new (_tmp13_, _tmp16_);
			_tmp18_ = (ValaExpression*) _tmp17_;
			_vala_source_reference_unref0 (_tmp16_);
			_g_free0 (_tmp13_);
			result = _tmp18_;
			return result;
		}
		case VALA_TOKEN_TYPE_REAL_LITERAL:
		{
			gchar* _tmp19_;
			gchar* _tmp20_;
			ValaSourceLocation _tmp21_;
			ValaSourceReference* _tmp22_;
			ValaSourceReference* _tmp23_;
			ValaRealLiteral* _tmp24_;
			ValaExpression* _tmp25_;
			vala_parser_next (self);
			_tmp19_ = vala_parser_get_last_string (self);
			_tmp20_ = _tmp19_;
			_tmp21_ = begin;
			_tmp22_ = vala_parser_get_src (self, &_tmp21_);
			_tmp23_ = _tmp22_;
			_tmp24_ = vala_real_literal_new (_tmp20_, _tmp23_);
			_tmp25_ = (ValaExpression*) _tmp24_;
			_vala_source_reference_unref0 (_tmp23_);
			_g_free0 (_tmp20_);
			result = _tmp25_;
			return result;
		}
		case VALA_TOKEN_TYPE_CHARACTER_LITERAL:
		{
			ValaCharacterLiteral* lit = NULL;
			gchar* _tmp26_;
			gchar* _tmp27_;
			ValaSourceLocation _tmp28_;
			ValaSourceReference* _tmp29_;
			ValaSourceReference* _tmp30_;
			ValaCharacterLiteral* _tmp31_;
			ValaCharacterLiteral* _tmp32_;
			ValaCharacterLiteral* _tmp33_;
			gboolean _tmp34_;
			gboolean _tmp35_;
			vala_parser_next (self);
			_tmp26_ = vala_parser_get_last_string (self);
			_tmp27_ = _tmp26_;
			_tmp28_ = begin;
			_tmp29_ = vala_parser_get_src (self, &_tmp28_);
			_tmp30_ = _tmp29_;
			_tmp31_ = vala_character_literal_new (_tmp27_, _tmp30_);
			_tmp32_ = _tmp31_;
			_vala_source_reference_unref0 (_tmp30_);
			_g_free0 (_tmp27_);
			lit = _tmp32_;
			_tmp33_ = lit;
			_tmp34_ = vala_code_node_get_error ((ValaCodeNode*) _tmp33_);
			_tmp35_ = _tmp34_;
			if (_tmp35_) {
				ValaCharacterLiteral* _tmp36_;
				ValaSourceReference* _tmp37_;
				ValaSourceReference* _tmp38_;
				_tmp36_ = lit;
				_tmp37_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp36_);
				_tmp38_ = _tmp37_;
				vala_report_error (_tmp38_, "invalid character literal");
			}
			result = (ValaExpression*) lit;
			return result;
		}
		case VALA_TOKEN_TYPE_REGEX_LITERAL:
		{
			gchar* match_part = NULL;
			gchar* _tmp39_;
			ValaSourceReference* src_begin = NULL;
			ValaSourceLocation _tmp40_;
			ValaSourceReference* _tmp41_;
			gchar* close_token = NULL;
			gchar* _tmp42_;
			const gchar* _tmp43_;
			const gchar* _tmp44_;
			gchar* _tmp45_;
			gchar* _tmp46_;
			ValaSourceReference* _tmp47_;
			ValaRegexLiteral* _tmp48_;
			ValaExpression* _tmp49_;
			vala_parser_next (self);
			_tmp39_ = vala_parser_get_last_string (self);
			match_part = _tmp39_;
			_tmp40_ = begin;
			_tmp41_ = vala_parser_get_src (self, &_tmp40_);
			src_begin = _tmp41_;
			vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_REGEX_LITERAL, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_source_reference_unref0 (src_begin);
					_g_free0 (match_part);
					return NULL;
				} else {
					_vala_source_reference_unref0 (src_begin);
					_g_free0 (match_part);
					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 NULL;
				}
			}
			_tmp42_ = vala_parser_get_last_string (self);
			close_token = _tmp42_;
			_tmp43_ = close_token;
			_tmp44_ = match_part;
			_tmp45_ = g_strdup_printf ("%s/%s", _tmp43_, _tmp44_);
			_tmp46_ = _tmp45_;
			_tmp47_ = src_begin;
			_tmp48_ = vala_regex_literal_new (_tmp46_, _tmp47_);
			_tmp49_ = (ValaExpression*) _tmp48_;
			_g_free0 (_tmp46_);
			result = _tmp49_;
			_g_free0 (close_token);
			_vala_source_reference_unref0 (src_begin);
			_g_free0 (match_part);
			return result;
		}
		case VALA_TOKEN_TYPE_STRING_LITERAL:
		{
			gchar* _tmp50_;
			gchar* _tmp51_;
			ValaSourceLocation _tmp52_;
			ValaSourceReference* _tmp53_;
			ValaSourceReference* _tmp54_;
			ValaStringLiteral* _tmp55_;
			ValaExpression* _tmp56_;
			vala_parser_next (self);
			_tmp50_ = vala_parser_get_last_string (self);
			_tmp51_ = _tmp50_;
			_tmp52_ = begin;
			_tmp53_ = vala_parser_get_src (self, &_tmp52_);
			_tmp54_ = _tmp53_;
			_tmp55_ = vala_string_literal_new (_tmp51_, _tmp54_);
			_tmp56_ = (ValaExpression*) _tmp55_;
			_vala_source_reference_unref0 (_tmp54_);
			_g_free0 (_tmp51_);
			result = _tmp56_;
			return result;
		}
		case VALA_TOKEN_TYPE_TEMPLATE_STRING_LITERAL:
		{
			gchar* _tmp57_;
			gchar* _tmp58_;
			gchar* _tmp59_;
			gchar* _tmp60_;
			ValaSourceLocation _tmp61_;
			ValaSourceReference* _tmp62_;
			ValaSourceReference* _tmp63_;
			ValaStringLiteral* _tmp64_;
			ValaExpression* _tmp65_;
			vala_parser_next (self);
			_tmp57_ = vala_parser_get_last_string (self);
			_tmp58_ = _tmp57_;
			_tmp59_ = g_strdup_printf ("\"%s\"", _tmp58_);
			_tmp60_ = _tmp59_;
			_tmp61_ = begin;
			_tmp62_ = vala_parser_get_src (self, &_tmp61_);
			_tmp63_ = _tmp62_;
			_tmp64_ = vala_string_literal_new (_tmp60_, _tmp63_);
			_tmp65_ = (ValaExpression*) _tmp64_;
			_vala_source_reference_unref0 (_tmp63_);
			_g_free0 (_tmp60_);
			_g_free0 (_tmp58_);
			result = _tmp65_;
			return result;
		}
		case VALA_TOKEN_TYPE_VERBATIM_STRING_LITERAL:
		{
			gchar* raw_string = NULL;
			gchar* _tmp66_;
			gchar* escaped_string = NULL;
			const gchar* _tmp67_;
			const gchar* _tmp68_;
			gint _tmp69_;
			gint _tmp70_;
			gchar* _tmp71_;
			gchar* _tmp72_;
			gchar* _tmp73_;
			gchar* _tmp74_;
			const gchar* _tmp75_;
			gchar* _tmp76_;
			gchar* _tmp77_;
			ValaSourceLocation _tmp78_;
			ValaSourceReference* _tmp79_;
			ValaSourceReference* _tmp80_;
			ValaStringLiteral* _tmp81_;
			ValaExpression* _tmp82_;
			vala_parser_next (self);
			_tmp66_ = vala_parser_get_last_string (self);
			raw_string = _tmp66_;
			_tmp67_ = raw_string;
			_tmp68_ = raw_string;
			_tmp69_ = strlen (_tmp68_);
			_tmp70_ = _tmp69_;
			_tmp71_ = string_substring (_tmp67_, (glong) 3, (glong) (_tmp70_ - 6));
			_tmp72_ = _tmp71_;
			_tmp73_ = g_strescape (_tmp72_, "");
			_tmp74_ = _tmp73_;
			_g_free0 (_tmp72_);
			escaped_string = _tmp74_;
			_tmp75_ = escaped_string;
			_tmp76_ = g_strdup_printf ("\"%s\"", _tmp75_);
			_tmp77_ = _tmp76_;
			_tmp78_ = begin;
			_tmp79_ = vala_parser_get_src (self, &_tmp78_);
			_tmp80_ = _tmp79_;
			_tmp81_ = vala_string_literal_new (_tmp77_, _tmp80_);
			_tmp82_ = (ValaExpression*) _tmp81_;
			_vala_source_reference_unref0 (_tmp80_);
			_g_free0 (_tmp77_);
			result = _tmp82_;
			_g_free0 (escaped_string);
			_g_free0 (raw_string);
			return result;
		}
		case VALA_TOKEN_TYPE_NULL:
		{
			ValaSourceLocation _tmp83_;
			ValaSourceReference* _tmp84_;
			ValaSourceReference* _tmp85_;
			ValaNullLiteral* _tmp86_;
			ValaExpression* _tmp87_;
			vala_parser_next (self);
			_tmp83_ = begin;
			_tmp84_ = vala_parser_get_src (self, &_tmp83_);
			_tmp85_ = _tmp84_;
			_tmp86_ = vala_null_literal_new (_tmp85_);
			_tmp87_ = (ValaExpression*) _tmp86_;
			_vala_source_reference_unref0 (_tmp85_);
			result = _tmp87_;
			return result;
		}
		default:
		{
			GError* _tmp88_;
			_tmp88_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected literal");
			_inner_error_ = _tmp88_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
	}
}


void vala_parser_parse_file (ValaParser* self, ValaSourceFile* source_file) {
	ValaSourceFile* _tmp0_;
	ValaScanner* _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (source_file != NULL);
	_tmp0_ = source_file;
	_tmp1_ = vala_scanner_new (_tmp0_);
	_vala_scanner_unref0 (self->priv->scanner);
	self->priv->scanner = _tmp1_;
	vala_parser_parse_file_comments (self);
	self->priv->index = -1;
	self->priv->size = 0;
	vala_parser_next (self);
	{
		ValaCodeContext* _tmp2_;
		ValaNamespace* _tmp3_;
		ValaNamespace* _tmp4_;
		ValaCodeContext* _tmp5_;
		ValaNamespace* _tmp6_;
		ValaNamespace* _tmp7_;
		gboolean _tmp8_;
		_tmp2_ = self->priv->context;
		_tmp3_ = vala_code_context_get_root (_tmp2_);
		_tmp4_ = _tmp3_;
		vala_parser_parse_using_directives (self, _tmp4_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				goto __catch11_vala_parse_error;
			}
			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;
		}
		_tmp5_ = self->priv->context;
		_tmp6_ = vala_code_context_get_root (_tmp5_);
		_tmp7_ = _tmp6_;
		vala_parser_parse_declarations (self, (ValaSymbol*) _tmp7_, TRUE, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				goto __catch11_vala_parse_error;
			}
			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;
		}
		_tmp8_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CLOSE_BRACE);
		if (_tmp8_) {
			ValaCodeContext* _tmp9_;
			ValaReport* _tmp10_;
			ValaReport* _tmp11_;
			gint _tmp12_;
			_tmp9_ = self->priv->context;
			_tmp10_ = vala_code_context_get_report (_tmp9_);
			_tmp11_ = _tmp10_;
			_tmp12_ = vala_report_get_errors (_tmp11_);
			if (_tmp12_ == 0) {
				ValaSourceReference* _tmp13_;
				ValaSourceReference* _tmp14_;
				_tmp13_ = vala_parser_get_last_src (self);
				_tmp14_ = _tmp13_;
				vala_report_error (_tmp14_, "unexpected `}'");
				_vala_source_reference_unref0 (_tmp14_);
			}
		}
	}
	goto __finally11;
	__catch11_vala_parse_error:
	{
		GError* e = NULL;
		GError* _tmp15_;
		e = _inner_error_;
		_inner_error_ = NULL;
		_tmp15_ = e;
		vala_parser_report_parse_error (self, _tmp15_);
		_g_error_free0 (e);
	}
	__finally11:
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		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;
	}
	_vala_scanner_unref0 (self->priv->scanner);
	self->priv->scanner = NULL;
}


static void vala_parser_parse_file_comments (ValaParser* self) {
	ValaScanner* _tmp0_;
	g_return_if_fail (self != NULL);
	_tmp0_ = self->priv->scanner;
	vala_scanner_parse_file_comments (_tmp0_);
}


static void vala_parser_skip_symbol_name (ValaParser* self, GError** error) {
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	{
		gboolean _tmp0_ = FALSE;
		_tmp0_ = TRUE;
		while (TRUE) {
			if (!_tmp0_) {
				gboolean _tmp1_ = FALSE;
				gboolean _tmp2_;
				_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DOT);
				if (_tmp2_) {
					_tmp1_ = TRUE;
				} else {
					gboolean _tmp3_;
					_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DOUBLE_COLON);
					_tmp1_ = _tmp3_;
				}
				if (!_tmp1_) {
					break;
				}
			}
			_tmp0_ = FALSE;
			vala_parser_skip_identifier (self, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return;
				} else {
					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;
				}
			}
		}
	}
}


static ValaUnresolvedSymbol* vala_parser_parse_symbol_name (ValaParser* self, GError** error) {
	ValaUnresolvedSymbol* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaUnresolvedSymbol* sym = NULL;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	sym = NULL;
	{
		gboolean _tmp1_ = FALSE;
		_tmp1_ = TRUE;
		while (TRUE) {
			gchar* name = NULL;
			gchar* _tmp3_;
			gboolean _tmp4_ = FALSE;
			const gchar* _tmp5_;
			ValaUnresolvedSymbol* _tmp17_;
			const gchar* _tmp18_;
			ValaSourceLocation _tmp19_;
			ValaSourceReference* _tmp20_;
			ValaSourceReference* _tmp21_;
			ValaUnresolvedSymbol* _tmp22_;
			if (!_tmp1_) {
				gboolean _tmp2_;
				_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DOT);
				if (!_tmp2_) {
					break;
				}
			}
			_tmp1_ = FALSE;
			_tmp3_ = vala_parser_parse_identifier (self, &_inner_error_);
			name = _tmp3_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (sym);
					return NULL;
				} else {
					_vala_code_node_unref0 (sym);
					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 NULL;
				}
			}
			_tmp5_ = name;
			if (g_strcmp0 (_tmp5_, "global") == 0) {
				gboolean _tmp6_;
				_tmp6_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DOUBLE_COLON);
				_tmp4_ = _tmp6_;
			} else {
				_tmp4_ = FALSE;
			}
			if (_tmp4_) {
				gchar* _tmp7_ = NULL;
				gchar* _tmp8_;
				gchar* _tmp9_;
				ValaUnresolvedSymbol* _tmp10_;
				const gchar* _tmp11_;
				ValaSourceLocation _tmp12_;
				ValaSourceReference* _tmp13_;
				ValaSourceReference* _tmp14_;
				ValaUnresolvedSymbol* _tmp15_;
				ValaUnresolvedSymbol* _tmp16_;
				_tmp8_ = vala_parser_parse_identifier (self, &_inner_error_);
				_tmp7_ = _tmp8_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_g_free0 (name);
						_vala_code_node_unref0 (sym);
						return NULL;
					} else {
						_g_free0 (name);
						_vala_code_node_unref0 (sym);
						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 NULL;
					}
				}
				_tmp9_ = _tmp7_;
				_tmp7_ = NULL;
				_g_free0 (name);
				name = _tmp9_;
				_tmp10_ = sym;
				_tmp11_ = name;
				_tmp12_ = begin;
				_tmp13_ = vala_parser_get_src (self, &_tmp12_);
				_tmp14_ = _tmp13_;
				_tmp15_ = vala_unresolved_symbol_new (_tmp10_, _tmp11_, _tmp14_);
				_vala_code_node_unref0 (sym);
				sym = _tmp15_;
				_vala_source_reference_unref0 (_tmp14_);
				_tmp16_ = sym;
				vala_unresolved_symbol_set_qualified (_tmp16_, TRUE);
				_g_free0 (_tmp7_);
				_g_free0 (name);
				continue;
			}
			_tmp17_ = sym;
			_tmp18_ = name;
			_tmp19_ = begin;
			_tmp20_ = vala_parser_get_src (self, &_tmp19_);
			_tmp21_ = _tmp20_;
			_tmp22_ = vala_unresolved_symbol_new (_tmp17_, _tmp18_, _tmp21_);
			_vala_code_node_unref0 (sym);
			sym = _tmp22_;
			_vala_source_reference_unref0 (_tmp21_);
			_g_free0 (name);
		}
	}
	result = sym;
	return result;
}


static void vala_parser_skip_type (ValaParser* self, GError** error) {
	gboolean _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	vala_parser_accept (self, VALA_TOKEN_TYPE_DYNAMIC);
	vala_parser_accept (self, VALA_TOKEN_TYPE_OWNED);
	vala_parser_accept (self, VALA_TOKEN_TYPE_UNOWNED);
	vala_parser_accept (self, VALA_TOKEN_TYPE_WEAK);
	_tmp0_ = vala_parser_is_inner_array_type (self);
	if (_tmp0_) {
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_UNOWNED, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
		vala_parser_skip_type (self, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACKET, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
		vala_parser_prev (self);
	} else {
		gboolean _tmp1_;
		_tmp1_ = vala_parser_accept (self, VALA_TOKEN_TYPE_VOID);
		if (_tmp1_) {
		} else {
			vala_parser_skip_symbol_name (self, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return;
				} else {
					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;
				}
			}
			vala_parser_skip_type_argument_list (self, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return;
				} else {
					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;
				}
			}
		}
		while (TRUE) {
			gboolean _tmp2_;
			_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_STAR);
			if (!_tmp2_) {
				break;
			}
		}
		vala_parser_accept (self, VALA_TOKEN_TYPE_INTERR);
	}
	while (TRUE) {
		gboolean _tmp3_;
		_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_BRACKET);
		if (!_tmp3_) {
			break;
		}
		{
			gboolean _tmp4_ = FALSE;
			_tmp4_ = TRUE;
			while (TRUE) {
				gboolean _tmp6_ = FALSE;
				ValaTokenType _tmp7_;
				if (!_tmp4_) {
					gboolean _tmp5_;
					_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp5_) {
						break;
					}
				}
				_tmp4_ = FALSE;
				_tmp7_ = vala_parser_current (self);
				if (_tmp7_ != VALA_TOKEN_TYPE_COMMA) {
					ValaTokenType _tmp8_;
					_tmp8_ = vala_parser_current (self);
					_tmp6_ = _tmp8_ != VALA_TOKEN_TYPE_CLOSE_BRACKET;
				} else {
					_tmp6_ = FALSE;
				}
				if (_tmp6_) {
					ValaExpression* _tmp9_;
					ValaExpression* _tmp10_;
					_tmp9_ = vala_parser_parse_expression (self, &_inner_error_);
					_tmp10_ = _tmp9_;
					_vala_code_node_unref0 (_tmp10_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							return;
						} else {
							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;
						}
					}
				}
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACKET, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
		vala_parser_accept (self, VALA_TOKEN_TYPE_INTERR);
	}
	vala_parser_accept (self, VALA_TOKEN_TYPE_OP_NEG);
	vala_parser_accept (self, VALA_TOKEN_TYPE_HASH);
}


static gboolean vala_parser_is_inner_array_type (ValaParser* self) {
	gboolean result = FALSE;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	gboolean _tmp3_;
	gboolean _result_ = FALSE;
	ValaSourceLocation _tmp6_;
	g_return_val_if_fail (self != NULL, FALSE);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_PARENS);
	if (_tmp3_) {
		gboolean _tmp4_;
		_tmp4_ = vala_parser_accept (self, VALA_TOKEN_TYPE_UNOWNED);
		_tmp2_ = _tmp4_;
	} else {
		_tmp2_ = FALSE;
	}
	if (_tmp2_) {
		ValaTokenType _tmp5_;
		_tmp5_ = vala_parser_current (self);
		_tmp1_ = _tmp5_ != VALA_TOKEN_TYPE_CLOSE_PARENS;
	} else {
		_tmp1_ = FALSE;
	}
	_result_ = _tmp1_;
	_tmp6_ = begin;
	vala_parser_rollback (self, &_tmp6_);
	result = _result_;
	return result;
}


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


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


static ValaDataType* vala_parser_parse_type (ValaParser* self, gboolean owned_by_default, gboolean can_weak_ref, gboolean require_unowned, GError** error) {
	ValaDataType* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gboolean is_dynamic = FALSE;
	gboolean _tmp1_;
	gboolean value_owned = FALSE;
	gboolean _tmp2_;
	gboolean _tmp3_;
	ValaDataType* type = NULL;
	gboolean inner_type_owned = FALSE;
	gboolean _tmp15_;
	gboolean _tmp83_;
	gboolean _tmp86_;
	ValaDataType* _tmp93_;
	ValaDataType* _tmp94_;
	gboolean _tmp95_;
	ValaDataType* _tmp96_;
	gboolean _tmp97_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DYNAMIC);
	is_dynamic = _tmp1_;
	_tmp2_ = owned_by_default;
	value_owned = _tmp2_;
	_tmp3_ = require_unowned;
	if (_tmp3_) {
		vala_parser_expect (self, VALA_TOKEN_TYPE_UNOWNED, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
	} else {
		gboolean _tmp4_;
		_tmp4_ = owned_by_default;
		if (_tmp4_) {
			gboolean _tmp5_;
			_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_UNOWNED);
			if (_tmp5_) {
				value_owned = FALSE;
			} else {
				gboolean _tmp6_;
				_tmp6_ = vala_parser_accept (self, VALA_TOKEN_TYPE_WEAK);
				if (_tmp6_) {
					gboolean _tmp7_ = FALSE;
					gboolean _tmp8_;
					_tmp8_ = can_weak_ref;
					if (!_tmp8_) {
						ValaCodeContext* _tmp9_;
						gboolean _tmp10_;
						gboolean _tmp11_;
						_tmp9_ = self->priv->context;
						_tmp10_ = vala_code_context_get_deprecated (_tmp9_);
						_tmp11_ = _tmp10_;
						_tmp7_ = !_tmp11_;
					} else {
						_tmp7_ = FALSE;
					}
					if (_tmp7_) {
						ValaSourceReference* _tmp12_;
						ValaSourceReference* _tmp13_;
						_tmp12_ = vala_parser_get_last_src (self);
						_tmp13_ = _tmp12_;
						vala_report_warning (_tmp13_, "deprecated syntax, use `unowned` modifier");
						_vala_source_reference_unref0 (_tmp13_);
					}
					value_owned = FALSE;
				}
			}
		} else {
			gboolean _tmp14_;
			_tmp14_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OWNED);
			value_owned = _tmp14_;
		}
	}
	inner_type_owned = TRUE;
	_tmp15_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_PARENS);
	if (_tmp15_) {
		ValaDataType* _tmp16_ = NULL;
		ValaDataType* _tmp17_;
		ValaDataType* _tmp18_;
		_tmp17_ = vala_parser_parse_type (self, FALSE, FALSE, TRUE, &_inner_error_);
		_tmp16_ = _tmp17_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (type);
				return NULL;
			} else {
				_vala_code_node_unref0 (type);
				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 NULL;
			}
		}
		_tmp18_ = _tmp16_;
		_tmp16_ = NULL;
		_vala_code_node_unref0 (type);
		type = _tmp18_;
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (_tmp16_);
				_vala_code_node_unref0 (type);
				return NULL;
			} else {
				_vala_code_node_unref0 (_tmp16_);
				_vala_code_node_unref0 (type);
				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 NULL;
			}
		}
		inner_type_owned = FALSE;
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACKET, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (_tmp16_);
				_vala_code_node_unref0 (type);
				return NULL;
			} else {
				_vala_code_node_unref0 (_tmp16_);
				_vala_code_node_unref0 (type);
				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 NULL;
			}
		}
		vala_parser_prev (self);
		_vala_code_node_unref0 (_tmp16_);
	} else {
		gboolean _tmp19_ = FALSE;
		gboolean _tmp20_ = FALSE;
		gboolean _tmp21_;
		ValaDataType* _tmp56_;
		_tmp21_ = is_dynamic;
		if (!_tmp21_) {
			gboolean _tmp22_;
			gboolean _tmp23_;
			_tmp22_ = value_owned;
			_tmp23_ = owned_by_default;
			_tmp20_ = _tmp22_ == _tmp23_;
		} else {
			_tmp20_ = FALSE;
		}
		if (_tmp20_) {
			gboolean _tmp24_;
			_tmp24_ = vala_parser_accept (self, VALA_TOKEN_TYPE_VOID);
			_tmp19_ = _tmp24_;
		} else {
			_tmp19_ = FALSE;
		}
		if (_tmp19_) {
			ValaSourceLocation _tmp25_;
			ValaSourceReference* _tmp26_;
			ValaSourceReference* _tmp27_;
			ValaVoidType* _tmp28_;
			_tmp25_ = begin;
			_tmp26_ = vala_parser_get_src (self, &_tmp25_);
			_tmp27_ = _tmp26_;
			_tmp28_ = vala_void_type_new (_tmp27_);
			_vala_code_node_unref0 (type);
			type = (ValaDataType*) _tmp28_;
			_vala_source_reference_unref0 (_tmp27_);
		} else {
			ValaUnresolvedSymbol* sym = NULL;
			ValaUnresolvedSymbol* _tmp29_;
			ValaList* type_arg_list = NULL;
			ValaList* _tmp30_;
			ValaUnresolvedSymbol* _tmp31_;
			ValaSourceLocation _tmp32_;
			ValaSourceReference* _tmp33_;
			ValaSourceReference* _tmp34_;
			ValaUnresolvedType* _tmp35_;
			ValaList* _tmp36_;
			_tmp29_ = vala_parser_parse_symbol_name (self, &_inner_error_);
			sym = _tmp29_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (type);
					return NULL;
				} else {
					_vala_code_node_unref0 (type);
					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 NULL;
				}
			}
			_tmp30_ = vala_parser_parse_type_argument_list (self, FALSE, &_inner_error_);
			type_arg_list = _tmp30_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (sym);
					_vala_code_node_unref0 (type);
					return NULL;
				} else {
					_vala_code_node_unref0 (sym);
					_vala_code_node_unref0 (type);
					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 NULL;
				}
			}
			_tmp31_ = sym;
			_tmp32_ = begin;
			_tmp33_ = vala_parser_get_src (self, &_tmp32_);
			_tmp34_ = _tmp33_;
			_tmp35_ = vala_unresolved_type_new_from_symbol (_tmp31_, _tmp34_);
			_vala_code_node_unref0 (type);
			type = (ValaDataType*) _tmp35_;
			_vala_source_reference_unref0 (_tmp34_);
			_tmp36_ = type_arg_list;
			if (_tmp36_ != NULL) {
				{
					ValaList* _type_arg_list = NULL;
					ValaList* _tmp37_;
					ValaList* _tmp38_;
					gint _type_arg_size = 0;
					ValaList* _tmp39_;
					gint _tmp40_;
					gint _tmp41_;
					gint _type_arg_index = 0;
					_tmp37_ = type_arg_list;
					_tmp38_ = _vala_iterable_ref0 (_tmp37_);
					_type_arg_list = _tmp38_;
					_tmp39_ = _type_arg_list;
					_tmp40_ = vala_collection_get_size ((ValaCollection*) _tmp39_);
					_tmp41_ = _tmp40_;
					_type_arg_size = _tmp41_;
					_type_arg_index = -1;
					while (TRUE) {
						gint _tmp42_;
						gint _tmp43_;
						gint _tmp44_;
						ValaDataType* type_arg = NULL;
						ValaList* _tmp45_;
						gint _tmp46_;
						gpointer _tmp47_;
						ValaDataType* _tmp48_;
						ValaDataType* _tmp49_;
						_tmp42_ = _type_arg_index;
						_type_arg_index = _tmp42_ + 1;
						_tmp43_ = _type_arg_index;
						_tmp44_ = _type_arg_size;
						if (!(_tmp43_ < _tmp44_)) {
							break;
						}
						_tmp45_ = _type_arg_list;
						_tmp46_ = _type_arg_index;
						_tmp47_ = vala_list_get (_tmp45_, _tmp46_);
						type_arg = (ValaDataType*) _tmp47_;
						_tmp48_ = type;
						_tmp49_ = type_arg;
						vala_data_type_add_type_argument (_tmp48_, _tmp49_);
						_vala_code_node_unref0 (type_arg);
					}
					_vala_iterable_unref0 (_type_arg_list);
				}
			}
			_vala_iterable_unref0 (type_arg_list);
			_vala_code_node_unref0 (sym);
		}
		while (TRUE) {
			gboolean _tmp50_;
			ValaDataType* _tmp51_;
			ValaSourceLocation _tmp52_;
			ValaSourceReference* _tmp53_;
			ValaSourceReference* _tmp54_;
			ValaPointerType* _tmp55_;
			_tmp50_ = vala_parser_accept (self, VALA_TOKEN_TYPE_STAR);
			if (!_tmp50_) {
				break;
			}
			_tmp51_ = type;
			_tmp52_ = begin;
			_tmp53_ = vala_parser_get_src (self, &_tmp52_);
			_tmp54_ = _tmp53_;
			_tmp55_ = vala_pointer_type_new (_tmp51_, _tmp54_);
			_vala_code_node_unref0 (type);
			type = (ValaDataType*) _tmp55_;
			_vala_source_reference_unref0 (_tmp54_);
		}
		_tmp56_ = type;
		if (!G_TYPE_CHECK_INSTANCE_TYPE (_tmp56_, VALA_TYPE_POINTER_TYPE)) {
			ValaDataType* _tmp57_;
			gboolean _tmp58_;
			_tmp57_ = type;
			_tmp58_ = vala_parser_accept (self, VALA_TOKEN_TYPE_INTERR);
			vala_data_type_set_nullable (_tmp57_, _tmp58_);
		}
	}
	while (TRUE) {
		gboolean _tmp59_;
		gboolean invalid_array = FALSE;
		gint array_rank = 0;
		ValaDataType* _tmp68_;
		gboolean _tmp69_;
		ValaArrayType* array_type = NULL;
		ValaDataType* _tmp70_;
		gint _tmp71_;
		ValaSourceLocation _tmp72_;
		ValaSourceReference* _tmp73_;
		ValaSourceReference* _tmp74_;
		ValaArrayType* _tmp75_;
		ValaArrayType* _tmp76_;
		ValaArrayType* _tmp77_;
		gboolean _tmp78_;
		ValaArrayType* _tmp79_;
		gboolean _tmp80_;
		ValaArrayType* _tmp81_;
		ValaDataType* _tmp82_;
		_tmp59_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_BRACKET);
		if (!_tmp59_) {
			break;
		}
		invalid_array = FALSE;
		array_rank = 0;
		{
			gboolean _tmp60_ = FALSE;
			_tmp60_ = TRUE;
			while (TRUE) {
				gint _tmp62_;
				gboolean _tmp63_ = FALSE;
				ValaTokenType _tmp64_;
				if (!_tmp60_) {
					gboolean _tmp61_;
					_tmp61_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp61_) {
						break;
					}
				}
				_tmp60_ = FALSE;
				_tmp62_ = array_rank;
				array_rank = _tmp62_ + 1;
				_tmp64_ = vala_parser_current (self);
				if (_tmp64_ != VALA_TOKEN_TYPE_COMMA) {
					ValaTokenType _tmp65_;
					_tmp65_ = vala_parser_current (self);
					_tmp63_ = _tmp65_ != VALA_TOKEN_TYPE_CLOSE_BRACKET;
				} else {
					_tmp63_ = FALSE;
				}
				if (_tmp63_) {
					ValaExpression* _tmp66_;
					ValaExpression* _tmp67_;
					_tmp66_ = vala_parser_parse_expression (self, &_inner_error_);
					_tmp67_ = _tmp66_;
					_vala_code_node_unref0 (_tmp67_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (type);
							return NULL;
						} else {
							_vala_code_node_unref0 (type);
							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 NULL;
						}
					}
					invalid_array = TRUE;
				}
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACKET, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (type);
				return NULL;
			} else {
				_vala_code_node_unref0 (type);
				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 NULL;
			}
		}
		_tmp68_ = type;
		_tmp69_ = inner_type_owned;
		vala_data_type_set_value_owned (_tmp68_, _tmp69_);
		_tmp70_ = type;
		_tmp71_ = array_rank;
		_tmp72_ = begin;
		_tmp73_ = vala_parser_get_src (self, &_tmp72_);
		_tmp74_ = _tmp73_;
		_tmp75_ = vala_array_type_new (_tmp70_, _tmp71_, _tmp74_);
		_tmp76_ = _tmp75_;
		_vala_source_reference_unref0 (_tmp74_);
		array_type = _tmp76_;
		_tmp77_ = array_type;
		_tmp78_ = vala_parser_accept (self, VALA_TOKEN_TYPE_INTERR);
		vala_data_type_set_nullable ((ValaDataType*) _tmp77_, _tmp78_);
		_tmp79_ = array_type;
		_tmp80_ = invalid_array;
		vala_array_type_set_invalid_syntax (_tmp79_, _tmp80_);
		_tmp81_ = array_type;
		_tmp82_ = _vala_code_node_ref0 ((ValaDataType*) _tmp81_);
		_vala_code_node_unref0 (type);
		type = _tmp82_;
		_vala_code_node_unref0 (array_type);
	}
	_tmp83_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OP_NEG);
	if (_tmp83_) {
		ValaSourceReference* _tmp84_;
		ValaSourceReference* _tmp85_;
		_tmp84_ = vala_parser_get_last_src (self);
		_tmp85_ = _tmp84_;
		vala_report_warning (_tmp85_, "obsolete syntax, types are non-null by default");
		_vala_source_reference_unref0 (_tmp85_);
	}
	_tmp86_ = owned_by_default;
	if (!_tmp86_) {
		gboolean _tmp87_;
		_tmp87_ = vala_parser_accept (self, VALA_TOKEN_TYPE_HASH);
		if (_tmp87_) {
			ValaCodeContext* _tmp88_;
			gboolean _tmp89_;
			gboolean _tmp90_;
			_tmp88_ = self->priv->context;
			_tmp89_ = vala_code_context_get_deprecated (_tmp88_);
			_tmp90_ = _tmp89_;
			if (!_tmp90_) {
				ValaSourceReference* _tmp91_;
				ValaSourceReference* _tmp92_;
				_tmp91_ = vala_parser_get_last_src (self);
				_tmp92_ = _tmp91_;
				vala_report_warning (_tmp92_, "deprecated syntax, use `owned` modifier");
				_vala_source_reference_unref0 (_tmp92_);
			}
			value_owned = TRUE;
		}
	}
	_tmp93_ = type;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp93_, VALA_TYPE_POINTER_TYPE)) {
		value_owned = FALSE;
	}
	_tmp94_ = type;
	_tmp95_ = is_dynamic;
	vala_data_type_set_is_dynamic (_tmp94_, _tmp95_);
	_tmp96_ = type;
	_tmp97_ = value_owned;
	vala_data_type_set_value_owned (_tmp96_, _tmp97_);
	result = type;
	return result;
}


static ValaDataType* vala_parser_parse_inline_array_type (ValaParser* self, ValaDataType* type, GError** error) {
	ValaDataType* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gboolean _tmp1_ = FALSE;
	ValaDataType* _tmp2_;
	ValaDataType* _tmp23_;
	ValaDataType* _tmp24_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp2_ = type;
	if (_tmp2_ != NULL) {
		gboolean _tmp3_;
		_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_BRACKET);
		_tmp1_ = _tmp3_;
	} else {
		_tmp1_ = FALSE;
	}
	if (_tmp1_) {
		ValaExpression* array_length = NULL;
		ValaTokenType _tmp4_;
		ValaArrayType* array_type = NULL;
		ValaDataType* _tmp8_;
		ValaSourceLocation _tmp9_;
		ValaSourceReference* _tmp10_;
		ValaSourceReference* _tmp11_;
		ValaArrayType* _tmp12_;
		ValaArrayType* _tmp13_;
		ValaArrayType* _tmp14_;
		ValaExpression* _tmp15_;
		ValaArrayType* _tmp19_;
		ValaDataType* _tmp20_;
		gboolean _tmp21_;
		gboolean _tmp22_;
		array_length = NULL;
		_tmp4_ = vala_parser_current (self);
		if (_tmp4_ != VALA_TOKEN_TYPE_CLOSE_BRACKET) {
			ValaExpression* _tmp5_ = NULL;
			ValaExpression* _tmp6_;
			ValaExpression* _tmp7_;
			_tmp6_ = vala_parser_parse_expression (self, &_inner_error_);
			_tmp5_ = _tmp6_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (array_length);
					return NULL;
				} else {
					_vala_code_node_unref0 (array_length);
					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 NULL;
				}
			}
			_tmp7_ = _tmp5_;
			_tmp5_ = NULL;
			_vala_code_node_unref0 (array_length);
			array_length = _tmp7_;
			_vala_code_node_unref0 (_tmp5_);
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACKET, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (array_length);
				return NULL;
			} else {
				_vala_code_node_unref0 (array_length);
				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 NULL;
			}
		}
		_tmp8_ = type;
		_tmp9_ = begin;
		_tmp10_ = vala_parser_get_src (self, &_tmp9_);
		_tmp11_ = _tmp10_;
		_tmp12_ = vala_array_type_new (_tmp8_, 1, _tmp11_);
		_tmp13_ = _tmp12_;
		_vala_source_reference_unref0 (_tmp11_);
		array_type = _tmp13_;
		_tmp14_ = array_type;
		vala_array_type_set_inline_allocated (_tmp14_, TRUE);
		_tmp15_ = array_length;
		if (_tmp15_ != NULL) {
			ValaArrayType* _tmp16_;
			ValaArrayType* _tmp17_;
			ValaExpression* _tmp18_;
			_tmp16_ = array_type;
			vala_array_type_set_fixed_length (_tmp16_, TRUE);
			_tmp17_ = array_type;
			_tmp18_ = array_length;
			vala_array_type_set_length (_tmp17_, _tmp18_);
		}
		_tmp19_ = array_type;
		_tmp20_ = type;
		_tmp21_ = vala_data_type_get_value_owned (_tmp20_);
		_tmp22_ = _tmp21_;
		vala_data_type_set_value_owned ((ValaDataType*) _tmp19_, _tmp22_);
		result = (ValaDataType*) array_type;
		_vala_code_node_unref0 (array_length);
		return result;
	}
	_tmp23_ = type;
	_tmp24_ = _vala_code_node_ref0 (_tmp23_);
	result = _tmp24_;
	return result;
}


static ValaList* vala_parser_parse_argument_list (ValaParser* self, GError** error) {
	ValaList* result = NULL;
	ValaArrayList* list = NULL;
	GEqualFunc _tmp0_;
	ValaArrayList* _tmp1_;
	ValaTokenType _tmp2_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = g_direct_equal;
	_tmp1_ = vala_array_list_new (VALA_TYPE_EXPRESSION, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp0_);
	list = _tmp1_;
	_tmp2_ = vala_parser_current (self);
	if (_tmp2_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
		{
			gboolean _tmp3_ = FALSE;
			_tmp3_ = TRUE;
			while (TRUE) {
				ValaExpression* _tmp5_ = NULL;
				ValaExpression* _tmp6_;
				ValaArrayList* _tmp7_;
				if (!_tmp3_) {
					gboolean _tmp4_;
					_tmp4_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp4_) {
						break;
					}
				}
				_tmp3_ = FALSE;
				_tmp6_ = vala_parser_parse_argument (self, &_inner_error_);
				_tmp5_ = _tmp6_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (list);
						return NULL;
					} else {
						_vala_iterable_unref0 (list);
						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 NULL;
					}
				}
				_tmp7_ = list;
				vala_collection_add ((ValaCollection*) _tmp7_, _tmp5_);
				_vala_code_node_unref0 (_tmp5_);
			}
		}
	}
	result = (ValaList*) list;
	return result;
}


static ValaExpression* vala_parser_parse_argument (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gboolean _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_accept (self, VALA_TOKEN_TYPE_REF);
	if (_tmp1_) {
		ValaExpression* inner = NULL;
		ValaExpression* _tmp2_;
		ValaExpression* _tmp3_;
		ValaSourceLocation _tmp4_;
		ValaSourceReference* _tmp5_;
		ValaSourceReference* _tmp6_;
		ValaUnaryExpression* _tmp7_;
		ValaExpression* _tmp8_;
		_tmp2_ = vala_parser_parse_expression (self, &_inner_error_);
		inner = _tmp2_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
		_tmp3_ = inner;
		_tmp4_ = begin;
		_tmp5_ = vala_parser_get_src (self, &_tmp4_);
		_tmp6_ = _tmp5_;
		_tmp7_ = vala_unary_expression_new (VALA_UNARY_OPERATOR_REF, _tmp3_, _tmp6_);
		_tmp8_ = (ValaExpression*) _tmp7_;
		_vala_source_reference_unref0 (_tmp6_);
		result = _tmp8_;
		_vala_code_node_unref0 (inner);
		return result;
	} else {
		gboolean _tmp9_;
		_tmp9_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OUT);
		if (_tmp9_) {
			ValaExpression* inner = NULL;
			ValaExpression* _tmp10_;
			ValaExpression* _tmp11_;
			ValaSourceLocation _tmp12_;
			ValaSourceReference* _tmp13_;
			ValaSourceReference* _tmp14_;
			ValaUnaryExpression* _tmp15_;
			ValaExpression* _tmp16_;
			_tmp10_ = vala_parser_parse_expression (self, &_inner_error_);
			inner = _tmp10_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp11_ = inner;
			_tmp12_ = begin;
			_tmp13_ = vala_parser_get_src (self, &_tmp12_);
			_tmp14_ = _tmp13_;
			_tmp15_ = vala_unary_expression_new (VALA_UNARY_OPERATOR_OUT, _tmp11_, _tmp14_);
			_tmp16_ = (ValaExpression*) _tmp15_;
			_vala_source_reference_unref0 (_tmp14_);
			result = _tmp16_;
			_vala_code_node_unref0 (inner);
			return result;
		} else {
			ValaExpression* expr = NULL;
			ValaExpression* _tmp17_;
			ValaMemberAccess* ma = NULL;
			ValaExpression* _tmp18_;
			ValaMemberAccess* _tmp19_;
			gboolean _tmp20_ = FALSE;
			gboolean _tmp21_ = FALSE;
			ValaMemberAccess* _tmp22_;
			_tmp17_ = vala_parser_parse_expression (self, &_inner_error_);
			expr = _tmp17_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp18_ = expr;
			_tmp19_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp18_, VALA_TYPE_MEMBER_ACCESS) ? ((ValaMemberAccess*) _tmp18_) : NULL);
			ma = _tmp19_;
			_tmp22_ = ma;
			if (_tmp22_ != NULL) {
				ValaMemberAccess* _tmp23_;
				ValaExpression* _tmp24_;
				ValaExpression* _tmp25_;
				_tmp23_ = ma;
				_tmp24_ = vala_member_access_get_inner (_tmp23_);
				_tmp25_ = _tmp24_;
				_tmp21_ = _tmp25_ == NULL;
			} else {
				_tmp21_ = FALSE;
			}
			if (_tmp21_) {
				gboolean _tmp26_;
				_tmp26_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COLON);
				_tmp20_ = _tmp26_;
			} else {
				_tmp20_ = FALSE;
			}
			if (_tmp20_) {
				ValaExpression* _tmp27_ = NULL;
				ValaExpression* _tmp28_;
				ValaExpression* _tmp29_;
				ValaMemberAccess* _tmp30_;
				const gchar* _tmp31_;
				const gchar* _tmp32_;
				ValaExpression* _tmp33_;
				ValaSourceLocation _tmp34_;
				ValaSourceReference* _tmp35_;
				ValaSourceReference* _tmp36_;
				ValaNamedArgument* _tmp37_;
				ValaExpression* _tmp38_;
				_tmp28_ = vala_parser_parse_expression (self, &_inner_error_);
				_tmp27_ = _tmp28_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (ma);
						_vala_code_node_unref0 (expr);
						return NULL;
					} else {
						_vala_code_node_unref0 (ma);
						_vala_code_node_unref0 (expr);
						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 NULL;
					}
				}
				_tmp29_ = _tmp27_;
				_tmp27_ = NULL;
				_vala_code_node_unref0 (expr);
				expr = _tmp29_;
				_tmp30_ = ma;
				_tmp31_ = vala_member_access_get_member_name (_tmp30_);
				_tmp32_ = _tmp31_;
				_tmp33_ = expr;
				_tmp34_ = begin;
				_tmp35_ = vala_parser_get_src (self, &_tmp34_);
				_tmp36_ = _tmp35_;
				_tmp37_ = vala_named_argument_new (_tmp32_, _tmp33_, _tmp36_);
				_tmp38_ = (ValaExpression*) _tmp37_;
				_vala_source_reference_unref0 (_tmp36_);
				result = _tmp38_;
				_vala_code_node_unref0 (_tmp27_);
				_vala_code_node_unref0 (ma);
				_vala_code_node_unref0 (expr);
				return result;
			} else {
				result = expr;
				_vala_code_node_unref0 (ma);
				return result;
			}
			_vala_code_node_unref0 (ma);
			_vala_code_node_unref0 (expr);
		}
	}
}


static ValaExpression* vala_parser_parse_primary_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* expr = NULL;
	ValaTokenType _tmp1_;
	gboolean found = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_current (self);
	switch (_tmp1_) {
		case VALA_TOKEN_TYPE_TRUE:
		case VALA_TOKEN_TYPE_FALSE:
		case VALA_TOKEN_TYPE_INTEGER_LITERAL:
		case VALA_TOKEN_TYPE_REAL_LITERAL:
		case VALA_TOKEN_TYPE_CHARACTER_LITERAL:
		case VALA_TOKEN_TYPE_STRING_LITERAL:
		case VALA_TOKEN_TYPE_REGEX_LITERAL:
		case VALA_TOKEN_TYPE_TEMPLATE_STRING_LITERAL:
		case VALA_TOKEN_TYPE_VERBATIM_STRING_LITERAL:
		case VALA_TOKEN_TYPE_NULL:
		{
			ValaExpression* _tmp2_ = NULL;
			ValaExpression* _tmp3_;
			ValaExpression* _tmp4_;
			_tmp3_ = vala_parser_parse_literal (self, &_inner_error_);
			_tmp2_ = _tmp3_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp4_ = _tmp2_;
			_tmp2_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp4_;
			_vala_code_node_unref0 (_tmp2_);
			break;
		}
		case VALA_TOKEN_TYPE_OPEN_BRACE:
		{
			ValaInitializerList* _tmp5_ = NULL;
			ValaInitializerList* _tmp6_;
			ValaInitializerList* _tmp7_;
			_tmp6_ = vala_parser_parse_initializer (self, &_inner_error_);
			_tmp5_ = _tmp6_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp7_ = _tmp5_;
			_tmp5_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = (ValaExpression*) _tmp7_;
			_vala_code_node_unref0 (_tmp5_);
			break;
		}
		case VALA_TOKEN_TYPE_OPEN_BRACKET:
		{
			ValaExpression* _tmp8_ = NULL;
			ValaExpression* _tmp9_;
			ValaExpression* _tmp10_;
			_tmp9_ = vala_parser_parse_simple_name (self, &_inner_error_);
			_tmp8_ = _tmp9_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp10_ = _tmp8_;
			_tmp8_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp10_;
			_vala_code_node_unref0 (_tmp8_);
			break;
		}
		case VALA_TOKEN_TYPE_OPEN_PARENS:
		{
			ValaExpression* _tmp11_ = NULL;
			ValaExpression* _tmp12_;
			ValaExpression* _tmp13_;
			_tmp12_ = vala_parser_parse_tuple (self, &_inner_error_);
			_tmp11_ = _tmp12_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp13_ = _tmp11_;
			_tmp11_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp13_;
			_vala_code_node_unref0 (_tmp11_);
			break;
		}
		case VALA_TOKEN_TYPE_OPEN_TEMPLATE:
		{
			ValaExpression* _tmp14_ = NULL;
			ValaExpression* _tmp15_;
			ValaExpression* _tmp16_;
			_tmp15_ = vala_parser_parse_template (self, &_inner_error_);
			_tmp14_ = _tmp15_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp16_ = _tmp14_;
			_tmp14_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp16_;
			_vala_code_node_unref0 (_tmp14_);
			break;
		}
		case VALA_TOKEN_TYPE_OPEN_REGEX_LITERAL:
		{
			ValaExpression* _tmp17_ = NULL;
			ValaExpression* _tmp18_;
			ValaExpression* _tmp19_;
			_tmp18_ = vala_parser_parse_regex_literal (self, &_inner_error_);
			_tmp17_ = _tmp18_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp19_ = _tmp17_;
			_tmp17_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp19_;
			_vala_code_node_unref0 (_tmp17_);
			break;
		}
		case VALA_TOKEN_TYPE_THIS:
		{
			ValaExpression* _tmp20_ = NULL;
			ValaExpression* _tmp21_;
			ValaExpression* _tmp22_;
			_tmp21_ = vala_parser_parse_this_access (self, &_inner_error_);
			_tmp20_ = _tmp21_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp22_ = _tmp20_;
			_tmp20_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp22_;
			_vala_code_node_unref0 (_tmp20_);
			break;
		}
		case VALA_TOKEN_TYPE_BASE:
		{
			ValaExpression* _tmp23_ = NULL;
			ValaExpression* _tmp24_;
			ValaExpression* _tmp25_;
			_tmp24_ = vala_parser_parse_base_access (self, &_inner_error_);
			_tmp23_ = _tmp24_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp25_ = _tmp23_;
			_tmp23_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp25_;
			_vala_code_node_unref0 (_tmp23_);
			break;
		}
		case VALA_TOKEN_TYPE_NEW:
		{
			ValaExpression* _tmp26_ = NULL;
			ValaExpression* _tmp27_;
			ValaExpression* _tmp28_;
			_tmp27_ = vala_parser_parse_object_or_array_creation_expression (self, &_inner_error_);
			_tmp26_ = _tmp27_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp28_ = _tmp26_;
			_tmp26_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp28_;
			_vala_code_node_unref0 (_tmp26_);
			break;
		}
		case VALA_TOKEN_TYPE_YIELD:
		{
			ValaExpression* _tmp29_ = NULL;
			ValaExpression* _tmp30_;
			ValaExpression* _tmp31_;
			_tmp30_ = vala_parser_parse_yield_expression (self, &_inner_error_);
			_tmp29_ = _tmp30_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp31_ = _tmp29_;
			_tmp29_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp31_;
			_vala_code_node_unref0 (_tmp29_);
			break;
		}
		case VALA_TOKEN_TYPE_SIZEOF:
		{
			ValaExpression* _tmp32_ = NULL;
			ValaExpression* _tmp33_;
			ValaExpression* _tmp34_;
			_tmp33_ = vala_parser_parse_sizeof_expression (self, &_inner_error_);
			_tmp32_ = _tmp33_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp34_ = _tmp32_;
			_tmp32_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp34_;
			_vala_code_node_unref0 (_tmp32_);
			break;
		}
		case VALA_TOKEN_TYPE_TYPEOF:
		{
			ValaExpression* _tmp35_ = NULL;
			ValaExpression* _tmp36_;
			ValaExpression* _tmp37_;
			_tmp36_ = vala_parser_parse_typeof_expression (self, &_inner_error_);
			_tmp35_ = _tmp36_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp37_ = _tmp35_;
			_tmp35_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp37_;
			_vala_code_node_unref0 (_tmp35_);
			break;
		}
		default:
		{
			ValaExpression* _tmp38_ = NULL;
			ValaExpression* _tmp39_;
			ValaExpression* _tmp40_;
			_tmp39_ = vala_parser_parse_simple_name (self, &_inner_error_);
			_tmp38_ = _tmp39_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp40_ = _tmp38_;
			_tmp38_ = NULL;
			_vala_code_node_unref0 (expr);
			expr = _tmp40_;
			_vala_code_node_unref0 (_tmp38_);
			break;
		}
	}
	found = TRUE;
	while (TRUE) {
		gboolean _tmp41_;
		ValaTokenType _tmp42_;
		_tmp41_ = found;
		if (!_tmp41_) {
			break;
		}
		_tmp42_ = vala_parser_current (self);
		switch (_tmp42_) {
			case VALA_TOKEN_TYPE_DOT:
			{
				ValaExpression* _tmp43_ = NULL;
				ValaSourceLocation _tmp44_;
				ValaExpression* _tmp45_;
				ValaExpression* _tmp46_;
				ValaExpression* _tmp47_;
				_tmp44_ = begin;
				_tmp45_ = expr;
				_tmp46_ = vala_parser_parse_member_access (self, &_tmp44_, _tmp45_, &_inner_error_);
				_tmp43_ = _tmp46_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (expr);
						return NULL;
					} else {
						_vala_code_node_unref0 (expr);
						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 NULL;
					}
				}
				_tmp47_ = _tmp43_;
				_tmp43_ = NULL;
				_vala_code_node_unref0 (expr);
				expr = _tmp47_;
				_vala_code_node_unref0 (_tmp43_);
				break;
			}
			case VALA_TOKEN_TYPE_OP_PTR:
			{
				ValaExpression* _tmp48_ = NULL;
				ValaSourceLocation _tmp49_;
				ValaExpression* _tmp50_;
				ValaExpression* _tmp51_;
				ValaExpression* _tmp52_;
				_tmp49_ = begin;
				_tmp50_ = expr;
				_tmp51_ = vala_parser_parse_pointer_member_access (self, &_tmp49_, _tmp50_, &_inner_error_);
				_tmp48_ = _tmp51_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (expr);
						return NULL;
					} else {
						_vala_code_node_unref0 (expr);
						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 NULL;
					}
				}
				_tmp52_ = _tmp48_;
				_tmp48_ = NULL;
				_vala_code_node_unref0 (expr);
				expr = _tmp52_;
				_vala_code_node_unref0 (_tmp48_);
				break;
			}
			case VALA_TOKEN_TYPE_OPEN_PARENS:
			{
				ValaExpression* _tmp53_ = NULL;
				ValaSourceLocation _tmp54_;
				ValaExpression* _tmp55_;
				ValaExpression* _tmp56_;
				ValaExpression* _tmp57_;
				_tmp54_ = begin;
				_tmp55_ = expr;
				_tmp56_ = vala_parser_parse_method_call (self, &_tmp54_, _tmp55_, &_inner_error_);
				_tmp53_ = _tmp56_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (expr);
						return NULL;
					} else {
						_vala_code_node_unref0 (expr);
						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 NULL;
					}
				}
				_tmp57_ = _tmp53_;
				_tmp53_ = NULL;
				_vala_code_node_unref0 (expr);
				expr = _tmp57_;
				_vala_code_node_unref0 (_tmp53_);
				break;
			}
			case VALA_TOKEN_TYPE_OPEN_BRACKET:
			{
				ValaExpression* _tmp58_ = NULL;
				ValaSourceLocation _tmp59_;
				ValaExpression* _tmp60_;
				ValaExpression* _tmp61_;
				ValaExpression* _tmp62_;
				_tmp59_ = begin;
				_tmp60_ = expr;
				_tmp61_ = vala_parser_parse_element_access (self, &_tmp59_, _tmp60_, &_inner_error_);
				_tmp58_ = _tmp61_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (expr);
						return NULL;
					} else {
						_vala_code_node_unref0 (expr);
						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 NULL;
					}
				}
				_tmp62_ = _tmp58_;
				_tmp58_ = NULL;
				_vala_code_node_unref0 (expr);
				expr = _tmp62_;
				_vala_code_node_unref0 (_tmp58_);
				break;
			}
			case VALA_TOKEN_TYPE_OP_INC:
			{
				ValaExpression* _tmp63_ = NULL;
				ValaSourceLocation _tmp64_;
				ValaExpression* _tmp65_;
				ValaExpression* _tmp66_;
				ValaExpression* _tmp67_;
				_tmp64_ = begin;
				_tmp65_ = expr;
				_tmp66_ = vala_parser_parse_post_increment_expression (self, &_tmp64_, _tmp65_, &_inner_error_);
				_tmp63_ = _tmp66_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (expr);
						return NULL;
					} else {
						_vala_code_node_unref0 (expr);
						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 NULL;
					}
				}
				_tmp67_ = _tmp63_;
				_tmp63_ = NULL;
				_vala_code_node_unref0 (expr);
				expr = _tmp67_;
				_vala_code_node_unref0 (_tmp63_);
				break;
			}
			case VALA_TOKEN_TYPE_OP_DEC:
			{
				ValaExpression* _tmp68_ = NULL;
				ValaSourceLocation _tmp69_;
				ValaExpression* _tmp70_;
				ValaExpression* _tmp71_;
				ValaExpression* _tmp72_;
				_tmp69_ = begin;
				_tmp70_ = expr;
				_tmp71_ = vala_parser_parse_post_decrement_expression (self, &_tmp69_, _tmp70_, &_inner_error_);
				_tmp68_ = _tmp71_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (expr);
						return NULL;
					} else {
						_vala_code_node_unref0 (expr);
						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 NULL;
					}
				}
				_tmp72_ = _tmp68_;
				_tmp68_ = NULL;
				_vala_code_node_unref0 (expr);
				expr = _tmp72_;
				_vala_code_node_unref0 (_tmp68_);
				break;
			}
			default:
			{
				found = FALSE;
				break;
			}
		}
	}
	result = expr;
	return result;
}


static ValaExpression* vala_parser_parse_simple_name (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gchar* id = NULL;
	gchar* _tmp1_;
	gboolean qualified = FALSE;
	gboolean _tmp2_ = FALSE;
	const gchar* _tmp3_;
	ValaList* type_arg_list = NULL;
	ValaList* _tmp8_;
	ValaMemberAccess* expr = NULL;
	const gchar* _tmp9_;
	ValaSourceLocation _tmp10_;
	ValaSourceReference* _tmp11_;
	ValaSourceReference* _tmp12_;
	ValaMemberAccess* _tmp13_;
	ValaMemberAccess* _tmp14_;
	ValaMemberAccess* _tmp15_;
	gboolean _tmp16_;
	ValaList* _tmp17_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	qualified = FALSE;
	_tmp3_ = id;
	if (g_strcmp0 (_tmp3_, "global") == 0) {
		gboolean _tmp4_;
		_tmp4_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DOUBLE_COLON);
		_tmp2_ = _tmp4_;
	} else {
		_tmp2_ = FALSE;
	}
	if (_tmp2_) {
		gchar* _tmp5_ = NULL;
		gchar* _tmp6_;
		gchar* _tmp7_;
		_tmp6_ = vala_parser_parse_identifier (self, &_inner_error_);
		_tmp5_ = _tmp6_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_g_free0 (id);
				return NULL;
			} else {
				_g_free0 (id);
				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 NULL;
			}
		}
		_tmp7_ = _tmp5_;
		_tmp5_ = NULL;
		_g_free0 (id);
		id = _tmp7_;
		qualified = TRUE;
		_g_free0 (_tmp5_);
	}
	_tmp8_ = vala_parser_parse_type_argument_list (self, TRUE, &_inner_error_);
	type_arg_list = _tmp8_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			return NULL;
		} else {
			_g_free0 (id);
			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 NULL;
		}
	}
	_tmp9_ = id;
	_tmp10_ = begin;
	_tmp11_ = vala_parser_get_src (self, &_tmp10_);
	_tmp12_ = _tmp11_;
	_tmp13_ = vala_member_access_new (NULL, _tmp9_, _tmp12_);
	_tmp14_ = _tmp13_;
	_vala_source_reference_unref0 (_tmp12_);
	expr = _tmp14_;
	_tmp15_ = expr;
	_tmp16_ = qualified;
	vala_member_access_set_qualified (_tmp15_, _tmp16_);
	_tmp17_ = type_arg_list;
	if (_tmp17_ != NULL) {
		{
			ValaList* _type_arg_list = NULL;
			ValaList* _tmp18_;
			ValaList* _tmp19_;
			gint _type_arg_size = 0;
			ValaList* _tmp20_;
			gint _tmp21_;
			gint _tmp22_;
			gint _type_arg_index = 0;
			_tmp18_ = type_arg_list;
			_tmp19_ = _vala_iterable_ref0 (_tmp18_);
			_type_arg_list = _tmp19_;
			_tmp20_ = _type_arg_list;
			_tmp21_ = vala_collection_get_size ((ValaCollection*) _tmp20_);
			_tmp22_ = _tmp21_;
			_type_arg_size = _tmp22_;
			_type_arg_index = -1;
			while (TRUE) {
				gint _tmp23_;
				gint _tmp24_;
				gint _tmp25_;
				ValaDataType* type_arg = NULL;
				ValaList* _tmp26_;
				gint _tmp27_;
				gpointer _tmp28_;
				ValaMemberAccess* _tmp29_;
				ValaDataType* _tmp30_;
				_tmp23_ = _type_arg_index;
				_type_arg_index = _tmp23_ + 1;
				_tmp24_ = _type_arg_index;
				_tmp25_ = _type_arg_size;
				if (!(_tmp24_ < _tmp25_)) {
					break;
				}
				_tmp26_ = _type_arg_list;
				_tmp27_ = _type_arg_index;
				_tmp28_ = vala_list_get (_tmp26_, _tmp27_);
				type_arg = (ValaDataType*) _tmp28_;
				_tmp29_ = expr;
				_tmp30_ = type_arg;
				vala_member_access_add_type_argument (_tmp29_, _tmp30_);
				_vala_code_node_unref0 (type_arg);
			}
			_vala_iterable_unref0 (_type_arg_list);
		}
	}
	result = (ValaExpression*) expr;
	_vala_iterable_unref0 (type_arg_list);
	_g_free0 (id);
	return result;
}


static ValaExpression* vala_parser_parse_tuple (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaArrayList* expr_list = NULL;
	GEqualFunc _tmp1_;
	ValaArrayList* _tmp2_;
	ValaTokenType _tmp3_;
	ValaArrayList* _tmp9_;
	gint _tmp10_;
	gint _tmp11_;
	ValaArrayList* _tmp30_;
	gpointer _tmp31_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = g_direct_equal;
	_tmp2_ = vala_array_list_new (VALA_TYPE_EXPRESSION, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp1_);
	expr_list = _tmp2_;
	_tmp3_ = vala_parser_current (self);
	if (_tmp3_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
		{
			gboolean _tmp4_ = FALSE;
			_tmp4_ = TRUE;
			while (TRUE) {
				ValaExpression* _tmp6_ = NULL;
				ValaExpression* _tmp7_;
				ValaArrayList* _tmp8_;
				if (!_tmp4_) {
					gboolean _tmp5_;
					_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp5_) {
						break;
					}
				}
				_tmp4_ = FALSE;
				_tmp7_ = vala_parser_parse_expression (self, &_inner_error_);
				_tmp6_ = _tmp7_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (expr_list);
						return NULL;
					} else {
						_vala_iterable_unref0 (expr_list);
						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 NULL;
					}
				}
				_tmp8_ = expr_list;
				vala_collection_add ((ValaCollection*) _tmp8_, _tmp6_);
				_vala_code_node_unref0 (_tmp6_);
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (expr_list);
			return NULL;
		} else {
			_vala_iterable_unref0 (expr_list);
			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 NULL;
		}
	}
	_tmp9_ = expr_list;
	_tmp10_ = vala_collection_get_size ((ValaCollection*) _tmp9_);
	_tmp11_ = _tmp10_;
	if (_tmp11_ != 1) {
		ValaTuple* tuple = NULL;
		ValaSourceLocation _tmp12_;
		ValaSourceReference* _tmp13_;
		ValaSourceReference* _tmp14_;
		ValaTuple* _tmp15_;
		ValaTuple* _tmp16_;
		_tmp12_ = begin;
		_tmp13_ = vala_parser_get_src (self, &_tmp12_);
		_tmp14_ = _tmp13_;
		_tmp15_ = vala_tuple_new (_tmp14_);
		_tmp16_ = _tmp15_;
		_vala_source_reference_unref0 (_tmp14_);
		tuple = _tmp16_;
		{
			ValaArrayList* _expr_list = NULL;
			ValaArrayList* _tmp17_;
			ValaArrayList* _tmp18_;
			gint _expr_size = 0;
			ValaArrayList* _tmp19_;
			gint _tmp20_;
			gint _tmp21_;
			gint _expr_index = 0;
			_tmp17_ = expr_list;
			_tmp18_ = _vala_iterable_ref0 (_tmp17_);
			_expr_list = _tmp18_;
			_tmp19_ = _expr_list;
			_tmp20_ = vala_collection_get_size ((ValaCollection*) _tmp19_);
			_tmp21_ = _tmp20_;
			_expr_size = _tmp21_;
			_expr_index = -1;
			while (TRUE) {
				gint _tmp22_;
				gint _tmp23_;
				gint _tmp24_;
				ValaExpression* expr = NULL;
				ValaArrayList* _tmp25_;
				gint _tmp26_;
				gpointer _tmp27_;
				ValaTuple* _tmp28_;
				ValaExpression* _tmp29_;
				_tmp22_ = _expr_index;
				_expr_index = _tmp22_ + 1;
				_tmp23_ = _expr_index;
				_tmp24_ = _expr_size;
				if (!(_tmp23_ < _tmp24_)) {
					break;
				}
				_tmp25_ = _expr_list;
				_tmp26_ = _expr_index;
				_tmp27_ = vala_list_get ((ValaList*) _tmp25_, _tmp26_);
				expr = (ValaExpression*) _tmp27_;
				_tmp28_ = tuple;
				_tmp29_ = expr;
				vala_tuple_add_expression (_tmp28_, _tmp29_);
				_vala_code_node_unref0 (expr);
			}
			_vala_iterable_unref0 (_expr_list);
		}
		result = (ValaExpression*) tuple;
		_vala_iterable_unref0 (expr_list);
		return result;
	}
	_tmp30_ = expr_list;
	_tmp31_ = vala_list_get ((ValaList*) _tmp30_, 0);
	result = (ValaExpression*) _tmp31_;
	_vala_iterable_unref0 (expr_list);
	return result;
}


static ValaExpression* vala_parser_parse_template (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaTemplate* template = NULL;
	ValaTemplate* _tmp1_;
	ValaTemplate* _tmp6_;
	ValaSourceLocation _tmp7_;
	ValaSourceReference* _tmp8_;
	ValaSourceReference* _tmp9_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_template_new (NULL);
	template = _tmp1_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_TEMPLATE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (template);
			return NULL;
		} else {
			_vala_code_node_unref0 (template);
			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 NULL;
		}
	}
	while (TRUE) {
		ValaTokenType _tmp2_;
		ValaExpression* _tmp3_ = NULL;
		ValaExpression* _tmp4_;
		ValaTemplate* _tmp5_;
		_tmp2_ = vala_parser_current (self);
		if (!(_tmp2_ != VALA_TOKEN_TYPE_CLOSE_TEMPLATE)) {
			break;
		}
		_tmp4_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp3_ = _tmp4_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (template);
				return NULL;
			} else {
				_vala_code_node_unref0 (template);
				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 NULL;
			}
		}
		_tmp5_ = template;
		vala_template_add_expression (_tmp5_, _tmp3_);
		vala_parser_expect (self, VALA_TOKEN_TYPE_COMMA, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (_tmp3_);
				_vala_code_node_unref0 (template);
				return NULL;
			} else {
				_vala_code_node_unref0 (_tmp3_);
				_vala_code_node_unref0 (template);
				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 NULL;
			}
		}
		_vala_code_node_unref0 (_tmp3_);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_TEMPLATE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (template);
			return NULL;
		} else {
			_vala_code_node_unref0 (template);
			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 NULL;
		}
	}
	_tmp6_ = template;
	_tmp7_ = begin;
	_tmp8_ = vala_parser_get_src (self, &_tmp7_);
	_tmp9_ = _tmp8_;
	vala_code_node_set_source_reference ((ValaCodeNode*) _tmp6_, _tmp9_);
	_vala_source_reference_unref0 (_tmp9_);
	result = (ValaExpression*) template;
	return result;
}


static ValaExpression* vala_parser_parse_regex_literal (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaExpression* expr = NULL;
	ValaExpression* _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_REGEX_LITERAL, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = vala_parser_parse_literal (self, &_inner_error_);
	expr = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	result = expr;
	return result;
}


static ValaExpression* vala_parser_parse_member_access (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error) {
	ValaExpression* result = NULL;
	gchar* id = NULL;
	gchar* _tmp0_;
	ValaList* type_arg_list = NULL;
	ValaList* _tmp1_;
	ValaMemberAccess* expr = NULL;
	ValaExpression* _tmp2_;
	const gchar* _tmp3_;
	ValaSourceLocation _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaMemberAccess* _tmp7_;
	ValaMemberAccess* _tmp8_;
	ValaList* _tmp9_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (begin != NULL, NULL);
	g_return_val_if_fail (inner != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_DOT, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_type_argument_list (self, TRUE, &_inner_error_);
	type_arg_list = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			return NULL;
		} else {
			_g_free0 (id);
			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 NULL;
		}
	}
	_tmp2_ = inner;
	_tmp3_ = id;
	_tmp4_ = *begin;
	_tmp5_ = vala_parser_get_src (self, &_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = vala_member_access_new (_tmp2_, _tmp3_, _tmp6_);
	_tmp8_ = _tmp7_;
	_vala_source_reference_unref0 (_tmp6_);
	expr = _tmp8_;
	_tmp9_ = type_arg_list;
	if (_tmp9_ != NULL) {
		{
			ValaList* _type_arg_list = NULL;
			ValaList* _tmp10_;
			ValaList* _tmp11_;
			gint _type_arg_size = 0;
			ValaList* _tmp12_;
			gint _tmp13_;
			gint _tmp14_;
			gint _type_arg_index = 0;
			_tmp10_ = type_arg_list;
			_tmp11_ = _vala_iterable_ref0 (_tmp10_);
			_type_arg_list = _tmp11_;
			_tmp12_ = _type_arg_list;
			_tmp13_ = vala_collection_get_size ((ValaCollection*) _tmp12_);
			_tmp14_ = _tmp13_;
			_type_arg_size = _tmp14_;
			_type_arg_index = -1;
			while (TRUE) {
				gint _tmp15_;
				gint _tmp16_;
				gint _tmp17_;
				ValaDataType* type_arg = NULL;
				ValaList* _tmp18_;
				gint _tmp19_;
				gpointer _tmp20_;
				ValaMemberAccess* _tmp21_;
				ValaDataType* _tmp22_;
				_tmp15_ = _type_arg_index;
				_type_arg_index = _tmp15_ + 1;
				_tmp16_ = _type_arg_index;
				_tmp17_ = _type_arg_size;
				if (!(_tmp16_ < _tmp17_)) {
					break;
				}
				_tmp18_ = _type_arg_list;
				_tmp19_ = _type_arg_index;
				_tmp20_ = vala_list_get (_tmp18_, _tmp19_);
				type_arg = (ValaDataType*) _tmp20_;
				_tmp21_ = expr;
				_tmp22_ = type_arg;
				vala_member_access_add_type_argument (_tmp21_, _tmp22_);
				_vala_code_node_unref0 (type_arg);
			}
			_vala_iterable_unref0 (_type_arg_list);
		}
	}
	result = (ValaExpression*) expr;
	_vala_iterable_unref0 (type_arg_list);
	_g_free0 (id);
	return result;
}


static ValaExpression* vala_parser_parse_pointer_member_access (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error) {
	ValaExpression* result = NULL;
	gchar* id = NULL;
	gchar* _tmp0_;
	ValaList* type_arg_list = NULL;
	ValaList* _tmp1_;
	ValaMemberAccess* expr = NULL;
	ValaExpression* _tmp2_;
	const gchar* _tmp3_;
	ValaSourceLocation _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaMemberAccess* _tmp7_;
	ValaMemberAccess* _tmp8_;
	ValaList* _tmp9_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (begin != NULL, NULL);
	g_return_val_if_fail (inner != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OP_PTR, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_type_argument_list (self, TRUE, &_inner_error_);
	type_arg_list = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			return NULL;
		} else {
			_g_free0 (id);
			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 NULL;
		}
	}
	_tmp2_ = inner;
	_tmp3_ = id;
	_tmp4_ = *begin;
	_tmp5_ = vala_parser_get_src (self, &_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = vala_member_access_new_pointer (_tmp2_, _tmp3_, _tmp6_);
	_tmp8_ = _tmp7_;
	_vala_source_reference_unref0 (_tmp6_);
	expr = _tmp8_;
	_tmp9_ = type_arg_list;
	if (_tmp9_ != NULL) {
		{
			ValaList* _type_arg_list = NULL;
			ValaList* _tmp10_;
			ValaList* _tmp11_;
			gint _type_arg_size = 0;
			ValaList* _tmp12_;
			gint _tmp13_;
			gint _tmp14_;
			gint _type_arg_index = 0;
			_tmp10_ = type_arg_list;
			_tmp11_ = _vala_iterable_ref0 (_tmp10_);
			_type_arg_list = _tmp11_;
			_tmp12_ = _type_arg_list;
			_tmp13_ = vala_collection_get_size ((ValaCollection*) _tmp12_);
			_tmp14_ = _tmp13_;
			_type_arg_size = _tmp14_;
			_type_arg_index = -1;
			while (TRUE) {
				gint _tmp15_;
				gint _tmp16_;
				gint _tmp17_;
				ValaDataType* type_arg = NULL;
				ValaList* _tmp18_;
				gint _tmp19_;
				gpointer _tmp20_;
				ValaMemberAccess* _tmp21_;
				ValaDataType* _tmp22_;
				_tmp15_ = _type_arg_index;
				_type_arg_index = _tmp15_ + 1;
				_tmp16_ = _type_arg_index;
				_tmp17_ = _type_arg_size;
				if (!(_tmp16_ < _tmp17_)) {
					break;
				}
				_tmp18_ = _type_arg_list;
				_tmp19_ = _type_arg_index;
				_tmp20_ = vala_list_get (_tmp18_, _tmp19_);
				type_arg = (ValaDataType*) _tmp20_;
				_tmp21_ = expr;
				_tmp22_ = type_arg;
				vala_member_access_add_type_argument (_tmp21_, _tmp22_);
				_vala_code_node_unref0 (type_arg);
			}
			_vala_iterable_unref0 (_type_arg_list);
		}
	}
	result = (ValaExpression*) expr;
	_vala_iterable_unref0 (type_arg_list);
	_g_free0 (id);
	return result;
}


static ValaExpression* vala_parser_parse_method_call (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error) {
	ValaExpression* result = NULL;
	ValaList* arg_list = NULL;
	ValaList* _tmp0_;
	ValaList* init_list = NULL;
	ValaList* _tmp1_;
	gboolean _tmp2_ = FALSE;
	ValaList* _tmp3_;
	gint _tmp4_;
	gint _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (begin != NULL, NULL);
	g_return_val_if_fail (inner != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = vala_parser_parse_argument_list (self, &_inner_error_);
	arg_list = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (arg_list);
			return NULL;
		} else {
			_vala_iterable_unref0 (arg_list);
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_object_initializer (self, &_inner_error_);
	init_list = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (arg_list);
			return NULL;
		} else {
			_vala_iterable_unref0 (arg_list);
			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 NULL;
		}
	}
	_tmp3_ = init_list;
	_tmp4_ = vala_collection_get_size ((ValaCollection*) _tmp3_);
	_tmp5_ = _tmp4_;
	if (_tmp5_ > 0) {
		ValaExpression* _tmp6_;
		_tmp6_ = inner;
		_tmp2_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, VALA_TYPE_MEMBER_ACCESS);
	} else {
		_tmp2_ = FALSE;
	}
	if (_tmp2_) {
		ValaMemberAccess* member = NULL;
		ValaExpression* _tmp7_;
		ValaMemberAccess* _tmp8_;
		ValaMemberAccess* _tmp9_;
		ValaObjectCreationExpression* expr = NULL;
		ValaMemberAccess* _tmp10_;
		ValaSourceLocation _tmp11_;
		ValaSourceReference* _tmp12_;
		ValaSourceReference* _tmp13_;
		ValaObjectCreationExpression* _tmp14_;
		ValaObjectCreationExpression* _tmp15_;
		ValaObjectCreationExpression* _tmp16_;
		_tmp7_ = inner;
		_tmp8_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, VALA_TYPE_MEMBER_ACCESS, ValaMemberAccess));
		member = _tmp8_;
		_tmp9_ = member;
		vala_member_access_set_creation_member (_tmp9_, TRUE);
		_tmp10_ = member;
		_tmp11_ = *begin;
		_tmp12_ = vala_parser_get_src (self, &_tmp11_);
		_tmp13_ = _tmp12_;
		_tmp14_ = vala_object_creation_expression_new (_tmp10_, _tmp13_);
		_tmp15_ = _tmp14_;
		_vala_source_reference_unref0 (_tmp13_);
		expr = _tmp15_;
		_tmp16_ = expr;
		vala_object_creation_expression_set_struct_creation (_tmp16_, TRUE);
		{
			ValaList* _arg_list = NULL;
			ValaList* _tmp17_;
			ValaList* _tmp18_;
			gint _arg_size = 0;
			ValaList* _tmp19_;
			gint _tmp20_;
			gint _tmp21_;
			gint _arg_index = 0;
			_tmp17_ = arg_list;
			_tmp18_ = _vala_iterable_ref0 (_tmp17_);
			_arg_list = _tmp18_;
			_tmp19_ = _arg_list;
			_tmp20_ = vala_collection_get_size ((ValaCollection*) _tmp19_);
			_tmp21_ = _tmp20_;
			_arg_size = _tmp21_;
			_arg_index = -1;
			while (TRUE) {
				gint _tmp22_;
				gint _tmp23_;
				gint _tmp24_;
				ValaExpression* arg = NULL;
				ValaList* _tmp25_;
				gint _tmp26_;
				gpointer _tmp27_;
				ValaObjectCreationExpression* _tmp28_;
				ValaExpression* _tmp29_;
				_tmp22_ = _arg_index;
				_arg_index = _tmp22_ + 1;
				_tmp23_ = _arg_index;
				_tmp24_ = _arg_size;
				if (!(_tmp23_ < _tmp24_)) {
					break;
				}
				_tmp25_ = _arg_list;
				_tmp26_ = _arg_index;
				_tmp27_ = vala_list_get (_tmp25_, _tmp26_);
				arg = (ValaExpression*) _tmp27_;
				_tmp28_ = expr;
				_tmp29_ = arg;
				vala_object_creation_expression_add_argument (_tmp28_, _tmp29_);
				_vala_code_node_unref0 (arg);
			}
			_vala_iterable_unref0 (_arg_list);
		}
		{
			ValaList* _initializer_list = NULL;
			ValaList* _tmp30_;
			ValaList* _tmp31_;
			gint _initializer_size = 0;
			ValaList* _tmp32_;
			gint _tmp33_;
			gint _tmp34_;
			gint _initializer_index = 0;
			_tmp30_ = init_list;
			_tmp31_ = _vala_iterable_ref0 (_tmp30_);
			_initializer_list = _tmp31_;
			_tmp32_ = _initializer_list;
			_tmp33_ = vala_collection_get_size ((ValaCollection*) _tmp32_);
			_tmp34_ = _tmp33_;
			_initializer_size = _tmp34_;
			_initializer_index = -1;
			while (TRUE) {
				gint _tmp35_;
				gint _tmp36_;
				gint _tmp37_;
				ValaMemberInitializer* initializer = NULL;
				ValaList* _tmp38_;
				gint _tmp39_;
				gpointer _tmp40_;
				ValaObjectCreationExpression* _tmp41_;
				ValaMemberInitializer* _tmp42_;
				_tmp35_ = _initializer_index;
				_initializer_index = _tmp35_ + 1;
				_tmp36_ = _initializer_index;
				_tmp37_ = _initializer_size;
				if (!(_tmp36_ < _tmp37_)) {
					break;
				}
				_tmp38_ = _initializer_list;
				_tmp39_ = _initializer_index;
				_tmp40_ = vala_list_get (_tmp38_, _tmp39_);
				initializer = (ValaMemberInitializer*) _tmp40_;
				_tmp41_ = expr;
				_tmp42_ = initializer;
				vala_object_creation_expression_add_member_initializer (_tmp41_, _tmp42_);
				_vala_code_node_unref0 (initializer);
			}
			_vala_iterable_unref0 (_initializer_list);
		}
		result = (ValaExpression*) expr;
		_vala_code_node_unref0 (member);
		_vala_iterable_unref0 (init_list);
		_vala_iterable_unref0 (arg_list);
		return result;
	} else {
		ValaMethodCall* expr = NULL;
		ValaExpression* _tmp43_;
		ValaSourceLocation _tmp44_;
		ValaSourceReference* _tmp45_;
		ValaSourceReference* _tmp46_;
		ValaMethodCall* _tmp47_;
		ValaMethodCall* _tmp48_;
		_tmp43_ = inner;
		_tmp44_ = *begin;
		_tmp45_ = vala_parser_get_src (self, &_tmp44_);
		_tmp46_ = _tmp45_;
		_tmp47_ = vala_method_call_new (_tmp43_, _tmp46_);
		_tmp48_ = _tmp47_;
		_vala_source_reference_unref0 (_tmp46_);
		expr = _tmp48_;
		{
			ValaList* _arg_list = NULL;
			ValaList* _tmp49_;
			ValaList* _tmp50_;
			gint _arg_size = 0;
			ValaList* _tmp51_;
			gint _tmp52_;
			gint _tmp53_;
			gint _arg_index = 0;
			_tmp49_ = arg_list;
			_tmp50_ = _vala_iterable_ref0 (_tmp49_);
			_arg_list = _tmp50_;
			_tmp51_ = _arg_list;
			_tmp52_ = vala_collection_get_size ((ValaCollection*) _tmp51_);
			_tmp53_ = _tmp52_;
			_arg_size = _tmp53_;
			_arg_index = -1;
			while (TRUE) {
				gint _tmp54_;
				gint _tmp55_;
				gint _tmp56_;
				ValaExpression* arg = NULL;
				ValaList* _tmp57_;
				gint _tmp58_;
				gpointer _tmp59_;
				ValaMethodCall* _tmp60_;
				ValaExpression* _tmp61_;
				_tmp54_ = _arg_index;
				_arg_index = _tmp54_ + 1;
				_tmp55_ = _arg_index;
				_tmp56_ = _arg_size;
				if (!(_tmp55_ < _tmp56_)) {
					break;
				}
				_tmp57_ = _arg_list;
				_tmp58_ = _arg_index;
				_tmp59_ = vala_list_get (_tmp57_, _tmp58_);
				arg = (ValaExpression*) _tmp59_;
				_tmp60_ = expr;
				_tmp61_ = arg;
				vala_method_call_add_argument (_tmp60_, _tmp61_);
				_vala_code_node_unref0 (arg);
			}
			_vala_iterable_unref0 (_arg_list);
		}
		result = (ValaExpression*) expr;
		_vala_iterable_unref0 (init_list);
		_vala_iterable_unref0 (arg_list);
		return result;
	}
	_vala_iterable_unref0 (init_list);
	_vala_iterable_unref0 (arg_list);
}


static ValaExpression* vala_parser_parse_element_access (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error) {
	ValaExpression* result = NULL;
	ValaList* index_list = NULL;
	ValaList* _tmp0_;
	ValaExpression* stop = NULL;
	gboolean _tmp1_ = FALSE;
	ValaList* _tmp2_;
	gint _tmp3_;
	gint _tmp4_;
	ValaExpression* _tmp9_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (begin != NULL, NULL);
	g_return_val_if_fail (inner != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACKET, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = vala_parser_parse_expression_list (self, &_inner_error_);
	index_list = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	stop = NULL;
	_tmp2_ = index_list;
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	_tmp4_ = _tmp3_;
	if (_tmp4_ == 1) {
		gboolean _tmp5_;
		_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COLON);
		_tmp1_ = _tmp5_;
	} else {
		_tmp1_ = FALSE;
	}
	if (_tmp1_) {
		ValaExpression* _tmp6_ = NULL;
		ValaExpression* _tmp7_;
		ValaExpression* _tmp8_;
		_tmp7_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp6_ = _tmp7_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (stop);
				_vala_iterable_unref0 (index_list);
				return NULL;
			} else {
				_vala_code_node_unref0 (stop);
				_vala_iterable_unref0 (index_list);
				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 NULL;
			}
		}
		_tmp8_ = _tmp6_;
		_tmp6_ = NULL;
		_vala_code_node_unref0 (stop);
		stop = _tmp8_;
		_vala_code_node_unref0 (_tmp6_);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACKET, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (stop);
			_vala_iterable_unref0 (index_list);
			return NULL;
		} else {
			_vala_code_node_unref0 (stop);
			_vala_iterable_unref0 (index_list);
			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 NULL;
		}
	}
	_tmp9_ = stop;
	if (_tmp9_ == NULL) {
		ValaElementAccess* expr = NULL;
		ValaExpression* _tmp10_;
		ValaSourceLocation _tmp11_;
		ValaSourceReference* _tmp12_;
		ValaSourceReference* _tmp13_;
		ValaElementAccess* _tmp14_;
		ValaElementAccess* _tmp15_;
		_tmp10_ = inner;
		_tmp11_ = *begin;
		_tmp12_ = vala_parser_get_src (self, &_tmp11_);
		_tmp13_ = _tmp12_;
		_tmp14_ = vala_element_access_new (_tmp10_, _tmp13_);
		_tmp15_ = _tmp14_;
		_vala_source_reference_unref0 (_tmp13_);
		expr = _tmp15_;
		{
			ValaList* _index_list = NULL;
			ValaList* _tmp16_;
			ValaList* _tmp17_;
			gint _index_size = 0;
			ValaList* _tmp18_;
			gint _tmp19_;
			gint _tmp20_;
			gint _index_index = 0;
			_tmp16_ = index_list;
			_tmp17_ = _vala_iterable_ref0 (_tmp16_);
			_index_list = _tmp17_;
			_tmp18_ = _index_list;
			_tmp19_ = vala_collection_get_size ((ValaCollection*) _tmp18_);
			_tmp20_ = _tmp19_;
			_index_size = _tmp20_;
			_index_index = -1;
			while (TRUE) {
				gint _tmp21_;
				gint _tmp22_;
				gint _tmp23_;
				ValaExpression* index = NULL;
				ValaList* _tmp24_;
				gint _tmp25_;
				gpointer _tmp26_;
				ValaElementAccess* _tmp27_;
				ValaExpression* _tmp28_;
				_tmp21_ = _index_index;
				_index_index = _tmp21_ + 1;
				_tmp22_ = _index_index;
				_tmp23_ = _index_size;
				if (!(_tmp22_ < _tmp23_)) {
					break;
				}
				_tmp24_ = _index_list;
				_tmp25_ = _index_index;
				_tmp26_ = vala_list_get (_tmp24_, _tmp25_);
				index = (ValaExpression*) _tmp26_;
				_tmp27_ = expr;
				_tmp28_ = index;
				vala_element_access_append_index (_tmp27_, _tmp28_);
				_vala_code_node_unref0 (index);
			}
			_vala_iterable_unref0 (_index_list);
		}
		result = (ValaExpression*) expr;
		_vala_code_node_unref0 (stop);
		_vala_iterable_unref0 (index_list);
		return result;
	} else {
		ValaExpression* _tmp29_;
		ValaList* _tmp30_;
		gpointer _tmp31_;
		ValaExpression* _tmp32_;
		ValaExpression* _tmp33_;
		ValaSourceLocation _tmp34_;
		ValaSourceReference* _tmp35_;
		ValaSourceReference* _tmp36_;
		ValaSliceExpression* _tmp37_;
		ValaExpression* _tmp38_;
		_tmp29_ = inner;
		_tmp30_ = index_list;
		_tmp31_ = vala_list_get (_tmp30_, 0);
		_tmp32_ = (ValaExpression*) _tmp31_;
		_tmp33_ = stop;
		_tmp34_ = *begin;
		_tmp35_ = vala_parser_get_src (self, &_tmp34_);
		_tmp36_ = _tmp35_;
		_tmp37_ = vala_slice_expression_new (_tmp29_, _tmp32_, _tmp33_, _tmp36_);
		_tmp38_ = (ValaExpression*) _tmp37_;
		_vala_source_reference_unref0 (_tmp36_);
		_vala_code_node_unref0 (_tmp32_);
		result = _tmp38_;
		_vala_code_node_unref0 (stop);
		_vala_iterable_unref0 (index_list);
		return result;
	}
	_vala_code_node_unref0 (stop);
	_vala_iterable_unref0 (index_list);
}


static ValaList* vala_parser_parse_expression_list (ValaParser* self, GError** error) {
	ValaList* result = NULL;
	ValaArrayList* list = NULL;
	GEqualFunc _tmp0_;
	ValaArrayList* _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = g_direct_equal;
	_tmp1_ = vala_array_list_new (VALA_TYPE_EXPRESSION, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp0_);
	list = _tmp1_;
	{
		gboolean _tmp2_ = FALSE;
		_tmp2_ = TRUE;
		while (TRUE) {
			ValaExpression* _tmp4_ = NULL;
			ValaExpression* _tmp5_;
			ValaArrayList* _tmp6_;
			if (!_tmp2_) {
				gboolean _tmp3_;
				_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
				if (!_tmp3_) {
					break;
				}
			}
			_tmp2_ = FALSE;
			_tmp5_ = vala_parser_parse_expression (self, &_inner_error_);
			_tmp4_ = _tmp5_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (list);
					return NULL;
				} else {
					_vala_iterable_unref0 (list);
					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 NULL;
				}
			}
			_tmp6_ = list;
			vala_collection_add ((ValaCollection*) _tmp6_, _tmp4_);
			_vala_code_node_unref0 (_tmp4_);
		}
	}
	result = (ValaList*) list;
	return result;
}


static ValaExpression* vala_parser_parse_this_access (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaMemberAccess* _tmp4_;
	ValaExpression* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_THIS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_member_access_new (NULL, "this", _tmp3_);
	_tmp5_ = (ValaExpression*) _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	result = _tmp5_;
	return result;
}


static ValaExpression* vala_parser_parse_base_access (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaBaseAccess* _tmp4_;
	ValaExpression* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_BASE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_base_access_new (_tmp3_);
	_tmp5_ = (ValaExpression*) _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	result = _tmp5_;
	return result;
}


static ValaExpression* vala_parser_parse_post_increment_expression (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error) {
	ValaExpression* result = NULL;
	ValaExpression* _tmp0_;
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaPostfixExpression* _tmp4_;
	ValaExpression* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (begin != NULL, NULL);
	g_return_val_if_fail (inner != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OP_INC, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = inner;
	_tmp1_ = *begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_postfix_expression_new (_tmp0_, TRUE, _tmp3_);
	_tmp5_ = (ValaExpression*) _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	result = _tmp5_;
	return result;
}


static ValaExpression* vala_parser_parse_post_decrement_expression (ValaParser* self, ValaSourceLocation* begin, ValaExpression* inner, GError** error) {
	ValaExpression* result = NULL;
	ValaExpression* _tmp0_;
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaPostfixExpression* _tmp4_;
	ValaExpression* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (begin != NULL, NULL);
	g_return_val_if_fail (inner != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OP_DEC, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = inner;
	_tmp1_ = *begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_postfix_expression_new (_tmp0_, FALSE, _tmp3_);
	_tmp5_ = (ValaExpression*) _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	result = _tmp5_;
	return result;
}


static ValaExpression* vala_parser_parse_object_or_array_creation_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gboolean _tmp1_;
	ValaMemberAccess* member = NULL;
	ValaMemberAccess* _tmp6_;
	gboolean _tmp7_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_NEW, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_is_inner_array_type (self);
	if (_tmp1_) {
		ValaSourceLocation _tmp2_;
		ValaExpression* _tmp3_ = NULL;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		_tmp2_ = begin;
		vala_parser_rollback (self, &_tmp2_);
		_tmp4_ = vala_parser_parse_array_creation_expression (self, &_inner_error_);
		_tmp3_ = _tmp4_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
		_tmp5_ = _tmp3_;
		_tmp3_ = NULL;
		result = _tmp5_;
		_vala_code_node_unref0 (_tmp3_);
		return result;
	}
	_tmp6_ = vala_parser_parse_member_name (self, NULL, &_inner_error_);
	member = _tmp6_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp7_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_PARENS);
	if (_tmp7_) {
		ValaExpression* expr = NULL;
		ValaSourceLocation _tmp8_;
		ValaMemberAccess* _tmp9_;
		ValaExpression* _tmp10_;
		_tmp8_ = begin;
		_tmp9_ = member;
		_tmp10_ = vala_parser_parse_object_creation_expression (self, &_tmp8_, _tmp9_, &_inner_error_);
		expr = _tmp10_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (member);
				return NULL;
			} else {
				_vala_code_node_unref0 (member);
				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 NULL;
			}
		}
		result = expr;
		_vala_code_node_unref0 (member);
		return result;
	} else {
		gboolean is_pointer_type = FALSE;
		gboolean _tmp12_;
		gboolean _tmp13_;
		is_pointer_type = FALSE;
		while (TRUE) {
			gboolean _tmp11_;
			_tmp11_ = vala_parser_accept (self, VALA_TOKEN_TYPE_STAR);
			if (!_tmp11_) {
				break;
			}
			is_pointer_type = TRUE;
		}
		_tmp12_ = is_pointer_type;
		if (!_tmp12_) {
			vala_parser_accept (self, VALA_TOKEN_TYPE_INTERR);
		}
		_tmp13_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_BRACKET);
		if (_tmp13_) {
			ValaSourceLocation _tmp14_;
			ValaExpression* expr = NULL;
			ValaExpression* _tmp15_;
			_tmp14_ = begin;
			vala_parser_rollback (self, &_tmp14_);
			_tmp15_ = vala_parser_parse_array_creation_expression (self, &_inner_error_);
			expr = _tmp15_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (member);
					return NULL;
				} else {
					_vala_code_node_unref0 (member);
					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 NULL;
				}
			}
			result = expr;
			_vala_code_node_unref0 (member);
			return result;
		} else {
			GError* _tmp16_;
			_tmp16_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected ( or [");
			_inner_error_ = _tmp16_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (member);
				return NULL;
			} else {
				_vala_code_node_unref0 (member);
				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 NULL;
			}
		}
	}
	_vala_code_node_unref0 (member);
}


static ValaExpression* vala_parser_parse_object_creation_expression (ValaParser* self, ValaSourceLocation* begin, ValaMemberAccess* member, GError** error) {
	ValaExpression* result = NULL;
	ValaMemberAccess* _tmp0_;
	ValaList* arg_list = NULL;
	ValaList* _tmp1_;
	ValaList* init_list = NULL;
	ValaList* _tmp2_;
	ValaObjectCreationExpression* expr = NULL;
	ValaMemberAccess* _tmp3_;
	ValaSourceLocation _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaObjectCreationExpression* _tmp7_;
	ValaObjectCreationExpression* _tmp8_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (begin != NULL, NULL);
	g_return_val_if_fail (member != NULL, NULL);
	_tmp0_ = member;
	vala_member_access_set_creation_member (_tmp0_, TRUE);
	_tmp1_ = vala_parser_parse_argument_list (self, &_inner_error_);
	arg_list = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (arg_list);
			return NULL;
		} else {
			_vala_iterable_unref0 (arg_list);
			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 NULL;
		}
	}
	_tmp2_ = vala_parser_parse_object_initializer (self, &_inner_error_);
	init_list = _tmp2_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (arg_list);
			return NULL;
		} else {
			_vala_iterable_unref0 (arg_list);
			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 NULL;
		}
	}
	_tmp3_ = member;
	_tmp4_ = *begin;
	_tmp5_ = vala_parser_get_src (self, &_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = vala_object_creation_expression_new (_tmp3_, _tmp6_);
	_tmp8_ = _tmp7_;
	_vala_source_reference_unref0 (_tmp6_);
	expr = _tmp8_;
	{
		ValaList* _arg_list = NULL;
		ValaList* _tmp9_;
		ValaList* _tmp10_;
		gint _arg_size = 0;
		ValaList* _tmp11_;
		gint _tmp12_;
		gint _tmp13_;
		gint _arg_index = 0;
		_tmp9_ = arg_list;
		_tmp10_ = _vala_iterable_ref0 (_tmp9_);
		_arg_list = _tmp10_;
		_tmp11_ = _arg_list;
		_tmp12_ = vala_collection_get_size ((ValaCollection*) _tmp11_);
		_tmp13_ = _tmp12_;
		_arg_size = _tmp13_;
		_arg_index = -1;
		while (TRUE) {
			gint _tmp14_;
			gint _tmp15_;
			gint _tmp16_;
			ValaExpression* arg = NULL;
			ValaList* _tmp17_;
			gint _tmp18_;
			gpointer _tmp19_;
			ValaObjectCreationExpression* _tmp20_;
			ValaExpression* _tmp21_;
			_tmp14_ = _arg_index;
			_arg_index = _tmp14_ + 1;
			_tmp15_ = _arg_index;
			_tmp16_ = _arg_size;
			if (!(_tmp15_ < _tmp16_)) {
				break;
			}
			_tmp17_ = _arg_list;
			_tmp18_ = _arg_index;
			_tmp19_ = vala_list_get (_tmp17_, _tmp18_);
			arg = (ValaExpression*) _tmp19_;
			_tmp20_ = expr;
			_tmp21_ = arg;
			vala_object_creation_expression_add_argument (_tmp20_, _tmp21_);
			_vala_code_node_unref0 (arg);
		}
		_vala_iterable_unref0 (_arg_list);
	}
	{
		ValaList* _initializer_list = NULL;
		ValaList* _tmp22_;
		ValaList* _tmp23_;
		gint _initializer_size = 0;
		ValaList* _tmp24_;
		gint _tmp25_;
		gint _tmp26_;
		gint _initializer_index = 0;
		_tmp22_ = init_list;
		_tmp23_ = _vala_iterable_ref0 (_tmp22_);
		_initializer_list = _tmp23_;
		_tmp24_ = _initializer_list;
		_tmp25_ = vala_collection_get_size ((ValaCollection*) _tmp24_);
		_tmp26_ = _tmp25_;
		_initializer_size = _tmp26_;
		_initializer_index = -1;
		while (TRUE) {
			gint _tmp27_;
			gint _tmp28_;
			gint _tmp29_;
			ValaMemberInitializer* initializer = NULL;
			ValaList* _tmp30_;
			gint _tmp31_;
			gpointer _tmp32_;
			ValaObjectCreationExpression* _tmp33_;
			ValaMemberInitializer* _tmp34_;
			_tmp27_ = _initializer_index;
			_initializer_index = _tmp27_ + 1;
			_tmp28_ = _initializer_index;
			_tmp29_ = _initializer_size;
			if (!(_tmp28_ < _tmp29_)) {
				break;
			}
			_tmp30_ = _initializer_list;
			_tmp31_ = _initializer_index;
			_tmp32_ = vala_list_get (_tmp30_, _tmp31_);
			initializer = (ValaMemberInitializer*) _tmp32_;
			_tmp33_ = expr;
			_tmp34_ = initializer;
			vala_object_creation_expression_add_member_initializer (_tmp33_, _tmp34_);
			_vala_code_node_unref0 (initializer);
		}
		_vala_iterable_unref0 (_initializer_list);
	}
	result = (ValaExpression*) expr;
	_vala_iterable_unref0 (init_list);
	_vala_iterable_unref0 (arg_list);
	return result;
}


static ValaExpression* vala_parser_parse_array_creation_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gboolean inner_array_type = FALSE;
	gboolean _tmp1_;
	gboolean _tmp2_;
	ValaMemberAccess* member = NULL;
	ValaMemberAccess* _tmp3_;
	ValaDataType* element_type = NULL;
	ValaMemberAccess* _tmp4_;
	ValaUnresolvedType* _tmp5_;
	gboolean is_pointer_type = FALSE;
	gboolean _tmp12_;
	gboolean _tmp15_;
	gboolean size_specified = FALSE;
	ValaList* size_specifier_list = NULL;
	gboolean first = FALSE;
	ValaInitializerList* initializer = NULL;
	ValaTokenType _tmp43_;
	ValaArrayCreationExpression* expr = NULL;
	ValaDataType* _tmp47_;
	ValaList* _tmp48_;
	gint _tmp49_;
	gint _tmp50_;
	ValaInitializerList* _tmp51_;
	ValaSourceLocation _tmp52_;
	ValaSourceReference* _tmp53_;
	ValaSourceReference* _tmp54_;
	ValaArrayCreationExpression* _tmp55_;
	ValaArrayCreationExpression* _tmp56_;
	gboolean _tmp57_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_NEW, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_is_inner_array_type (self);
	inner_array_type = _tmp1_;
	_tmp2_ = inner_array_type;
	if (_tmp2_) {
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_UNOWNED, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
	}
	_tmp3_ = vala_parser_parse_member_name (self, NULL, &_inner_error_);
	member = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp4_ = member;
	_tmp5_ = vala_unresolved_type_new_from_expression ((ValaExpression*) _tmp4_);
	element_type = (ValaDataType*) _tmp5_;
	is_pointer_type = FALSE;
	while (TRUE) {
		gboolean _tmp6_;
		ValaDataType* _tmp7_;
		ValaSourceLocation _tmp8_;
		ValaSourceReference* _tmp9_;
		ValaSourceReference* _tmp10_;
		ValaPointerType* _tmp11_;
		_tmp6_ = vala_parser_accept (self, VALA_TOKEN_TYPE_STAR);
		if (!_tmp6_) {
			break;
		}
		_tmp7_ = element_type;
		_tmp8_ = begin;
		_tmp9_ = vala_parser_get_src (self, &_tmp8_);
		_tmp10_ = _tmp9_;
		_tmp11_ = vala_pointer_type_new (_tmp7_, _tmp10_);
		_vala_code_node_unref0 (element_type);
		element_type = (ValaDataType*) _tmp11_;
		_vala_source_reference_unref0 (_tmp10_);
		is_pointer_type = TRUE;
	}
	_tmp12_ = is_pointer_type;
	if (!_tmp12_) {
		gboolean _tmp13_;
		_tmp13_ = vala_parser_accept (self, VALA_TOKEN_TYPE_INTERR);
		if (_tmp13_) {
			ValaDataType* _tmp14_;
			_tmp14_ = element_type;
			vala_data_type_set_nullable (_tmp14_, TRUE);
		}
	}
	_tmp15_ = inner_array_type;
	if (_tmp15_) {
		ValaDataType* _tmp16_;
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (element_type);
				_vala_code_node_unref0 (member);
				return NULL;
			} else {
				_vala_code_node_unref0 (element_type);
				_vala_code_node_unref0 (member);
				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 NULL;
			}
		}
		_tmp16_ = element_type;
		vala_data_type_set_value_owned (_tmp16_, FALSE);
	} else {
		ValaDataType* _tmp17_;
		_tmp17_ = element_type;
		vala_data_type_set_value_owned (_tmp17_, TRUE);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACKET, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (element_type);
			_vala_code_node_unref0 (member);
			return NULL;
		} else {
			_vala_code_node_unref0 (element_type);
			_vala_code_node_unref0 (member);
			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 NULL;
		}
	}
	size_specified = FALSE;
	size_specifier_list = NULL;
	first = TRUE;
	{
		gboolean _tmp18_ = FALSE;
		_tmp18_ = TRUE;
		while (TRUE) {
			gboolean _tmp20_;
			GEqualFunc _tmp31_;
			ValaArrayList* _tmp32_;
			if (!_tmp18_) {
				gboolean _tmp19_;
				_tmp19_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_BRACKET);
				if (!_tmp19_) {
					break;
				}
			}
			_tmp18_ = FALSE;
			_tmp20_ = first;
			if (!_tmp20_) {
				gboolean _tmp21_;
				ValaDataType* _tmp23_;
				ValaList* _tmp24_;
				gint _tmp25_;
				gint _tmp26_;
				ValaDataType* _tmp27_;
				ValaSourceReference* _tmp28_;
				ValaSourceReference* _tmp29_;
				ValaArrayType* _tmp30_;
				_tmp21_ = size_specified;
				if (_tmp21_) {
					GError* _tmp22_;
					_tmp22_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "size of inner arrays must not be specified in array creation expressio" \
"n");
					_inner_error_ = _tmp22_;
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (size_specifier_list);
						_vala_code_node_unref0 (element_type);
						_vala_code_node_unref0 (member);
						return NULL;
					} else {
						_vala_iterable_unref0 (size_specifier_list);
						_vala_code_node_unref0 (element_type);
						_vala_code_node_unref0 (member);
						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 NULL;
					}
				}
				_tmp23_ = element_type;
				_tmp24_ = size_specifier_list;
				_tmp25_ = vala_collection_get_size ((ValaCollection*) _tmp24_);
				_tmp26_ = _tmp25_;
				_tmp27_ = element_type;
				_tmp28_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp27_);
				_tmp29_ = _tmp28_;
				_tmp30_ = vala_array_type_new (_tmp23_, _tmp26_, _tmp29_);
				_vala_code_node_unref0 (element_type);
				element_type = (ValaDataType*) _tmp30_;
			} else {
				first = FALSE;
			}
			_tmp31_ = g_direct_equal;
			_tmp32_ = vala_array_list_new (VALA_TYPE_EXPRESSION, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp31_);
			_vala_iterable_unref0 (size_specifier_list);
			size_specifier_list = (ValaList*) _tmp32_;
			{
				gboolean _tmp33_ = FALSE;
				_tmp33_ = TRUE;
				while (TRUE) {
					ValaExpression* size = NULL;
					gboolean _tmp35_ = FALSE;
					ValaTokenType _tmp36_;
					ValaList* _tmp41_;
					ValaExpression* _tmp42_;
					if (!_tmp33_) {
						gboolean _tmp34_;
						_tmp34_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
						if (!_tmp34_) {
							break;
						}
					}
					_tmp33_ = FALSE;
					size = NULL;
					_tmp36_ = vala_parser_current (self);
					if (_tmp36_ != VALA_TOKEN_TYPE_CLOSE_BRACKET) {
						ValaTokenType _tmp37_;
						_tmp37_ = vala_parser_current (self);
						_tmp35_ = _tmp37_ != VALA_TOKEN_TYPE_COMMA;
					} else {
						_tmp35_ = FALSE;
					}
					if (_tmp35_) {
						ValaExpression* _tmp38_ = NULL;
						ValaExpression* _tmp39_;
						ValaExpression* _tmp40_;
						_tmp39_ = vala_parser_parse_expression (self, &_inner_error_);
						_tmp38_ = _tmp39_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								g_propagate_error (error, _inner_error_);
								_vala_code_node_unref0 (size);
								_vala_iterable_unref0 (size_specifier_list);
								_vala_code_node_unref0 (element_type);
								_vala_code_node_unref0 (member);
								return NULL;
							} else {
								_vala_code_node_unref0 (size);
								_vala_iterable_unref0 (size_specifier_list);
								_vala_code_node_unref0 (element_type);
								_vala_code_node_unref0 (member);
								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 NULL;
							}
						}
						_tmp40_ = _tmp38_;
						_tmp38_ = NULL;
						_vala_code_node_unref0 (size);
						size = _tmp40_;
						size_specified = TRUE;
						_vala_code_node_unref0 (_tmp38_);
					}
					_tmp41_ = size_specifier_list;
					_tmp42_ = size;
					vala_collection_add ((ValaCollection*) _tmp41_, _tmp42_);
					_vala_code_node_unref0 (size);
				}
			}
			vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACKET, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (size_specifier_list);
					_vala_code_node_unref0 (element_type);
					_vala_code_node_unref0 (member);
					return NULL;
				} else {
					_vala_iterable_unref0 (size_specifier_list);
					_vala_code_node_unref0 (element_type);
					_vala_code_node_unref0 (member);
					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 NULL;
				}
			}
		}
	}
	initializer = NULL;
	_tmp43_ = vala_parser_current (self);
	if (_tmp43_ == VALA_TOKEN_TYPE_OPEN_BRACE) {
		ValaInitializerList* _tmp44_ = NULL;
		ValaInitializerList* _tmp45_;
		ValaInitializerList* _tmp46_;
		_tmp45_ = vala_parser_parse_initializer (self, &_inner_error_);
		_tmp44_ = _tmp45_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (initializer);
				_vala_iterable_unref0 (size_specifier_list);
				_vala_code_node_unref0 (element_type);
				_vala_code_node_unref0 (member);
				return NULL;
			} else {
				_vala_code_node_unref0 (initializer);
				_vala_iterable_unref0 (size_specifier_list);
				_vala_code_node_unref0 (element_type);
				_vala_code_node_unref0 (member);
				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 NULL;
			}
		}
		_tmp46_ = _tmp44_;
		_tmp44_ = NULL;
		_vala_code_node_unref0 (initializer);
		initializer = _tmp46_;
		_vala_code_node_unref0 (_tmp44_);
	}
	_tmp47_ = element_type;
	_tmp48_ = size_specifier_list;
	_tmp49_ = vala_collection_get_size ((ValaCollection*) _tmp48_);
	_tmp50_ = _tmp49_;
	_tmp51_ = initializer;
	_tmp52_ = begin;
	_tmp53_ = vala_parser_get_src (self, &_tmp52_);
	_tmp54_ = _tmp53_;
	_tmp55_ = vala_array_creation_expression_new (_tmp47_, _tmp50_, _tmp51_, _tmp54_);
	_tmp56_ = _tmp55_;
	_vala_source_reference_unref0 (_tmp54_);
	expr = _tmp56_;
	_tmp57_ = size_specified;
	if (_tmp57_) {
		{
			ValaList* _size_list = NULL;
			ValaList* _tmp58_;
			ValaList* _tmp59_;
			gint _size_size = 0;
			ValaList* _tmp60_;
			gint _tmp61_;
			gint _tmp62_;
			gint _size_index = 0;
			_tmp58_ = size_specifier_list;
			_tmp59_ = _vala_iterable_ref0 (_tmp58_);
			_size_list = _tmp59_;
			_tmp60_ = _size_list;
			_tmp61_ = vala_collection_get_size ((ValaCollection*) _tmp60_);
			_tmp62_ = _tmp61_;
			_size_size = _tmp62_;
			_size_index = -1;
			while (TRUE) {
				gint _tmp63_;
				gint _tmp64_;
				gint _tmp65_;
				ValaExpression* size = NULL;
				ValaList* _tmp66_;
				gint _tmp67_;
				gpointer _tmp68_;
				ValaArrayCreationExpression* _tmp69_;
				ValaExpression* _tmp70_;
				_tmp63_ = _size_index;
				_size_index = _tmp63_ + 1;
				_tmp64_ = _size_index;
				_tmp65_ = _size_size;
				if (!(_tmp64_ < _tmp65_)) {
					break;
				}
				_tmp66_ = _size_list;
				_tmp67_ = _size_index;
				_tmp68_ = vala_list_get (_tmp66_, _tmp67_);
				size = (ValaExpression*) _tmp68_;
				_tmp69_ = expr;
				_tmp70_ = size;
				vala_array_creation_expression_append_size (_tmp69_, _tmp70_);
				_vala_code_node_unref0 (size);
			}
			_vala_iterable_unref0 (_size_list);
		}
	}
	result = (ValaExpression*) expr;
	_vala_code_node_unref0 (initializer);
	_vala_iterable_unref0 (size_specifier_list);
	_vala_code_node_unref0 (element_type);
	_vala_code_node_unref0 (member);
	return result;
}


static ValaList* vala_parser_parse_object_initializer (ValaParser* self, GError** error) {
	ValaList* result = NULL;
	ValaArrayList* list = NULL;
	GEqualFunc _tmp0_;
	ValaArrayList* _tmp1_;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = g_direct_equal;
	_tmp1_ = vala_array_list_new (VALA_TYPE_MEMBER_INITIALIZER, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp0_);
	list = _tmp1_;
	_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_BRACE);
	if (_tmp2_) {
		{
			gboolean _tmp3_ = FALSE;
			_tmp3_ = TRUE;
			while (TRUE) {
				ValaMemberInitializer* _tmp5_ = NULL;
				ValaMemberInitializer* _tmp6_;
				ValaArrayList* _tmp7_;
				if (!_tmp3_) {
					gboolean _tmp4_;
					_tmp4_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp4_) {
						break;
					}
				}
				_tmp3_ = FALSE;
				_tmp6_ = vala_parser_parse_member_initializer (self, &_inner_error_);
				_tmp5_ = _tmp6_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (list);
						return NULL;
					} else {
						_vala_iterable_unref0 (list);
						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 NULL;
					}
				}
				_tmp7_ = list;
				vala_collection_add ((ValaCollection*) _tmp7_, _tmp5_);
				_vala_code_node_unref0 (_tmp5_);
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_iterable_unref0 (list);
				return NULL;
			} else {
				_vala_iterable_unref0 (list);
				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 NULL;
			}
		}
	}
	result = (ValaList*) list;
	return result;
}


static ValaMemberInitializer* vala_parser_parse_member_initializer (ValaParser* self, GError** error) {
	ValaMemberInitializer* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gchar* id = NULL;
	gchar* _tmp1_;
	ValaExpression* expr = NULL;
	ValaExpression* _tmp2_;
	const gchar* _tmp3_;
	ValaExpression* _tmp4_;
	ValaSourceLocation _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaSourceReference* _tmp7_;
	ValaMemberInitializer* _tmp8_;
	ValaMemberInitializer* _tmp9_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_ASSIGN, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			return NULL;
		} else {
			_g_free0 (id);
			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 NULL;
		}
	}
	_tmp2_ = vala_parser_parse_expression (self, &_inner_error_);
	expr = _tmp2_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			return NULL;
		} else {
			_g_free0 (id);
			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 NULL;
		}
	}
	_tmp3_ = id;
	_tmp4_ = expr;
	_tmp5_ = begin;
	_tmp6_ = vala_parser_get_src (self, &_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_member_initializer_new (_tmp3_, _tmp4_, _tmp7_);
	_tmp9_ = _tmp8_;
	_vala_source_reference_unref0 (_tmp7_);
	result = _tmp9_;
	_vala_code_node_unref0 (expr);
	_g_free0 (id);
	return result;
}


static ValaExpression* vala_parser_parse_yield_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaExpression* expr = NULL;
	ValaExpression* _tmp0_;
	ValaMethodCall* call = NULL;
	ValaExpression* _tmp1_;
	ValaMethodCall* _tmp2_;
	ValaObjectCreationExpression* object_creation = NULL;
	ValaExpression* _tmp3_;
	ValaObjectCreationExpression* _tmp4_;
	gboolean _tmp5_ = FALSE;
	ValaMethodCall* _tmp6_;
	ValaMethodCall* _tmp12_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_YIELD, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = vala_parser_parse_expression (self, &_inner_error_);
	expr = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = expr;
	_tmp2_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_METHOD_CALL) ? ((ValaMethodCall*) _tmp1_) : NULL);
	call = _tmp2_;
	_tmp3_ = expr;
	_tmp4_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, VALA_TYPE_OBJECT_CREATION_EXPRESSION) ? ((ValaObjectCreationExpression*) _tmp3_) : NULL);
	object_creation = _tmp4_;
	_tmp6_ = call;
	if (_tmp6_ == NULL) {
		ValaObjectCreationExpression* _tmp7_;
		_tmp7_ = object_creation;
		_tmp5_ = _tmp7_ == NULL;
	} else {
		_tmp5_ = FALSE;
	}
	if (_tmp5_) {
		ValaExpression* _tmp8_;
		ValaSourceReference* _tmp9_;
		ValaSourceReference* _tmp10_;
		GError* _tmp11_;
		_tmp8_ = expr;
		_tmp9_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp8_);
		_tmp10_ = _tmp9_;
		vala_report_error (_tmp10_, "syntax error, expected method call");
		_tmp11_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected method call");
		_inner_error_ = _tmp11_;
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (object_creation);
			_vala_code_node_unref0 (call);
			_vala_code_node_unref0 (expr);
			return NULL;
		} else {
			_vala_code_node_unref0 (object_creation);
			_vala_code_node_unref0 (call);
			_vala_code_node_unref0 (expr);
			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 NULL;
		}
	}
	_tmp12_ = call;
	if (_tmp12_ != NULL) {
		ValaMethodCall* _tmp13_;
		_tmp13_ = call;
		vala_method_call_set_is_yield_expression (_tmp13_, TRUE);
	} else {
		ValaObjectCreationExpression* _tmp14_;
		_tmp14_ = object_creation;
		if (_tmp14_ != NULL) {
			ValaObjectCreationExpression* _tmp15_;
			_tmp15_ = object_creation;
			vala_object_creation_expression_set_is_yield_expression (_tmp15_, TRUE);
		}
	}
	result = expr;
	_vala_code_node_unref0 (object_creation);
	_vala_code_node_unref0 (call);
	return result;
}


static ValaExpression* vala_parser_parse_sizeof_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaDataType* type = NULL;
	ValaDataType* _tmp1_;
	ValaDataType* _tmp2_;
	ValaSourceLocation _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaSizeofExpression* _tmp6_;
	ValaExpression* _tmp7_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_SIZEOF, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
	type = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return NULL;
		} else {
			_vala_code_node_unref0 (type);
			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 NULL;
		}
	}
	_tmp2_ = type;
	_tmp3_ = begin;
	_tmp4_ = vala_parser_get_src (self, &_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_sizeof_expression_new (_tmp2_, _tmp5_);
	_tmp7_ = (ValaExpression*) _tmp6_;
	_vala_source_reference_unref0 (_tmp5_);
	result = _tmp7_;
	_vala_code_node_unref0 (type);
	return result;
}


static ValaExpression* vala_parser_parse_typeof_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaDataType* type = NULL;
	ValaDataType* _tmp1_;
	ValaDataType* _tmp2_;
	ValaSourceLocation _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaTypeofExpression* _tmp6_;
	ValaExpression* _tmp7_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_TYPEOF, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
	type = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return NULL;
		} else {
			_vala_code_node_unref0 (type);
			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 NULL;
		}
	}
	_tmp2_ = type;
	_tmp3_ = begin;
	_tmp4_ = vala_parser_get_src (self, &_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_typeof_expression_new (_tmp2_, _tmp5_);
	_tmp7_ = (ValaExpression*) _tmp6_;
	_vala_source_reference_unref0 (_tmp5_);
	result = _tmp7_;
	_vala_code_node_unref0 (type);
	return result;
}


static ValaUnaryOperator vala_parser_get_unary_operator (ValaParser* self, ValaTokenType token_type) {
	ValaUnaryOperator result = 0;
	ValaTokenType _tmp0_;
	g_return_val_if_fail (self != NULL, 0);
	_tmp0_ = token_type;
	switch (_tmp0_) {
		case VALA_TOKEN_TYPE_PLUS:
		{
			result = VALA_UNARY_OPERATOR_PLUS;
			return result;
		}
		case VALA_TOKEN_TYPE_MINUS:
		{
			result = VALA_UNARY_OPERATOR_MINUS;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_NEG:
		{
			result = VALA_UNARY_OPERATOR_LOGICAL_NEGATION;
			return result;
		}
		case VALA_TOKEN_TYPE_TILDE:
		{
			result = VALA_UNARY_OPERATOR_BITWISE_COMPLEMENT;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_INC:
		{
			result = VALA_UNARY_OPERATOR_INCREMENT;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_DEC:
		{
			result = VALA_UNARY_OPERATOR_DECREMENT;
			return result;
		}
		default:
		{
			result = VALA_UNARY_OPERATOR_NONE;
			return result;
		}
	}
}


static ValaExpression* vala_parser_parse_unary_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaUnaryOperator operator = 0;
	ValaTokenType _tmp1_;
	ValaUnaryOperator _tmp2_;
	ValaUnaryOperator _tmp3_;
	ValaTokenType _tmp27_;
	ValaExpression* expr = NULL;
	ValaExpression* _tmp114_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_current (self);
	_tmp2_ = vala_parser_get_unary_operator (self, _tmp1_);
	operator = _tmp2_;
	_tmp3_ = operator;
	if (_tmp3_ != VALA_UNARY_OPERATOR_NONE) {
		ValaExpression* op = NULL;
		ValaExpression* _tmp4_;
		ValaIntegerLiteral* lit = NULL;
		ValaExpression* _tmp5_;
		ValaIntegerLiteral* _tmp6_;
		ValaIntegerLiteral* _tmp7_;
		ValaUnaryOperator _tmp20_;
		ValaExpression* _tmp21_;
		ValaSourceLocation _tmp22_;
		ValaSourceReference* _tmp23_;
		ValaSourceReference* _tmp24_;
		ValaUnaryExpression* _tmp25_;
		ValaExpression* _tmp26_;
		vala_parser_next (self);
		_tmp4_ = vala_parser_parse_unary_expression (self, &_inner_error_);
		op = _tmp4_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
		_tmp5_ = op;
		_tmp6_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, VALA_TYPE_INTEGER_LITERAL) ? ((ValaIntegerLiteral*) _tmp5_) : NULL);
		lit = _tmp6_;
		_tmp7_ = lit;
		if (_tmp7_ != NULL) {
			ValaUnaryOperator _tmp8_;
			_tmp8_ = operator;
			if (_tmp8_ == VALA_UNARY_OPERATOR_PLUS) {
				result = (ValaExpression*) lit;
				_vala_code_node_unref0 (op);
				return result;
			} else {
				ValaUnaryOperator _tmp9_;
				_tmp9_ = operator;
				if (_tmp9_ == VALA_UNARY_OPERATOR_MINUS) {
					ValaIntegerLiteral* _tmp10_;
					const gchar* _tmp11_;
					const gchar* _tmp12_;
					gchar* _tmp13_;
					gchar* _tmp14_;
					ValaSourceLocation _tmp15_;
					ValaSourceReference* _tmp16_;
					ValaSourceReference* _tmp17_;
					ValaIntegerLiteral* _tmp18_;
					ValaExpression* _tmp19_;
					_tmp10_ = lit;
					_tmp11_ = vala_integer_literal_get_value (_tmp10_);
					_tmp12_ = _tmp11_;
					_tmp13_ = g_strconcat ("-", _tmp12_, NULL);
					_tmp14_ = _tmp13_;
					_tmp15_ = begin;
					_tmp16_ = vala_parser_get_src (self, &_tmp15_);
					_tmp17_ = _tmp16_;
					_tmp18_ = vala_integer_literal_new (_tmp14_, _tmp17_);
					_tmp19_ = (ValaExpression*) _tmp18_;
					_vala_source_reference_unref0 (_tmp17_);
					_g_free0 (_tmp14_);
					result = _tmp19_;
					_vala_code_node_unref0 (lit);
					_vala_code_node_unref0 (op);
					return result;
				}
			}
		}
		_tmp20_ = operator;
		_tmp21_ = op;
		_tmp22_ = begin;
		_tmp23_ = vala_parser_get_src (self, &_tmp22_);
		_tmp24_ = _tmp23_;
		_tmp25_ = vala_unary_expression_new (_tmp20_, _tmp21_, _tmp24_);
		_tmp26_ = (ValaExpression*) _tmp25_;
		_vala_source_reference_unref0 (_tmp24_);
		result = _tmp26_;
		_vala_code_node_unref0 (lit);
		_vala_code_node_unref0 (op);
		return result;
	}
	_tmp27_ = vala_parser_current (self);
	switch (_tmp27_) {
		case VALA_TOKEN_TYPE_HASH:
		{
			ValaCodeContext* _tmp28_;
			gboolean _tmp29_;
			gboolean _tmp30_;
			ValaExpression* op = NULL;
			ValaExpression* _tmp33_;
			ValaExpression* _tmp34_;
			ValaSourceLocation _tmp35_;
			ValaSourceReference* _tmp36_;
			ValaSourceReference* _tmp37_;
			ValaReferenceTransferExpression* _tmp38_;
			ValaExpression* _tmp39_;
			_tmp28_ = self->priv->context;
			_tmp29_ = vala_code_context_get_deprecated (_tmp28_);
			_tmp30_ = _tmp29_;
			if (!_tmp30_) {
				ValaSourceReference* _tmp31_;
				ValaSourceReference* _tmp32_;
				_tmp31_ = vala_parser_get_last_src (self);
				_tmp32_ = _tmp31_;
				vala_report_warning (_tmp32_, "deprecated syntax, use `(owned)` cast");
				_vala_source_reference_unref0 (_tmp32_);
			}
			vala_parser_next (self);
			_tmp33_ = vala_parser_parse_unary_expression (self, &_inner_error_);
			op = _tmp33_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp34_ = op;
			_tmp35_ = begin;
			_tmp36_ = vala_parser_get_src (self, &_tmp35_);
			_tmp37_ = _tmp36_;
			_tmp38_ = vala_reference_transfer_expression_new (_tmp34_, _tmp37_);
			_tmp39_ = (ValaExpression*) _tmp38_;
			_vala_source_reference_unref0 (_tmp37_);
			result = _tmp39_;
			_vala_code_node_unref0 (op);
			return result;
		}
		case VALA_TOKEN_TYPE_OPEN_PARENS:
		{
			ValaTokenType _tmp40_;
			ValaSourceLocation _tmp99_;
			vala_parser_next (self);
			_tmp40_ = vala_parser_current (self);
			switch (_tmp40_) {
				case VALA_TOKEN_TYPE_UNOWNED:
				{
					break;
				}
				case VALA_TOKEN_TYPE_OWNED:
				{
					gboolean _tmp41_;
					vala_parser_next (self);
					_tmp41_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CLOSE_PARENS);
					if (_tmp41_) {
						ValaExpression* op = NULL;
						ValaExpression* _tmp42_;
						ValaExpression* _tmp43_;
						ValaSourceLocation _tmp44_;
						ValaSourceReference* _tmp45_;
						ValaSourceReference* _tmp46_;
						ValaReferenceTransferExpression* _tmp47_;
						ValaExpression* _tmp48_;
						_tmp42_ = vala_parser_parse_unary_expression (self, &_inner_error_);
						op = _tmp42_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								g_propagate_error (error, _inner_error_);
								return NULL;
							} else {
								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 NULL;
							}
						}
						_tmp43_ = op;
						_tmp44_ = begin;
						_tmp45_ = vala_parser_get_src (self, &_tmp44_);
						_tmp46_ = _tmp45_;
						_tmp47_ = vala_reference_transfer_expression_new (_tmp43_, _tmp46_);
						_tmp48_ = (ValaExpression*) _tmp47_;
						_vala_source_reference_unref0 (_tmp46_);
						result = _tmp48_;
						_vala_code_node_unref0 (op);
						return result;
					}
					break;
				}
				case VALA_TOKEN_TYPE_VOID:
				case VALA_TOKEN_TYPE_DYNAMIC:
				case VALA_TOKEN_TYPE_OPEN_PARENS:
				case VALA_TOKEN_TYPE_IDENTIFIER:
				{
					gboolean _tmp49_ = FALSE;
					ValaTokenType _tmp50_;
					_tmp50_ = vala_parser_current (self);
					if (_tmp50_ != VALA_TOKEN_TYPE_OPEN_PARENS) {
						_tmp49_ = TRUE;
					} else {
						gboolean _tmp51_;
						_tmp51_ = vala_parser_is_inner_array_type (self);
						_tmp49_ = _tmp51_;
					}
					if (_tmp49_) {
						ValaDataType* type = NULL;
						ValaDataType* _tmp52_;
						gboolean _tmp53_;
						_tmp52_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
						type = _tmp52_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								g_propagate_error (error, _inner_error_);
								return NULL;
							} else {
								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 NULL;
							}
						}
						_tmp53_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CLOSE_PARENS);
						if (_tmp53_) {
							ValaTokenType _tmp54_;
							_tmp54_ = vala_parser_current (self);
							switch (_tmp54_) {
								case VALA_TOKEN_TYPE_OP_NEG:
								case VALA_TOKEN_TYPE_TILDE:
								case VALA_TOKEN_TYPE_OPEN_PARENS:
								case VALA_TOKEN_TYPE_TRUE:
								case VALA_TOKEN_TYPE_FALSE:
								case VALA_TOKEN_TYPE_INTEGER_LITERAL:
								case VALA_TOKEN_TYPE_REAL_LITERAL:
								case VALA_TOKEN_TYPE_CHARACTER_LITERAL:
								case VALA_TOKEN_TYPE_STRING_LITERAL:
								case VALA_TOKEN_TYPE_TEMPLATE_STRING_LITERAL:
								case VALA_TOKEN_TYPE_VERBATIM_STRING_LITERAL:
								case VALA_TOKEN_TYPE_REGEX_LITERAL:
								case VALA_TOKEN_TYPE_NULL:
								case VALA_TOKEN_TYPE_THIS:
								case VALA_TOKEN_TYPE_BASE:
								case VALA_TOKEN_TYPE_NEW:
								case VALA_TOKEN_TYPE_YIELD:
								case VALA_TOKEN_TYPE_SIZEOF:
								case VALA_TOKEN_TYPE_TYPEOF:
								case VALA_TOKEN_TYPE_IDENTIFIER:
								case VALA_TOKEN_TYPE_PARAMS:
								{
									ValaExpression* inner = NULL;
									ValaExpression* _tmp55_;
									ValaExpression* _tmp56_;
									ValaDataType* _tmp57_;
									ValaSourceLocation _tmp58_;
									ValaSourceReference* _tmp59_;
									ValaSourceReference* _tmp60_;
									ValaCastExpression* _tmp61_;
									ValaExpression* _tmp62_;
									_tmp55_ = vala_parser_parse_unary_expression (self, &_inner_error_);
									inner = _tmp55_;
									if (G_UNLIKELY (_inner_error_ != NULL)) {
										if (_inner_error_->domain == VALA_PARSE_ERROR) {
											g_propagate_error (error, _inner_error_);
											_vala_code_node_unref0 (type);
											return NULL;
										} else {
											_vala_code_node_unref0 (type);
											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 NULL;
										}
									}
									_tmp56_ = inner;
									_tmp57_ = type;
									_tmp58_ = begin;
									_tmp59_ = vala_parser_get_src (self, &_tmp58_);
									_tmp60_ = _tmp59_;
									_tmp61_ = vala_cast_expression_new (_tmp56_, _tmp57_, _tmp60_, FALSE);
									_tmp62_ = (ValaExpression*) _tmp61_;
									_vala_source_reference_unref0 (_tmp60_);
									result = _tmp62_;
									_vala_code_node_unref0 (inner);
									_vala_code_node_unref0 (type);
									return result;
								}
								case VALA_TOKEN_TYPE_STAR:
								{
									ValaExpression* op = NULL;
									ValaExpression* _tmp63_;
									ValaPointerIndirection* inner = NULL;
									ValaExpression* _tmp64_;
									ValaSourceLocation _tmp65_;
									ValaSourceReference* _tmp66_;
									ValaSourceReference* _tmp67_;
									ValaPointerIndirection* _tmp68_;
									ValaPointerIndirection* _tmp69_;
									ValaPointerIndirection* _tmp70_;
									ValaDataType* _tmp71_;
									ValaSourceLocation _tmp72_;
									ValaSourceReference* _tmp73_;
									ValaSourceReference* _tmp74_;
									ValaCastExpression* _tmp75_;
									ValaExpression* _tmp76_;
									vala_parser_next (self);
									_tmp63_ = vala_parser_parse_unary_expression (self, &_inner_error_);
									op = _tmp63_;
									if (G_UNLIKELY (_inner_error_ != NULL)) {
										if (_inner_error_->domain == VALA_PARSE_ERROR) {
											g_propagate_error (error, _inner_error_);
											_vala_code_node_unref0 (type);
											return NULL;
										} else {
											_vala_code_node_unref0 (type);
											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 NULL;
										}
									}
									_tmp64_ = op;
									_tmp65_ = begin;
									_tmp66_ = vala_parser_get_src (self, &_tmp65_);
									_tmp67_ = _tmp66_;
									_tmp68_ = vala_pointer_indirection_new (_tmp64_, _tmp67_);
									_tmp69_ = _tmp68_;
									_vala_source_reference_unref0 (_tmp67_);
									inner = _tmp69_;
									_tmp70_ = inner;
									_tmp71_ = type;
									_tmp72_ = begin;
									_tmp73_ = vala_parser_get_src (self, &_tmp72_);
									_tmp74_ = _tmp73_;
									_tmp75_ = vala_cast_expression_new ((ValaExpression*) _tmp70_, _tmp71_, _tmp74_, FALSE);
									_tmp76_ = (ValaExpression*) _tmp75_;
									_vala_source_reference_unref0 (_tmp74_);
									result = _tmp76_;
									_vala_code_node_unref0 (inner);
									_vala_code_node_unref0 (op);
									_vala_code_node_unref0 (type);
									return result;
								}
								case VALA_TOKEN_TYPE_BITWISE_AND:
								{
									ValaExpression* op = NULL;
									ValaExpression* _tmp77_;
									ValaAddressofExpression* inner = NULL;
									ValaExpression* _tmp78_;
									ValaSourceLocation _tmp79_;
									ValaSourceReference* _tmp80_;
									ValaSourceReference* _tmp81_;
									ValaAddressofExpression* _tmp82_;
									ValaAddressofExpression* _tmp83_;
									ValaAddressofExpression* _tmp84_;
									ValaDataType* _tmp85_;
									ValaSourceLocation _tmp86_;
									ValaSourceReference* _tmp87_;
									ValaSourceReference* _tmp88_;
									ValaCastExpression* _tmp89_;
									ValaExpression* _tmp90_;
									vala_parser_next (self);
									_tmp77_ = vala_parser_parse_unary_expression (self, &_inner_error_);
									op = _tmp77_;
									if (G_UNLIKELY (_inner_error_ != NULL)) {
										if (_inner_error_->domain == VALA_PARSE_ERROR) {
											g_propagate_error (error, _inner_error_);
											_vala_code_node_unref0 (type);
											return NULL;
										} else {
											_vala_code_node_unref0 (type);
											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 NULL;
										}
									}
									_tmp78_ = op;
									_tmp79_ = begin;
									_tmp80_ = vala_parser_get_src (self, &_tmp79_);
									_tmp81_ = _tmp80_;
									_tmp82_ = vala_addressof_expression_new (_tmp78_, _tmp81_);
									_tmp83_ = _tmp82_;
									_vala_source_reference_unref0 (_tmp81_);
									inner = _tmp83_;
									_tmp84_ = inner;
									_tmp85_ = type;
									_tmp86_ = begin;
									_tmp87_ = vala_parser_get_src (self, &_tmp86_);
									_tmp88_ = _tmp87_;
									_tmp89_ = vala_cast_expression_new ((ValaExpression*) _tmp84_, _tmp85_, _tmp88_, FALSE);
									_tmp90_ = (ValaExpression*) _tmp89_;
									_vala_source_reference_unref0 (_tmp88_);
									result = _tmp90_;
									_vala_code_node_unref0 (inner);
									_vala_code_node_unref0 (op);
									_vala_code_node_unref0 (type);
									return result;
								}
								default:
								{
									break;
								}
							}
						}
						_vala_code_node_unref0 (type);
					}
					break;
				}
				case VALA_TOKEN_TYPE_OP_NEG:
				{
					gboolean _tmp91_;
					vala_parser_next (self);
					_tmp91_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CLOSE_PARENS);
					if (_tmp91_) {
						ValaExpression* inner = NULL;
						ValaExpression* _tmp92_;
						ValaExpression* _tmp93_;
						ValaSourceLocation _tmp94_;
						ValaSourceReference* _tmp95_;
						ValaSourceReference* _tmp96_;
						ValaCastExpression* _tmp97_;
						ValaExpression* _tmp98_;
						_tmp92_ = vala_parser_parse_unary_expression (self, &_inner_error_);
						inner = _tmp92_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								g_propagate_error (error, _inner_error_);
								return NULL;
							} else {
								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 NULL;
							}
						}
						_tmp93_ = inner;
						_tmp94_ = begin;
						_tmp95_ = vala_parser_get_src (self, &_tmp94_);
						_tmp96_ = _tmp95_;
						_tmp97_ = vala_cast_expression_new_non_null (_tmp93_, _tmp96_);
						_tmp98_ = (ValaExpression*) _tmp97_;
						_vala_source_reference_unref0 (_tmp96_);
						result = _tmp98_;
						_vala_code_node_unref0 (inner);
						return result;
					}
					break;
				}
				default:
				{
					break;
				}
			}
			_tmp99_ = begin;
			vala_parser_rollback (self, &_tmp99_);
			break;
		}
		case VALA_TOKEN_TYPE_STAR:
		{
			ValaExpression* op = NULL;
			ValaExpression* _tmp100_;
			ValaExpression* _tmp101_;
			ValaSourceLocation _tmp102_;
			ValaSourceReference* _tmp103_;
			ValaSourceReference* _tmp104_;
			ValaPointerIndirection* _tmp105_;
			ValaExpression* _tmp106_;
			vala_parser_next (self);
			_tmp100_ = vala_parser_parse_unary_expression (self, &_inner_error_);
			op = _tmp100_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp101_ = op;
			_tmp102_ = begin;
			_tmp103_ = vala_parser_get_src (self, &_tmp102_);
			_tmp104_ = _tmp103_;
			_tmp105_ = vala_pointer_indirection_new (_tmp101_, _tmp104_);
			_tmp106_ = (ValaExpression*) _tmp105_;
			_vala_source_reference_unref0 (_tmp104_);
			result = _tmp106_;
			_vala_code_node_unref0 (op);
			return result;
		}
		case VALA_TOKEN_TYPE_BITWISE_AND:
		{
			ValaExpression* op = NULL;
			ValaExpression* _tmp107_;
			ValaExpression* _tmp108_;
			ValaSourceLocation _tmp109_;
			ValaSourceReference* _tmp110_;
			ValaSourceReference* _tmp111_;
			ValaAddressofExpression* _tmp112_;
			ValaExpression* _tmp113_;
			vala_parser_next (self);
			_tmp107_ = vala_parser_parse_unary_expression (self, &_inner_error_);
			op = _tmp107_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp108_ = op;
			_tmp109_ = begin;
			_tmp110_ = vala_parser_get_src (self, &_tmp109_);
			_tmp111_ = _tmp110_;
			_tmp112_ = vala_addressof_expression_new (_tmp108_, _tmp111_);
			_tmp113_ = (ValaExpression*) _tmp112_;
			_vala_source_reference_unref0 (_tmp111_);
			result = _tmp113_;
			_vala_code_node_unref0 (op);
			return result;
		}
		default:
		{
			break;
		}
	}
	_tmp114_ = vala_parser_parse_primary_expression (self, &_inner_error_);
	expr = _tmp114_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	result = expr;
	return result;
}


static ValaBinaryOperator vala_parser_get_binary_operator (ValaParser* self, ValaTokenType token_type) {
	ValaBinaryOperator result = 0;
	ValaTokenType _tmp0_;
	g_return_val_if_fail (self != NULL, 0);
	_tmp0_ = token_type;
	switch (_tmp0_) {
		case VALA_TOKEN_TYPE_STAR:
		{
			result = VALA_BINARY_OPERATOR_MUL;
			return result;
		}
		case VALA_TOKEN_TYPE_DIV:
		{
			result = VALA_BINARY_OPERATOR_DIV;
			return result;
		}
		case VALA_TOKEN_TYPE_PERCENT:
		{
			result = VALA_BINARY_OPERATOR_MOD;
			return result;
		}
		case VALA_TOKEN_TYPE_PLUS:
		{
			result = VALA_BINARY_OPERATOR_PLUS;
			return result;
		}
		case VALA_TOKEN_TYPE_MINUS:
		{
			result = VALA_BINARY_OPERATOR_MINUS;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_LT:
		{
			result = VALA_BINARY_OPERATOR_LESS_THAN;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_GT:
		{
			result = VALA_BINARY_OPERATOR_GREATER_THAN;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_LE:
		{
			result = VALA_BINARY_OPERATOR_LESS_THAN_OR_EQUAL;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_GE:
		{
			result = VALA_BINARY_OPERATOR_GREATER_THAN_OR_EQUAL;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_EQ:
		{
			result = VALA_BINARY_OPERATOR_EQUALITY;
			return result;
		}
		case VALA_TOKEN_TYPE_OP_NE:
		{
			result = VALA_BINARY_OPERATOR_INEQUALITY;
			return result;
		}
		default:
		{
			result = VALA_BINARY_OPERATOR_NONE;
			return result;
		}
	}
}


static ValaExpression* vala_parser_parse_multiplicative_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	gboolean found = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_unary_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	found = TRUE;
	while (TRUE) {
		gboolean _tmp2_;
		ValaBinaryOperator operator = 0;
		ValaTokenType _tmp3_;
		ValaBinaryOperator _tmp4_;
		ValaBinaryOperator _tmp5_;
		_tmp2_ = found;
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_current (self);
		_tmp4_ = vala_parser_get_binary_operator (self, _tmp3_);
		operator = _tmp4_;
		_tmp5_ = operator;
		switch (_tmp5_) {
			case VALA_BINARY_OPERATOR_MUL:
			case VALA_BINARY_OPERATOR_DIV:
			case VALA_BINARY_OPERATOR_MOD:
			{
				ValaExpression* right = NULL;
				ValaExpression* _tmp6_;
				ValaBinaryOperator _tmp7_;
				ValaExpression* _tmp8_;
				ValaExpression* _tmp9_;
				ValaSourceLocation _tmp10_;
				ValaSourceReference* _tmp11_;
				ValaSourceReference* _tmp12_;
				ValaBinaryExpression* _tmp13_;
				vala_parser_next (self);
				_tmp6_ = vala_parser_parse_unary_expression (self, &_inner_error_);
				right = _tmp6_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (left);
						return NULL;
					} else {
						_vala_code_node_unref0 (left);
						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 NULL;
					}
				}
				_tmp7_ = operator;
				_tmp8_ = left;
				_tmp9_ = right;
				_tmp10_ = begin;
				_tmp11_ = vala_parser_get_src (self, &_tmp10_);
				_tmp12_ = _tmp11_;
				_tmp13_ = vala_binary_expression_new (_tmp7_, _tmp8_, _tmp9_, _tmp12_);
				_vala_code_node_unref0 (left);
				left = (ValaExpression*) _tmp13_;
				_vala_source_reference_unref0 (_tmp12_);
				_vala_code_node_unref0 (right);
				break;
			}
			default:
			{
				found = FALSE;
				break;
			}
		}
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_additive_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	gboolean found = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_multiplicative_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	found = TRUE;
	while (TRUE) {
		gboolean _tmp2_;
		ValaBinaryOperator operator = 0;
		ValaTokenType _tmp3_;
		ValaBinaryOperator _tmp4_;
		ValaBinaryOperator _tmp5_;
		_tmp2_ = found;
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_current (self);
		_tmp4_ = vala_parser_get_binary_operator (self, _tmp3_);
		operator = _tmp4_;
		_tmp5_ = operator;
		switch (_tmp5_) {
			case VALA_BINARY_OPERATOR_PLUS:
			case VALA_BINARY_OPERATOR_MINUS:
			{
				ValaExpression* right = NULL;
				ValaExpression* _tmp6_;
				ValaBinaryOperator _tmp7_;
				ValaExpression* _tmp8_;
				ValaExpression* _tmp9_;
				ValaSourceLocation _tmp10_;
				ValaSourceReference* _tmp11_;
				ValaSourceReference* _tmp12_;
				ValaBinaryExpression* _tmp13_;
				vala_parser_next (self);
				_tmp6_ = vala_parser_parse_multiplicative_expression (self, &_inner_error_);
				right = _tmp6_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (left);
						return NULL;
					} else {
						_vala_code_node_unref0 (left);
						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 NULL;
					}
				}
				_tmp7_ = operator;
				_tmp8_ = left;
				_tmp9_ = right;
				_tmp10_ = begin;
				_tmp11_ = vala_parser_get_src (self, &_tmp10_);
				_tmp12_ = _tmp11_;
				_tmp13_ = vala_binary_expression_new (_tmp7_, _tmp8_, _tmp9_, _tmp12_);
				_vala_code_node_unref0 (left);
				left = (ValaExpression*) _tmp13_;
				_vala_source_reference_unref0 (_tmp12_);
				_vala_code_node_unref0 (right);
				break;
			}
			default:
			{
				found = FALSE;
				break;
			}
		}
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_shift_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	gboolean found = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_additive_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	found = TRUE;
	while (TRUE) {
		gboolean _tmp2_;
		ValaTokenType _tmp3_;
		_tmp2_ = found;
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_current (self);
		switch (_tmp3_) {
			case VALA_TOKEN_TYPE_OP_SHIFT_LEFT:
			{
				ValaExpression* right = NULL;
				ValaExpression* _tmp4_;
				ValaExpression* _tmp5_;
				ValaExpression* _tmp6_;
				ValaSourceLocation _tmp7_;
				ValaSourceReference* _tmp8_;
				ValaSourceReference* _tmp9_;
				ValaBinaryExpression* _tmp10_;
				vala_parser_next (self);
				_tmp4_ = vala_parser_parse_additive_expression (self, &_inner_error_);
				right = _tmp4_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (left);
						return NULL;
					} else {
						_vala_code_node_unref0 (left);
						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 NULL;
					}
				}
				_tmp5_ = left;
				_tmp6_ = right;
				_tmp7_ = begin;
				_tmp8_ = vala_parser_get_src (self, &_tmp7_);
				_tmp9_ = _tmp8_;
				_tmp10_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_SHIFT_LEFT, _tmp5_, _tmp6_, _tmp9_);
				_vala_code_node_unref0 (left);
				left = (ValaExpression*) _tmp10_;
				_vala_source_reference_unref0 (_tmp9_);
				_vala_code_node_unref0 (right);
				break;
			}
			case VALA_TOKEN_TYPE_OP_GT:
			{
				gchar* first_gt_pos = NULL;
				ValaParserTokenInfo* _tmp11_;
				gint _tmp11__length1;
				gint _tmp12_;
				ValaParserTokenInfo _tmp13_;
				ValaSourceLocation _tmp14_;
				gchar* _tmp15_;
				gboolean _tmp16_ = FALSE;
				ValaTokenType _tmp17_;
				_tmp11_ = self->priv->tokens;
				_tmp11__length1 = self->priv->tokens_length1;
				_tmp12_ = self->priv->index;
				_tmp13_ = _tmp11_[_tmp12_];
				_tmp14_ = _tmp13_.begin;
				_tmp15_ = _tmp14_.pos;
				first_gt_pos = _tmp15_;
				vala_parser_next (self);
				_tmp17_ = vala_parser_current (self);
				if (_tmp17_ == VALA_TOKEN_TYPE_OP_GT) {
					ValaParserTokenInfo* _tmp18_;
					gint _tmp18__length1;
					gint _tmp19_;
					ValaParserTokenInfo _tmp20_;
					ValaSourceLocation _tmp21_;
					gchar* _tmp22_;
					gchar* _tmp23_;
					_tmp18_ = self->priv->tokens;
					_tmp18__length1 = self->priv->tokens_length1;
					_tmp19_ = self->priv->index;
					_tmp20_ = _tmp18_[_tmp19_];
					_tmp21_ = _tmp20_.begin;
					_tmp22_ = _tmp21_.pos;
					_tmp23_ = first_gt_pos;
					_tmp16_ = _tmp22_ == (_tmp23_ + 1);
				} else {
					_tmp16_ = FALSE;
				}
				if (_tmp16_) {
					ValaExpression* right = NULL;
					ValaExpression* _tmp24_;
					ValaExpression* _tmp25_;
					ValaExpression* _tmp26_;
					ValaSourceLocation _tmp27_;
					ValaSourceReference* _tmp28_;
					ValaSourceReference* _tmp29_;
					ValaBinaryExpression* _tmp30_;
					vala_parser_next (self);
					_tmp24_ = vala_parser_parse_additive_expression (self, &_inner_error_);
					right = _tmp24_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (left);
							return NULL;
						} else {
							_vala_code_node_unref0 (left);
							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 NULL;
						}
					}
					_tmp25_ = left;
					_tmp26_ = right;
					_tmp27_ = begin;
					_tmp28_ = vala_parser_get_src (self, &_tmp27_);
					_tmp29_ = _tmp28_;
					_tmp30_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_SHIFT_RIGHT, _tmp25_, _tmp26_, _tmp29_);
					_vala_code_node_unref0 (left);
					left = (ValaExpression*) _tmp30_;
					_vala_source_reference_unref0 (_tmp29_);
					_vala_code_node_unref0 (right);
				} else {
					vala_parser_prev (self);
					found = FALSE;
				}
				break;
			}
			default:
			{
				found = FALSE;
				break;
			}
		}
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_relational_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	gboolean first = FALSE;
	gboolean found = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_shift_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	first = TRUE;
	found = TRUE;
	while (TRUE) {
		gboolean _tmp2_;
		ValaBinaryOperator operator = 0;
		ValaTokenType _tmp3_;
		ValaBinaryOperator _tmp4_;
		ValaBinaryOperator _tmp5_;
		_tmp2_ = found;
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_current (self);
		_tmp4_ = vala_parser_get_binary_operator (self, _tmp3_);
		operator = _tmp4_;
		_tmp5_ = operator;
		switch (_tmp5_) {
			case VALA_BINARY_OPERATOR_LESS_THAN:
			case VALA_BINARY_OPERATOR_LESS_THAN_OR_EQUAL:
			case VALA_BINARY_OPERATOR_GREATER_THAN_OR_EQUAL:
			{
				ValaExpression* right = NULL;
				ValaExpression* _tmp6_;
				ValaBinaryOperator _tmp7_;
				ValaExpression* _tmp8_;
				ValaExpression* _tmp9_;
				ValaSourceLocation _tmp10_;
				ValaSourceReference* _tmp11_;
				ValaSourceReference* _tmp12_;
				ValaBinaryExpression* _tmp13_;
				gboolean _tmp14_;
				vala_parser_next (self);
				_tmp6_ = vala_parser_parse_shift_expression (self, &_inner_error_);
				right = _tmp6_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (left);
						return NULL;
					} else {
						_vala_code_node_unref0 (left);
						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 NULL;
					}
				}
				_tmp7_ = operator;
				_tmp8_ = left;
				_tmp9_ = right;
				_tmp10_ = begin;
				_tmp11_ = vala_parser_get_src (self, &_tmp10_);
				_tmp12_ = _tmp11_;
				_tmp13_ = vala_binary_expression_new (_tmp7_, _tmp8_, _tmp9_, _tmp12_);
				_vala_code_node_unref0 (left);
				left = (ValaExpression*) _tmp13_;
				_vala_source_reference_unref0 (_tmp12_);
				_tmp14_ = first;
				if (!_tmp14_) {
					ValaBinaryExpression* be = NULL;
					ValaExpression* _tmp15_;
					ValaBinaryExpression* _tmp16_;
					ValaBinaryExpression* _tmp17_;
					_tmp15_ = left;
					_tmp16_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, VALA_TYPE_BINARY_EXPRESSION, ValaBinaryExpression));
					be = _tmp16_;
					_tmp17_ = be;
					_tmp17_->chained = TRUE;
					_vala_code_node_unref0 (be);
				}
				first = FALSE;
				_vala_code_node_unref0 (right);
				break;
			}
			case VALA_BINARY_OPERATOR_GREATER_THAN:
			{
				gboolean _tmp18_ = FALSE;
				ValaTokenType _tmp19_;
				vala_parser_next (self);
				_tmp19_ = vala_parser_current (self);
				if (_tmp19_ != VALA_TOKEN_TYPE_OP_GT) {
					ValaTokenType _tmp20_;
					_tmp20_ = vala_parser_current (self);
					_tmp18_ = _tmp20_ != VALA_TOKEN_TYPE_OP_GE;
				} else {
					_tmp18_ = FALSE;
				}
				if (_tmp18_) {
					ValaExpression* right = NULL;
					ValaExpression* _tmp21_;
					ValaBinaryOperator _tmp22_;
					ValaExpression* _tmp23_;
					ValaExpression* _tmp24_;
					ValaSourceLocation _tmp25_;
					ValaSourceReference* _tmp26_;
					ValaSourceReference* _tmp27_;
					ValaBinaryExpression* _tmp28_;
					gboolean _tmp29_;
					_tmp21_ = vala_parser_parse_shift_expression (self, &_inner_error_);
					right = _tmp21_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (left);
							return NULL;
						} else {
							_vala_code_node_unref0 (left);
							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 NULL;
						}
					}
					_tmp22_ = operator;
					_tmp23_ = left;
					_tmp24_ = right;
					_tmp25_ = begin;
					_tmp26_ = vala_parser_get_src (self, &_tmp25_);
					_tmp27_ = _tmp26_;
					_tmp28_ = vala_binary_expression_new (_tmp22_, _tmp23_, _tmp24_, _tmp27_);
					_vala_code_node_unref0 (left);
					left = (ValaExpression*) _tmp28_;
					_vala_source_reference_unref0 (_tmp27_);
					_tmp29_ = first;
					if (!_tmp29_) {
						ValaBinaryExpression* be = NULL;
						ValaExpression* _tmp30_;
						ValaBinaryExpression* _tmp31_;
						ValaBinaryExpression* _tmp32_;
						_tmp30_ = left;
						_tmp31_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp30_, VALA_TYPE_BINARY_EXPRESSION, ValaBinaryExpression));
						be = _tmp31_;
						_tmp32_ = be;
						_tmp32_->chained = TRUE;
						_vala_code_node_unref0 (be);
					}
					first = FALSE;
					_vala_code_node_unref0 (right);
				} else {
					vala_parser_prev (self);
					found = FALSE;
				}
				break;
			}
			default:
			{
				ValaTokenType _tmp33_;
				_tmp33_ = vala_parser_current (self);
				switch (_tmp33_) {
					case VALA_TOKEN_TYPE_IS:
					{
						ValaDataType* type = NULL;
						ValaDataType* _tmp34_;
						ValaExpression* _tmp35_;
						ValaDataType* _tmp36_;
						ValaSourceLocation _tmp37_;
						ValaSourceReference* _tmp38_;
						ValaSourceReference* _tmp39_;
						ValaTypeCheck* _tmp40_;
						vala_parser_next (self);
						_tmp34_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
						type = _tmp34_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								g_propagate_error (error, _inner_error_);
								_vala_code_node_unref0 (left);
								return NULL;
							} else {
								_vala_code_node_unref0 (left);
								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 NULL;
							}
						}
						_tmp35_ = left;
						_tmp36_ = type;
						_tmp37_ = begin;
						_tmp38_ = vala_parser_get_src (self, &_tmp37_);
						_tmp39_ = _tmp38_;
						_tmp40_ = vala_typecheck_new (_tmp35_, _tmp36_, _tmp39_);
						_vala_code_node_unref0 (left);
						left = (ValaExpression*) _tmp40_;
						_vala_source_reference_unref0 (_tmp39_);
						_vala_code_node_unref0 (type);
						break;
					}
					case VALA_TOKEN_TYPE_AS:
					{
						ValaDataType* type = NULL;
						ValaDataType* _tmp41_;
						ValaExpression* _tmp42_;
						ValaDataType* _tmp43_;
						ValaSourceLocation _tmp44_;
						ValaSourceReference* _tmp45_;
						ValaSourceReference* _tmp46_;
						ValaCastExpression* _tmp47_;
						vala_parser_next (self);
						_tmp41_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
						type = _tmp41_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								g_propagate_error (error, _inner_error_);
								_vala_code_node_unref0 (left);
								return NULL;
							} else {
								_vala_code_node_unref0 (left);
								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 NULL;
							}
						}
						_tmp42_ = left;
						_tmp43_ = type;
						_tmp44_ = begin;
						_tmp45_ = vala_parser_get_src (self, &_tmp44_);
						_tmp46_ = _tmp45_;
						_tmp47_ = vala_cast_expression_new (_tmp42_, _tmp43_, _tmp46_, TRUE);
						_vala_code_node_unref0 (left);
						left = (ValaExpression*) _tmp47_;
						_vala_source_reference_unref0 (_tmp46_);
						_vala_code_node_unref0 (type);
						break;
					}
					default:
					{
						found = FALSE;
						break;
					}
				}
				break;
			}
		}
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_equality_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	gboolean found = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_relational_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	found = TRUE;
	while (TRUE) {
		gboolean _tmp2_;
		ValaBinaryOperator operator = 0;
		ValaTokenType _tmp3_;
		ValaBinaryOperator _tmp4_;
		ValaBinaryOperator _tmp5_;
		_tmp2_ = found;
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_current (self);
		_tmp4_ = vala_parser_get_binary_operator (self, _tmp3_);
		operator = _tmp4_;
		_tmp5_ = operator;
		switch (_tmp5_) {
			case VALA_BINARY_OPERATOR_EQUALITY:
			case VALA_BINARY_OPERATOR_INEQUALITY:
			{
				ValaExpression* right = NULL;
				ValaExpression* _tmp6_;
				ValaBinaryOperator _tmp7_;
				ValaExpression* _tmp8_;
				ValaExpression* _tmp9_;
				ValaSourceLocation _tmp10_;
				ValaSourceReference* _tmp11_;
				ValaSourceReference* _tmp12_;
				ValaBinaryExpression* _tmp13_;
				vala_parser_next (self);
				_tmp6_ = vala_parser_parse_relational_expression (self, &_inner_error_);
				right = _tmp6_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (left);
						return NULL;
					} else {
						_vala_code_node_unref0 (left);
						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 NULL;
					}
				}
				_tmp7_ = operator;
				_tmp8_ = left;
				_tmp9_ = right;
				_tmp10_ = begin;
				_tmp11_ = vala_parser_get_src (self, &_tmp10_);
				_tmp12_ = _tmp11_;
				_tmp13_ = vala_binary_expression_new (_tmp7_, _tmp8_, _tmp9_, _tmp12_);
				_vala_code_node_unref0 (left);
				left = (ValaExpression*) _tmp13_;
				_vala_source_reference_unref0 (_tmp12_);
				_vala_code_node_unref0 (right);
				break;
			}
			default:
			{
				found = FALSE;
				break;
			}
		}
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_and_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_equality_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	while (TRUE) {
		gboolean _tmp2_;
		ValaExpression* right = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		ValaSourceLocation _tmp6_;
		ValaSourceReference* _tmp7_;
		ValaSourceReference* _tmp8_;
		ValaBinaryExpression* _tmp9_;
		_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_BITWISE_AND);
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_parse_equality_expression (self, &_inner_error_);
		right = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (left);
				return NULL;
			} else {
				_vala_code_node_unref0 (left);
				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 NULL;
			}
		}
		_tmp4_ = left;
		_tmp5_ = right;
		_tmp6_ = begin;
		_tmp7_ = vala_parser_get_src (self, &_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_BITWISE_AND, _tmp4_, _tmp5_, _tmp8_);
		_vala_code_node_unref0 (left);
		left = (ValaExpression*) _tmp9_;
		_vala_source_reference_unref0 (_tmp8_);
		_vala_code_node_unref0 (right);
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_exclusive_or_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_and_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	while (TRUE) {
		gboolean _tmp2_;
		ValaExpression* right = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		ValaSourceLocation _tmp6_;
		ValaSourceReference* _tmp7_;
		ValaSourceReference* _tmp8_;
		ValaBinaryExpression* _tmp9_;
		_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CARRET);
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_parse_and_expression (self, &_inner_error_);
		right = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (left);
				return NULL;
			} else {
				_vala_code_node_unref0 (left);
				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 NULL;
			}
		}
		_tmp4_ = left;
		_tmp5_ = right;
		_tmp6_ = begin;
		_tmp7_ = vala_parser_get_src (self, &_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_BITWISE_XOR, _tmp4_, _tmp5_, _tmp8_);
		_vala_code_node_unref0 (left);
		left = (ValaExpression*) _tmp9_;
		_vala_source_reference_unref0 (_tmp8_);
		_vala_code_node_unref0 (right);
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_inclusive_or_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_exclusive_or_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	while (TRUE) {
		gboolean _tmp2_;
		ValaExpression* right = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		ValaSourceLocation _tmp6_;
		ValaSourceReference* _tmp7_;
		ValaSourceReference* _tmp8_;
		ValaBinaryExpression* _tmp9_;
		_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_BITWISE_OR);
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_parse_exclusive_or_expression (self, &_inner_error_);
		right = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (left);
				return NULL;
			} else {
				_vala_code_node_unref0 (left);
				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 NULL;
			}
		}
		_tmp4_ = left;
		_tmp5_ = right;
		_tmp6_ = begin;
		_tmp7_ = vala_parser_get_src (self, &_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_BITWISE_OR, _tmp4_, _tmp5_, _tmp8_);
		_vala_code_node_unref0 (left);
		left = (ValaExpression*) _tmp9_;
		_vala_source_reference_unref0 (_tmp8_);
		_vala_code_node_unref0 (right);
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_in_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_inclusive_or_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	while (TRUE) {
		gboolean _tmp2_;
		ValaExpression* right = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		ValaSourceLocation _tmp6_;
		ValaSourceReference* _tmp7_;
		ValaSourceReference* _tmp8_;
		ValaBinaryExpression* _tmp9_;
		_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_IN);
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_parse_inclusive_or_expression (self, &_inner_error_);
		right = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (left);
				return NULL;
			} else {
				_vala_code_node_unref0 (left);
				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 NULL;
			}
		}
		_tmp4_ = left;
		_tmp5_ = right;
		_tmp6_ = begin;
		_tmp7_ = vala_parser_get_src (self, &_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_IN, _tmp4_, _tmp5_, _tmp8_);
		_vala_code_node_unref0 (left);
		left = (ValaExpression*) _tmp9_;
		_vala_source_reference_unref0 (_tmp8_);
		_vala_code_node_unref0 (right);
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_conditional_and_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_in_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	while (TRUE) {
		gboolean _tmp2_;
		ValaExpression* right = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		ValaSourceLocation _tmp6_;
		ValaSourceReference* _tmp7_;
		ValaSourceReference* _tmp8_;
		ValaBinaryExpression* _tmp9_;
		_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OP_AND);
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_parse_in_expression (self, &_inner_error_);
		right = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (left);
				return NULL;
			} else {
				_vala_code_node_unref0 (left);
				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 NULL;
			}
		}
		_tmp4_ = left;
		_tmp5_ = right;
		_tmp6_ = begin;
		_tmp7_ = vala_parser_get_src (self, &_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_AND, _tmp4_, _tmp5_, _tmp8_);
		_vala_code_node_unref0 (left);
		left = (ValaExpression*) _tmp9_;
		_vala_source_reference_unref0 (_tmp8_);
		_vala_code_node_unref0 (right);
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_conditional_or_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_conditional_and_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	while (TRUE) {
		gboolean _tmp2_;
		ValaExpression* right = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		ValaSourceLocation _tmp6_;
		ValaSourceReference* _tmp7_;
		ValaSourceReference* _tmp8_;
		ValaBinaryExpression* _tmp9_;
		_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OP_OR);
		if (!_tmp2_) {
			break;
		}
		_tmp3_ = vala_parser_parse_conditional_and_expression (self, &_inner_error_);
		right = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (left);
				return NULL;
			} else {
				_vala_code_node_unref0 (left);
				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 NULL;
			}
		}
		_tmp4_ = left;
		_tmp5_ = right;
		_tmp6_ = begin;
		_tmp7_ = vala_parser_get_src (self, &_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_OR, _tmp4_, _tmp5_, _tmp8_);
		_vala_code_node_unref0 (left);
		left = (ValaExpression*) _tmp9_;
		_vala_source_reference_unref0 (_tmp8_);
		_vala_code_node_unref0 (right);
	}
	result = left;
	return result;
}


static ValaExpression* vala_parser_parse_coalescing_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* left = NULL;
	ValaExpression* _tmp1_;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_conditional_or_expression (self, &_inner_error_);
	left = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OP_COALESCING);
	if (_tmp2_) {
		ValaExpression* right = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		ValaSourceLocation _tmp6_;
		ValaSourceReference* _tmp7_;
		ValaSourceReference* _tmp8_;
		ValaBinaryExpression* _tmp9_;
		ValaExpression* _tmp10_;
		_tmp3_ = vala_parser_parse_coalescing_expression (self, &_inner_error_);
		right = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (left);
				return NULL;
			} else {
				_vala_code_node_unref0 (left);
				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 NULL;
			}
		}
		_tmp4_ = left;
		_tmp5_ = right;
		_tmp6_ = begin;
		_tmp7_ = vala_parser_get_src (self, &_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_binary_expression_new (VALA_BINARY_OPERATOR_COALESCE, _tmp4_, _tmp5_, _tmp8_);
		_tmp10_ = (ValaExpression*) _tmp9_;
		_vala_source_reference_unref0 (_tmp8_);
		result = _tmp10_;
		_vala_code_node_unref0 (right);
		_vala_code_node_unref0 (left);
		return result;
	} else {
		result = left;
		return result;
	}
	_vala_code_node_unref0 (left);
}


static ValaExpression* vala_parser_parse_conditional_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* condition = NULL;
	ValaExpression* _tmp1_;
	gboolean _tmp2_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_coalescing_expression (self, &_inner_error_);
	condition = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_INTERR);
	if (_tmp2_) {
		ValaExpression* true_expr = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* false_expr = NULL;
		ValaExpression* _tmp4_;
		ValaExpression* _tmp5_;
		ValaExpression* _tmp6_;
		ValaExpression* _tmp7_;
		ValaSourceLocation _tmp8_;
		ValaSourceReference* _tmp9_;
		ValaSourceReference* _tmp10_;
		ValaConditionalExpression* _tmp11_;
		ValaExpression* _tmp12_;
		_tmp3_ = vala_parser_parse_expression (self, &_inner_error_);
		true_expr = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (condition);
				return NULL;
			} else {
				_vala_code_node_unref0 (condition);
				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 NULL;
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_COLON, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (true_expr);
				_vala_code_node_unref0 (condition);
				return NULL;
			} else {
				_vala_code_node_unref0 (true_expr);
				_vala_code_node_unref0 (condition);
				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 NULL;
			}
		}
		_tmp4_ = vala_parser_parse_expression (self, &_inner_error_);
		false_expr = _tmp4_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (true_expr);
				_vala_code_node_unref0 (condition);
				return NULL;
			} else {
				_vala_code_node_unref0 (true_expr);
				_vala_code_node_unref0 (condition);
				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 NULL;
			}
		}
		_tmp5_ = condition;
		_tmp6_ = true_expr;
		_tmp7_ = false_expr;
		_tmp8_ = begin;
		_tmp9_ = vala_parser_get_src (self, &_tmp8_);
		_tmp10_ = _tmp9_;
		_tmp11_ = vala_conditional_expression_new (_tmp5_, _tmp6_, _tmp7_, _tmp10_);
		_tmp12_ = (ValaExpression*) _tmp11_;
		_vala_source_reference_unref0 (_tmp10_);
		result = _tmp12_;
		_vala_code_node_unref0 (false_expr);
		_vala_code_node_unref0 (true_expr);
		_vala_code_node_unref0 (condition);
		return result;
	} else {
		result = condition;
		return result;
	}
	_vala_code_node_unref0 (condition);
}


static ValaParameter* vala_parser_parse_lambda_parameter (ValaParser* self, GError** error) {
	ValaParameter* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaParameterDirection direction = 0;
	gboolean _tmp1_;
	gchar* id = NULL;
	gchar* _tmp3_;
	ValaParameter* param = NULL;
	ValaSourceLocation _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaParameter* _tmp7_;
	ValaParameter* _tmp8_;
	ValaParameter* _tmp9_;
	ValaParameterDirection _tmp10_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	direction = VALA_PARAMETER_DIRECTION_IN;
	_tmp1_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OUT);
	if (_tmp1_) {
		direction = VALA_PARAMETER_DIRECTION_OUT;
	} else {
		gboolean _tmp2_;
		_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_REF);
		if (_tmp2_) {
			direction = VALA_PARAMETER_DIRECTION_REF;
		}
	}
	_tmp3_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp4_ = begin;
	_tmp5_ = vala_parser_get_src (self, &_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = vala_parameter_new (id, NULL, _tmp6_);
	_tmp8_ = _tmp7_;
	_vala_source_reference_unref0 (_tmp6_);
	param = _tmp8_;
	_tmp9_ = param;
	_tmp10_ = direction;
	vala_parameter_set_direction (_tmp9_, _tmp10_);
	result = param;
	_g_free0 (id);
	return result;
}


static ValaExpression* vala_parser_parse_lambda_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaList* params = NULL;
	GEqualFunc _tmp1_;
	ValaArrayList* _tmp2_;
	gboolean _tmp3_;
	ValaLambdaExpression* lambda = NULL;
	ValaTokenType _tmp13_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = g_direct_equal;
	_tmp2_ = vala_array_list_new (VALA_TYPE_PARAMETER, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp1_);
	params = (ValaList*) _tmp2_;
	_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_PARENS);
	if (_tmp3_) {
		ValaTokenType _tmp4_;
		_tmp4_ = vala_parser_current (self);
		if (_tmp4_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
			{
				gboolean _tmp5_ = FALSE;
				_tmp5_ = TRUE;
				while (TRUE) {
					ValaParameter* _tmp7_ = NULL;
					ValaParameter* _tmp8_;
					ValaList* _tmp9_;
					if (!_tmp5_) {
						gboolean _tmp6_;
						_tmp6_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
						if (!_tmp6_) {
							break;
						}
					}
					_tmp5_ = FALSE;
					_tmp8_ = vala_parser_parse_lambda_parameter (self, &_inner_error_);
					_tmp7_ = _tmp8_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_iterable_unref0 (params);
							return NULL;
						} else {
							_vala_iterable_unref0 (params);
							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 NULL;
						}
					}
					_tmp9_ = params;
					vala_collection_add ((ValaCollection*) _tmp9_, _tmp7_);
					_vala_code_node_unref0 (_tmp7_);
				}
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_iterable_unref0 (params);
				return NULL;
			} else {
				_vala_iterable_unref0 (params);
				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 NULL;
			}
		}
	} else {
		ValaParameter* _tmp10_ = NULL;
		ValaParameter* _tmp11_;
		ValaList* _tmp12_;
		_tmp11_ = vala_parser_parse_lambda_parameter (self, &_inner_error_);
		_tmp10_ = _tmp11_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_iterable_unref0 (params);
				return NULL;
			} else {
				_vala_iterable_unref0 (params);
				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 NULL;
			}
		}
		_tmp12_ = params;
		vala_collection_add ((ValaCollection*) _tmp12_, _tmp10_);
		_vala_code_node_unref0 (_tmp10_);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_LAMBDA, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (params);
			return NULL;
		} else {
			_vala_iterable_unref0 (params);
			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 NULL;
		}
	}
	_tmp13_ = vala_parser_current (self);
	if (_tmp13_ == VALA_TOKEN_TYPE_OPEN_BRACE) {
		ValaBlock* block = NULL;
		ValaBlock* _tmp14_;
		ValaBlock* _tmp15_;
		ValaSourceLocation _tmp16_;
		ValaSourceReference* _tmp17_;
		ValaSourceReference* _tmp18_;
		ValaLambdaExpression* _tmp19_;
		_tmp14_ = vala_parser_parse_block (self, &_inner_error_);
		block = _tmp14_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (lambda);
				_vala_iterable_unref0 (params);
				return NULL;
			} else {
				_vala_code_node_unref0 (lambda);
				_vala_iterable_unref0 (params);
				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 NULL;
			}
		}
		_tmp15_ = block;
		_tmp16_ = begin;
		_tmp17_ = vala_parser_get_src (self, &_tmp16_);
		_tmp18_ = _tmp17_;
		_tmp19_ = vala_lambda_expression_new_with_statement_body (_tmp15_, _tmp18_);
		_vala_code_node_unref0 (lambda);
		lambda = _tmp19_;
		_vala_source_reference_unref0 (_tmp18_);
		_vala_code_node_unref0 (block);
	} else {
		ValaExpression* expr = NULL;
		ValaExpression* _tmp20_;
		ValaExpression* _tmp21_;
		ValaSourceLocation _tmp22_;
		ValaSourceReference* _tmp23_;
		ValaSourceReference* _tmp24_;
		ValaLambdaExpression* _tmp25_;
		_tmp20_ = vala_parser_parse_expression (self, &_inner_error_);
		expr = _tmp20_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (lambda);
				_vala_iterable_unref0 (params);
				return NULL;
			} else {
				_vala_code_node_unref0 (lambda);
				_vala_iterable_unref0 (params);
				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 NULL;
			}
		}
		_tmp21_ = expr;
		_tmp22_ = begin;
		_tmp23_ = vala_parser_get_src (self, &_tmp22_);
		_tmp24_ = _tmp23_;
		_tmp25_ = vala_lambda_expression_new (_tmp21_, _tmp24_);
		_vala_code_node_unref0 (lambda);
		lambda = _tmp25_;
		_vala_source_reference_unref0 (_tmp24_);
		_vala_code_node_unref0 (expr);
	}
	{
		ValaList* _param_list = NULL;
		ValaList* _tmp26_;
		ValaList* _tmp27_;
		gint _param_size = 0;
		ValaList* _tmp28_;
		gint _tmp29_;
		gint _tmp30_;
		gint _param_index = 0;
		_tmp26_ = params;
		_tmp27_ = _vala_iterable_ref0 (_tmp26_);
		_param_list = _tmp27_;
		_tmp28_ = _param_list;
		_tmp29_ = vala_collection_get_size ((ValaCollection*) _tmp28_);
		_tmp30_ = _tmp29_;
		_param_size = _tmp30_;
		_param_index = -1;
		while (TRUE) {
			gint _tmp31_;
			gint _tmp32_;
			gint _tmp33_;
			ValaParameter* param = NULL;
			ValaList* _tmp34_;
			gint _tmp35_;
			gpointer _tmp36_;
			ValaLambdaExpression* _tmp37_;
			ValaParameter* _tmp38_;
			_tmp31_ = _param_index;
			_param_index = _tmp31_ + 1;
			_tmp32_ = _param_index;
			_tmp33_ = _param_size;
			if (!(_tmp32_ < _tmp33_)) {
				break;
			}
			_tmp34_ = _param_list;
			_tmp35_ = _param_index;
			_tmp36_ = vala_list_get (_tmp34_, _tmp35_);
			param = (ValaParameter*) _tmp36_;
			_tmp37_ = lambda;
			_tmp38_ = param;
			vala_lambda_expression_add_parameter (_tmp37_, _tmp38_);
			_vala_code_node_unref0 (param);
		}
		_vala_iterable_unref0 (_param_list);
	}
	result = (ValaExpression*) lambda;
	_vala_iterable_unref0 (params);
	return result;
}


static ValaAssignmentOperator vala_parser_get_assignment_operator (ValaParser* self, ValaTokenType token_type) {
	ValaAssignmentOperator result = 0;
	ValaTokenType _tmp0_;
	g_return_val_if_fail (self != NULL, 0);
	_tmp0_ = token_type;
	switch (_tmp0_) {
		case VALA_TOKEN_TYPE_ASSIGN:
		{
			result = VALA_ASSIGNMENT_OPERATOR_SIMPLE;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_ADD:
		{
			result = VALA_ASSIGNMENT_OPERATOR_ADD;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_SUB:
		{
			result = VALA_ASSIGNMENT_OPERATOR_SUB;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_BITWISE_OR:
		{
			result = VALA_ASSIGNMENT_OPERATOR_BITWISE_OR;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_BITWISE_AND:
		{
			result = VALA_ASSIGNMENT_OPERATOR_BITWISE_AND;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_BITWISE_XOR:
		{
			result = VALA_ASSIGNMENT_OPERATOR_BITWISE_XOR;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_DIV:
		{
			result = VALA_ASSIGNMENT_OPERATOR_DIV;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_MUL:
		{
			result = VALA_ASSIGNMENT_OPERATOR_MUL;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_PERCENT:
		{
			result = VALA_ASSIGNMENT_OPERATOR_PERCENT;
			return result;
		}
		case VALA_TOKEN_TYPE_ASSIGN_SHIFT_LEFT:
		{
			result = VALA_ASSIGNMENT_OPERATOR_SHIFT_LEFT;
			return result;
		}
		default:
		{
			result = VALA_ASSIGNMENT_OPERATOR_NONE;
			return result;
		}
	}
}


static ValaExpression* vala_parser_parse_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	gboolean _tmp0_;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp4_ = {0};
	ValaExpression* expr = NULL;
	ValaExpression* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_parser_is_lambda_expression (self);
	if (_tmp0_) {
		ValaExpression* _tmp1_ = NULL;
		ValaExpression* _tmp2_;
		ValaExpression* _tmp3_;
		_tmp2_ = vala_parser_parse_lambda_expression (self, &_inner_error_);
		_tmp1_ = _tmp2_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
		_tmp3_ = _tmp1_;
		_tmp1_ = NULL;
		result = _tmp3_;
		_vala_code_node_unref0 (_tmp1_);
		return result;
	}
	vala_parser_get_location (self, &_tmp4_);
	begin = _tmp4_;
	_tmp5_ = vala_parser_parse_conditional_expression (self, &_inner_error_);
	expr = _tmp5_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	while (TRUE) {
		ValaAssignmentOperator operator = 0;
		ValaTokenType _tmp6_;
		ValaAssignmentOperator _tmp7_;
		ValaAssignmentOperator _tmp8_;
		_tmp6_ = vala_parser_current (self);
		_tmp7_ = vala_parser_get_assignment_operator (self, _tmp6_);
		operator = _tmp7_;
		_tmp8_ = operator;
		if (_tmp8_ != VALA_ASSIGNMENT_OPERATOR_NONE) {
			ValaExpression* rhs = NULL;
			ValaExpression* _tmp9_;
			ValaExpression* _tmp10_;
			ValaExpression* _tmp11_;
			ValaAssignmentOperator _tmp12_;
			ValaSourceLocation _tmp13_;
			ValaSourceReference* _tmp14_;
			ValaSourceReference* _tmp15_;
			ValaAssignment* _tmp16_;
			vala_parser_next (self);
			_tmp9_ = vala_parser_parse_expression (self, &_inner_error_);
			rhs = _tmp9_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp10_ = expr;
			_tmp11_ = rhs;
			_tmp12_ = operator;
			_tmp13_ = begin;
			_tmp14_ = vala_parser_get_src (self, &_tmp13_);
			_tmp15_ = _tmp14_;
			_tmp16_ = vala_assignment_new (_tmp10_, _tmp11_, _tmp12_, _tmp15_);
			_vala_code_node_unref0 (expr);
			expr = (ValaExpression*) _tmp16_;
			_vala_source_reference_unref0 (_tmp15_);
			_vala_code_node_unref0 (rhs);
		} else {
			ValaTokenType _tmp17_;
			_tmp17_ = vala_parser_current (self);
			if (_tmp17_ == VALA_TOKEN_TYPE_OP_GT) {
				gchar* first_gt_pos = NULL;
				ValaParserTokenInfo* _tmp18_;
				gint _tmp18__length1;
				gint _tmp19_;
				ValaParserTokenInfo _tmp20_;
				ValaSourceLocation _tmp21_;
				gchar* _tmp22_;
				gboolean _tmp23_ = FALSE;
				ValaTokenType _tmp24_;
				_tmp18_ = self->priv->tokens;
				_tmp18__length1 = self->priv->tokens_length1;
				_tmp19_ = self->priv->index;
				_tmp20_ = _tmp18_[_tmp19_];
				_tmp21_ = _tmp20_.begin;
				_tmp22_ = _tmp21_.pos;
				first_gt_pos = _tmp22_;
				vala_parser_next (self);
				_tmp24_ = vala_parser_current (self);
				if (_tmp24_ == VALA_TOKEN_TYPE_OP_GE) {
					ValaParserTokenInfo* _tmp25_;
					gint _tmp25__length1;
					gint _tmp26_;
					ValaParserTokenInfo _tmp27_;
					ValaSourceLocation _tmp28_;
					gchar* _tmp29_;
					gchar* _tmp30_;
					_tmp25_ = self->priv->tokens;
					_tmp25__length1 = self->priv->tokens_length1;
					_tmp26_ = self->priv->index;
					_tmp27_ = _tmp25_[_tmp26_];
					_tmp28_ = _tmp27_.begin;
					_tmp29_ = _tmp28_.pos;
					_tmp30_ = first_gt_pos;
					_tmp23_ = _tmp29_ == (_tmp30_ + 1);
				} else {
					_tmp23_ = FALSE;
				}
				if (_tmp23_) {
					ValaExpression* rhs = NULL;
					ValaExpression* _tmp31_;
					ValaExpression* _tmp32_;
					ValaExpression* _tmp33_;
					ValaSourceLocation _tmp34_;
					ValaSourceReference* _tmp35_;
					ValaSourceReference* _tmp36_;
					ValaAssignment* _tmp37_;
					vala_parser_next (self);
					_tmp31_ = vala_parser_parse_expression (self, &_inner_error_);
					rhs = _tmp31_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (expr);
							return NULL;
						} else {
							_vala_code_node_unref0 (expr);
							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 NULL;
						}
					}
					_tmp32_ = expr;
					_tmp33_ = rhs;
					_tmp34_ = begin;
					_tmp35_ = vala_parser_get_src (self, &_tmp34_);
					_tmp36_ = _tmp35_;
					_tmp37_ = vala_assignment_new (_tmp32_, _tmp33_, VALA_ASSIGNMENT_OPERATOR_SHIFT_RIGHT, _tmp36_);
					_vala_code_node_unref0 (expr);
					expr = (ValaExpression*) _tmp37_;
					_vala_source_reference_unref0 (_tmp36_);
					_vala_code_node_unref0 (rhs);
				} else {
					vala_parser_prev (self);
					break;
				}
			} else {
				break;
			}
		}
	}
	result = expr;
	return result;
}


static void vala_parser_parse_statements (ValaParser* self, ValaBlock* block, GError** error) {
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (block != NULL);
	while (TRUE) {
		gboolean _tmp0_ = FALSE;
		gboolean _tmp1_ = FALSE;
		gboolean _tmp2_ = FALSE;
		ValaTokenType _tmp3_;
		_tmp3_ = vala_parser_current (self);
		if (_tmp3_ != VALA_TOKEN_TYPE_CLOSE_BRACE) {
			ValaTokenType _tmp4_;
			_tmp4_ = vala_parser_current (self);
			_tmp2_ = _tmp4_ != VALA_TOKEN_TYPE_CASE;
		} else {
			_tmp2_ = FALSE;
		}
		if (_tmp2_) {
			ValaTokenType _tmp5_;
			_tmp5_ = vala_parser_current (self);
			_tmp1_ = _tmp5_ != VALA_TOKEN_TYPE_DEFAULT;
		} else {
			_tmp1_ = FALSE;
		}
		if (_tmp1_) {
			ValaTokenType _tmp6_;
			_tmp6_ = vala_parser_current (self);
			_tmp0_ = _tmp6_ != VALA_TOKEN_TYPE_EOF;
		} else {
			_tmp0_ = FALSE;
		}
		if (!_tmp0_) {
			break;
		}
		{
			ValaStatement* stmt = NULL;
			gboolean is_decl = FALSE;
			ValaScanner* _tmp7_;
			ValaComment* _tmp8_;
			ValaTokenType _tmp9_;
			gboolean _tmp69_;
			stmt = NULL;
			is_decl = FALSE;
			_tmp7_ = self->priv->scanner;
			_tmp8_ = vala_scanner_pop_comment (_tmp7_);
			_vala_comment_unref0 (self->priv->comment);
			self->priv->comment = _tmp8_;
			_tmp9_ = vala_parser_current (self);
			switch (_tmp9_) {
				case VALA_TOKEN_TYPE_OPEN_BRACE:
				{
					ValaBlock* _tmp10_ = NULL;
					ValaBlock* _tmp11_;
					ValaBlock* _tmp12_;
					_tmp11_ = vala_parser_parse_block (self, &_inner_error_);
					_tmp10_ = _tmp11_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp12_ = _tmp10_;
					_tmp10_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = (ValaStatement*) _tmp12_;
					_vala_code_node_unref0 (_tmp10_);
					break;
				}
				case VALA_TOKEN_TYPE_SEMICOLON:
				{
					ValaStatement* _tmp13_ = NULL;
					ValaStatement* _tmp14_;
					ValaStatement* _tmp15_;
					_tmp14_ = vala_parser_parse_empty_statement (self, &_inner_error_);
					_tmp13_ = _tmp14_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp15_ = _tmp13_;
					_tmp13_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp15_;
					_vala_code_node_unref0 (_tmp13_);
					break;
				}
				case VALA_TOKEN_TYPE_IF:
				{
					ValaStatement* _tmp16_ = NULL;
					ValaStatement* _tmp17_;
					ValaStatement* _tmp18_;
					_tmp17_ = vala_parser_parse_if_statement (self, &_inner_error_);
					_tmp16_ = _tmp17_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp18_ = _tmp16_;
					_tmp16_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp18_;
					_vala_code_node_unref0 (_tmp16_);
					break;
				}
				case VALA_TOKEN_TYPE_SWITCH:
				{
					ValaStatement* _tmp19_ = NULL;
					ValaStatement* _tmp20_;
					ValaStatement* _tmp21_;
					_tmp20_ = vala_parser_parse_switch_statement (self, &_inner_error_);
					_tmp19_ = _tmp20_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp21_ = _tmp19_;
					_tmp19_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp21_;
					_vala_code_node_unref0 (_tmp19_);
					break;
				}
				case VALA_TOKEN_TYPE_WHILE:
				{
					ValaStatement* _tmp22_ = NULL;
					ValaStatement* _tmp23_;
					ValaStatement* _tmp24_;
					_tmp23_ = vala_parser_parse_while_statement (self, &_inner_error_);
					_tmp22_ = _tmp23_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp24_ = _tmp22_;
					_tmp22_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp24_;
					_vala_code_node_unref0 (_tmp22_);
					break;
				}
				case VALA_TOKEN_TYPE_DO:
				{
					ValaStatement* _tmp25_ = NULL;
					ValaStatement* _tmp26_;
					ValaStatement* _tmp27_;
					_tmp26_ = vala_parser_parse_do_statement (self, &_inner_error_);
					_tmp25_ = _tmp26_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp27_ = _tmp25_;
					_tmp25_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp27_;
					_vala_code_node_unref0 (_tmp25_);
					break;
				}
				case VALA_TOKEN_TYPE_FOR:
				{
					ValaStatement* _tmp28_ = NULL;
					ValaStatement* _tmp29_;
					ValaStatement* _tmp30_;
					_tmp29_ = vala_parser_parse_for_statement (self, &_inner_error_);
					_tmp28_ = _tmp29_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp30_ = _tmp28_;
					_tmp28_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp30_;
					_vala_code_node_unref0 (_tmp28_);
					break;
				}
				case VALA_TOKEN_TYPE_FOREACH:
				{
					ValaStatement* _tmp31_ = NULL;
					ValaStatement* _tmp32_;
					ValaStatement* _tmp33_;
					_tmp32_ = vala_parser_parse_foreach_statement (self, &_inner_error_);
					_tmp31_ = _tmp32_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp33_ = _tmp31_;
					_tmp31_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp33_;
					_vala_code_node_unref0 (_tmp31_);
					break;
				}
				case VALA_TOKEN_TYPE_BREAK:
				{
					ValaStatement* _tmp34_ = NULL;
					ValaStatement* _tmp35_;
					ValaStatement* _tmp36_;
					_tmp35_ = vala_parser_parse_break_statement (self, &_inner_error_);
					_tmp34_ = _tmp35_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp36_ = _tmp34_;
					_tmp34_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp36_;
					_vala_code_node_unref0 (_tmp34_);
					break;
				}
				case VALA_TOKEN_TYPE_CONTINUE:
				{
					ValaStatement* _tmp37_ = NULL;
					ValaStatement* _tmp38_;
					ValaStatement* _tmp39_;
					_tmp38_ = vala_parser_parse_continue_statement (self, &_inner_error_);
					_tmp37_ = _tmp38_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp39_ = _tmp37_;
					_tmp37_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp39_;
					_vala_code_node_unref0 (_tmp37_);
					break;
				}
				case VALA_TOKEN_TYPE_RETURN:
				{
					ValaStatement* _tmp40_ = NULL;
					ValaStatement* _tmp41_;
					ValaStatement* _tmp42_;
					_tmp41_ = vala_parser_parse_return_statement (self, &_inner_error_);
					_tmp40_ = _tmp41_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp42_ = _tmp40_;
					_tmp40_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp42_;
					_vala_code_node_unref0 (_tmp40_);
					break;
				}
				case VALA_TOKEN_TYPE_YIELD:
				{
					ValaStatement* _tmp43_ = NULL;
					ValaStatement* _tmp44_;
					ValaStatement* _tmp45_;
					_tmp44_ = vala_parser_parse_yield_statement (self, &_inner_error_);
					_tmp43_ = _tmp44_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp45_ = _tmp43_;
					_tmp43_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp45_;
					_vala_code_node_unref0 (_tmp43_);
					break;
				}
				case VALA_TOKEN_TYPE_THROW:
				{
					ValaStatement* _tmp46_ = NULL;
					ValaStatement* _tmp47_;
					ValaStatement* _tmp48_;
					_tmp47_ = vala_parser_parse_throw_statement (self, &_inner_error_);
					_tmp46_ = _tmp47_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp48_ = _tmp46_;
					_tmp46_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp48_;
					_vala_code_node_unref0 (_tmp46_);
					break;
				}
				case VALA_TOKEN_TYPE_TRY:
				{
					ValaStatement* _tmp49_ = NULL;
					ValaStatement* _tmp50_;
					ValaStatement* _tmp51_;
					_tmp50_ = vala_parser_parse_try_statement (self, &_inner_error_);
					_tmp49_ = _tmp50_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp51_ = _tmp49_;
					_tmp49_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp51_;
					_vala_code_node_unref0 (_tmp49_);
					break;
				}
				case VALA_TOKEN_TYPE_LOCK:
				{
					ValaStatement* _tmp52_ = NULL;
					ValaStatement* _tmp53_;
					ValaStatement* _tmp54_;
					_tmp53_ = vala_parser_parse_lock_statement (self, &_inner_error_);
					_tmp52_ = _tmp53_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp54_ = _tmp52_;
					_tmp52_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp54_;
					_vala_code_node_unref0 (_tmp52_);
					break;
				}
				case VALA_TOKEN_TYPE_DELETE:
				{
					ValaStatement* _tmp55_ = NULL;
					ValaStatement* _tmp56_;
					ValaStatement* _tmp57_;
					_tmp56_ = vala_parser_parse_delete_statement (self, &_inner_error_);
					_tmp55_ = _tmp56_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp57_ = _tmp55_;
					_tmp55_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp57_;
					_vala_code_node_unref0 (_tmp55_);
					break;
				}
				case VALA_TOKEN_TYPE_VAR:
				{
					ValaBlock* _tmp58_;
					is_decl = TRUE;
					_tmp58_ = block;
					vala_parser_parse_local_variable_declarations (self, _tmp58_, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					break;
				}
				case VALA_TOKEN_TYPE_CONST:
				{
					ValaBlock* _tmp59_;
					is_decl = TRUE;
					_tmp59_ = block;
					vala_parser_parse_local_constant_declarations (self, _tmp59_, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					break;
				}
				case VALA_TOKEN_TYPE_OP_INC:
				case VALA_TOKEN_TYPE_OP_DEC:
				case VALA_TOKEN_TYPE_BASE:
				case VALA_TOKEN_TYPE_THIS:
				case VALA_TOKEN_TYPE_STAR:
				case VALA_TOKEN_TYPE_NEW:
				{
					ValaStatement* _tmp60_ = NULL;
					ValaStatement* _tmp61_;
					ValaStatement* _tmp62_;
					_tmp61_ = vala_parser_parse_expression_statement (self, &_inner_error_);
					_tmp60_ = _tmp61_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp62_ = _tmp60_;
					_tmp60_ = NULL;
					_vala_code_node_unref0 (stmt);
					stmt = _tmp62_;
					_vala_code_node_unref0 (_tmp60_);
					break;
				}
				default:
				{
					gboolean is_expr = FALSE;
					gboolean _tmp63_;
					gboolean _tmp64_;
					_tmp63_ = vala_parser_is_expression (self, &_inner_error_);
					is_expr = _tmp63_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						_vala_code_node_unref0 (stmt);
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							goto __catch12_vala_parse_error;
						}
						_vala_code_node_unref0 (stmt);
						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;
					}
					_tmp64_ = is_expr;
					if (_tmp64_) {
						ValaStatement* _tmp65_ = NULL;
						ValaStatement* _tmp66_;
						ValaStatement* _tmp67_;
						_tmp66_ = vala_parser_parse_expression_statement (self, &_inner_error_);
						_tmp65_ = _tmp66_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							_vala_code_node_unref0 (stmt);
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								goto __catch12_vala_parse_error;
							}
							_vala_code_node_unref0 (stmt);
							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;
						}
						_tmp67_ = _tmp65_;
						_tmp65_ = NULL;
						_vala_code_node_unref0 (stmt);
						stmt = _tmp67_;
						_vala_code_node_unref0 (_tmp65_);
					} else {
						ValaBlock* _tmp68_;
						is_decl = TRUE;
						_tmp68_ = block;
						vala_parser_parse_local_variable_declarations (self, _tmp68_, &_inner_error_);
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							_vala_code_node_unref0 (stmt);
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								goto __catch12_vala_parse_error;
							}
							_vala_code_node_unref0 (stmt);
							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;
						}
					}
					break;
				}
			}
			_tmp69_ = is_decl;
			if (!_tmp69_) {
				ValaBlock* _tmp70_;
				ValaStatement* _tmp71_;
				_tmp70_ = block;
				_tmp71_ = stmt;
				vala_block_add_statement (_tmp70_, _tmp71_);
			}
			_vala_code_node_unref0 (stmt);
		}
		goto __finally12;
		__catch12_vala_parse_error:
		{
			GError* e = NULL;
			GError* _tmp72_;
			ValaParserRecoveryState _tmp73_;
			e = _inner_error_;
			_inner_error_ = NULL;
			_tmp72_ = e;
			vala_parser_report_parse_error (self, _tmp72_);
			_tmp73_ = vala_parser_recover (self);
			if (_tmp73_ != VALA_PARSER_RECOVERY_STATE_STATEMENT_BEGIN) {
				_g_error_free0 (e);
				break;
			}
			_g_error_free0 (e);
		}
		__finally12:
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
	}
}


static gboolean vala_parser_is_expression (ValaParser* self, GError** error) {
	gboolean result = FALSE;
	ValaTokenType _tmp0_;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp2_ = {0};
	ValaTokenType _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = vala_parser_current (self);
	if (_tmp0_ == VALA_TOKEN_TYPE_OPEN_PARENS) {
		gboolean _tmp1_;
		_tmp1_ = vala_parser_is_inner_array_type (self);
		result = !_tmp1_;
		return result;
	}
	vala_parser_get_location (self, &_tmp2_);
	begin = _tmp2_;
	vala_parser_skip_type (self, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			gboolean _tmp3_ = FALSE;
			g_propagate_error (error, _inner_error_);
			return _tmp3_;
		} else {
			gboolean _tmp4_ = FALSE;
			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 _tmp4_;
		}
	}
	_tmp5_ = vala_parser_current (self);
	switch (_tmp5_) {
		case VALA_TOKEN_TYPE_OPEN_PARENS:
		case VALA_TOKEN_TYPE_OP_INC:
		case VALA_TOKEN_TYPE_OP_DEC:
		case VALA_TOKEN_TYPE_ASSIGN:
		case VALA_TOKEN_TYPE_ASSIGN_ADD:
		case VALA_TOKEN_TYPE_ASSIGN_BITWISE_AND:
		case VALA_TOKEN_TYPE_ASSIGN_BITWISE_OR:
		case VALA_TOKEN_TYPE_ASSIGN_BITWISE_XOR:
		case VALA_TOKEN_TYPE_ASSIGN_DIV:
		case VALA_TOKEN_TYPE_ASSIGN_MUL:
		case VALA_TOKEN_TYPE_ASSIGN_PERCENT:
		case VALA_TOKEN_TYPE_ASSIGN_SHIFT_LEFT:
		case VALA_TOKEN_TYPE_ASSIGN_SUB:
		case VALA_TOKEN_TYPE_OP_GT:
		case VALA_TOKEN_TYPE_DOT:
		case VALA_TOKEN_TYPE_OP_PTR:
		{
			ValaSourceLocation _tmp6_;
			_tmp6_ = begin;
			vala_parser_rollback (self, &_tmp6_);
			result = TRUE;
			return result;
		}
		default:
		{
			ValaSourceLocation _tmp7_;
			_tmp7_ = begin;
			vala_parser_rollback (self, &_tmp7_);
			result = FALSE;
			return result;
		}
	}
}


static gboolean vala_parser_is_lambda_expression (ValaParser* self) {
	gboolean result = FALSE;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaTokenType _tmp1_;
	ValaSourceLocation _tmp20_;
	g_return_val_if_fail (self != NULL, FALSE);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_current (self);
	switch (_tmp1_) {
		case VALA_TOKEN_TYPE_OUT:
		case VALA_TOKEN_TYPE_REF:
		{
			gboolean _tmp2_ = FALSE;
			gboolean _tmp3_;
			vala_parser_next (self);
			_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_IDENTIFIER);
			if (_tmp3_) {
				gboolean _tmp4_;
				_tmp4_ = vala_parser_accept (self, VALA_TOKEN_TYPE_LAMBDA);
				_tmp2_ = _tmp4_;
			} else {
				_tmp2_ = FALSE;
			}
			if (_tmp2_) {
				ValaSourceLocation _tmp5_;
				_tmp5_ = begin;
				vala_parser_rollback (self, &_tmp5_);
				result = TRUE;
				return result;
			}
			break;
		}
		case VALA_TOKEN_TYPE_IDENTIFIER:
		{
			gboolean _tmp6_;
			vala_parser_next (self);
			_tmp6_ = vala_parser_accept (self, VALA_TOKEN_TYPE_LAMBDA);
			if (_tmp6_) {
				ValaSourceLocation _tmp7_;
				_tmp7_ = begin;
				vala_parser_rollback (self, &_tmp7_);
				result = TRUE;
				return result;
			}
			break;
		}
		case VALA_TOKEN_TYPE_OPEN_PARENS:
		{
			ValaTokenType _tmp8_;
			gboolean _tmp16_ = FALSE;
			gboolean _tmp17_;
			vala_parser_next (self);
			_tmp8_ = vala_parser_current (self);
			if (_tmp8_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
				{
					gboolean _tmp9_ = FALSE;
					_tmp9_ = TRUE;
					while (TRUE) {
						gboolean _tmp11_ = FALSE;
						ValaTokenType _tmp12_;
						gboolean _tmp14_;
						if (!_tmp9_) {
							gboolean _tmp10_;
							_tmp10_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
							if (!_tmp10_) {
								break;
							}
						}
						_tmp9_ = FALSE;
						_tmp12_ = vala_parser_current (self);
						if (_tmp12_ == VALA_TOKEN_TYPE_OUT) {
							_tmp11_ = TRUE;
						} else {
							ValaTokenType _tmp13_;
							_tmp13_ = vala_parser_current (self);
							_tmp11_ = _tmp13_ == VALA_TOKEN_TYPE_REF;
						}
						if (_tmp11_) {
							vala_parser_next (self);
						}
						_tmp14_ = vala_parser_accept (self, VALA_TOKEN_TYPE_IDENTIFIER);
						if (!_tmp14_) {
							ValaSourceLocation _tmp15_;
							_tmp15_ = begin;
							vala_parser_rollback (self, &_tmp15_);
							result = FALSE;
							return result;
						}
					}
				}
			}
			_tmp17_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CLOSE_PARENS);
			if (_tmp17_) {
				gboolean _tmp18_;
				_tmp18_ = vala_parser_accept (self, VALA_TOKEN_TYPE_LAMBDA);
				_tmp16_ = _tmp18_;
			} else {
				_tmp16_ = FALSE;
			}
			if (_tmp16_) {
				ValaSourceLocation _tmp19_;
				_tmp19_ = begin;
				vala_parser_rollback (self, &_tmp19_);
				result = TRUE;
				return result;
			}
			break;
		}
		default:
		break;
	}
	_tmp20_ = begin;
	vala_parser_rollback (self, &_tmp20_);
	result = FALSE;
	return result;
}


static ValaBlock* vala_parser_parse_embedded_statement (ValaParser* self, const gchar* statement_name, gboolean accept_empty_body, GError** error) {
	ValaBlock* result = NULL;
	ValaTokenType _tmp0_;
	ValaScanner* _tmp2_;
	ValaComment* _tmp3_;
	ValaBlock* block = NULL;
	ValaSourceLocation _tmp4_ = {0};
	ValaSourceReference* _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaBlock* _tmp7_;
	ValaBlock* _tmp8_;
	ValaStatement* stmt = NULL;
	const gchar* _tmp9_;
	gboolean _tmp10_;
	ValaStatement* _tmp11_;
	ValaBlock* _tmp12_;
	ValaStatement* _tmp13_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (statement_name != NULL, NULL);
	_tmp0_ = vala_parser_current (self);
	if (_tmp0_ == VALA_TOKEN_TYPE_OPEN_BRACE) {
		ValaBlock* block = NULL;
		ValaBlock* _tmp1_;
		_tmp1_ = vala_parser_parse_block (self, &_inner_error_);
		block = _tmp1_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
		result = block;
		return result;
	}
	_tmp2_ = self->priv->scanner;
	_tmp3_ = vala_scanner_pop_comment (_tmp2_);
	_vala_comment_unref0 (self->priv->comment);
	self->priv->comment = _tmp3_;
	vala_parser_get_location (self, &_tmp4_);
	_tmp5_ = vala_parser_get_src (self, &_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = vala_block_new (_tmp6_);
	_tmp8_ = _tmp7_;
	_vala_source_reference_unref0 (_tmp6_);
	block = _tmp8_;
	_tmp9_ = statement_name;
	_tmp10_ = accept_empty_body;
	_tmp11_ = vala_parser_parse_embedded_statement_without_block (self, _tmp9_, _tmp10_, &_inner_error_);
	stmt = _tmp11_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (block);
			return NULL;
		} else {
			_vala_code_node_unref0 (block);
			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 NULL;
		}
	}
	_tmp12_ = block;
	_tmp13_ = stmt;
	vala_block_add_statement (_tmp12_, _tmp13_);
	result = block;
	_vala_code_node_unref0 (stmt);
	return result;
}


static ValaStatement* vala_parser_parse_embedded_statement_without_block (ValaParser* self, const gchar* statement_name, gboolean accept_empty_body, GError** error) {
	ValaStatement* result = NULL;
	ValaTokenType _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (statement_name != NULL, NULL);
	_tmp0_ = vala_parser_current (self);
	switch (_tmp0_) {
		case VALA_TOKEN_TYPE_SEMICOLON:
		{
			gboolean _tmp1_;
			ValaStatement* _tmp7_ = NULL;
			ValaStatement* _tmp8_;
			ValaStatement* _tmp9_;
			_tmp1_ = accept_empty_body;
			if (!_tmp1_) {
				ValaSourceReference* _tmp2_;
				ValaSourceReference* _tmp3_;
				const gchar* _tmp4_;
				gchar* _tmp5_;
				gchar* _tmp6_;
				_tmp2_ = vala_parser_get_current_src (self);
				_tmp3_ = _tmp2_;
				_tmp4_ = statement_name;
				_tmp5_ = g_strdup_printf ("%s-statement without body", _tmp4_);
				_tmp6_ = _tmp5_;
				vala_report_warning (_tmp3_, _tmp6_);
				_g_free0 (_tmp6_);
				_vala_source_reference_unref0 (_tmp3_);
			}
			_tmp8_ = vala_parser_parse_empty_statement (self, &_inner_error_);
			_tmp7_ = _tmp8_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp9_ = _tmp7_;
			_tmp7_ = NULL;
			result = _tmp9_;
			_vala_code_node_unref0 (_tmp7_);
			return result;
		}
		case VALA_TOKEN_TYPE_IF:
		{
			ValaStatement* _tmp10_ = NULL;
			ValaStatement* _tmp11_;
			ValaStatement* _tmp12_;
			_tmp11_ = vala_parser_parse_if_statement (self, &_inner_error_);
			_tmp10_ = _tmp11_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp12_ = _tmp10_;
			_tmp10_ = NULL;
			result = _tmp12_;
			_vala_code_node_unref0 (_tmp10_);
			return result;
		}
		case VALA_TOKEN_TYPE_SWITCH:
		{
			ValaStatement* _tmp13_ = NULL;
			ValaStatement* _tmp14_;
			ValaStatement* _tmp15_;
			_tmp14_ = vala_parser_parse_switch_statement (self, &_inner_error_);
			_tmp13_ = _tmp14_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp15_ = _tmp13_;
			_tmp13_ = NULL;
			result = _tmp15_;
			_vala_code_node_unref0 (_tmp13_);
			return result;
		}
		case VALA_TOKEN_TYPE_WHILE:
		{
			ValaStatement* _tmp16_ = NULL;
			ValaStatement* _tmp17_;
			ValaStatement* _tmp18_;
			_tmp17_ = vala_parser_parse_while_statement (self, &_inner_error_);
			_tmp16_ = _tmp17_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp18_ = _tmp16_;
			_tmp16_ = NULL;
			result = _tmp18_;
			_vala_code_node_unref0 (_tmp16_);
			return result;
		}
		case VALA_TOKEN_TYPE_DO:
		{
			ValaStatement* _tmp19_ = NULL;
			ValaStatement* _tmp20_;
			ValaStatement* _tmp21_;
			_tmp20_ = vala_parser_parse_do_statement (self, &_inner_error_);
			_tmp19_ = _tmp20_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp21_ = _tmp19_;
			_tmp19_ = NULL;
			result = _tmp21_;
			_vala_code_node_unref0 (_tmp19_);
			return result;
		}
		case VALA_TOKEN_TYPE_FOR:
		{
			ValaStatement* _tmp22_ = NULL;
			ValaStatement* _tmp23_;
			ValaStatement* _tmp24_;
			_tmp23_ = vala_parser_parse_for_statement (self, &_inner_error_);
			_tmp22_ = _tmp23_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp24_ = _tmp22_;
			_tmp22_ = NULL;
			result = _tmp24_;
			_vala_code_node_unref0 (_tmp22_);
			return result;
		}
		case VALA_TOKEN_TYPE_FOREACH:
		{
			ValaStatement* _tmp25_ = NULL;
			ValaStatement* _tmp26_;
			ValaStatement* _tmp27_;
			_tmp26_ = vala_parser_parse_foreach_statement (self, &_inner_error_);
			_tmp25_ = _tmp26_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp27_ = _tmp25_;
			_tmp25_ = NULL;
			result = _tmp27_;
			_vala_code_node_unref0 (_tmp25_);
			return result;
		}
		case VALA_TOKEN_TYPE_BREAK:
		{
			ValaStatement* _tmp28_ = NULL;
			ValaStatement* _tmp29_;
			ValaStatement* _tmp30_;
			_tmp29_ = vala_parser_parse_break_statement (self, &_inner_error_);
			_tmp28_ = _tmp29_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp30_ = _tmp28_;
			_tmp28_ = NULL;
			result = _tmp30_;
			_vala_code_node_unref0 (_tmp28_);
			return result;
		}
		case VALA_TOKEN_TYPE_CONTINUE:
		{
			ValaStatement* _tmp31_ = NULL;
			ValaStatement* _tmp32_;
			ValaStatement* _tmp33_;
			_tmp32_ = vala_parser_parse_continue_statement (self, &_inner_error_);
			_tmp31_ = _tmp32_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp33_ = _tmp31_;
			_tmp31_ = NULL;
			result = _tmp33_;
			_vala_code_node_unref0 (_tmp31_);
			return result;
		}
		case VALA_TOKEN_TYPE_RETURN:
		{
			ValaStatement* _tmp34_ = NULL;
			ValaStatement* _tmp35_;
			ValaStatement* _tmp36_;
			_tmp35_ = vala_parser_parse_return_statement (self, &_inner_error_);
			_tmp34_ = _tmp35_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp36_ = _tmp34_;
			_tmp34_ = NULL;
			result = _tmp36_;
			_vala_code_node_unref0 (_tmp34_);
			return result;
		}
		case VALA_TOKEN_TYPE_YIELD:
		{
			ValaStatement* _tmp37_ = NULL;
			ValaStatement* _tmp38_;
			ValaStatement* _tmp39_;
			_tmp38_ = vala_parser_parse_yield_statement (self, &_inner_error_);
			_tmp37_ = _tmp38_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp39_ = _tmp37_;
			_tmp37_ = NULL;
			result = _tmp39_;
			_vala_code_node_unref0 (_tmp37_);
			return result;
		}
		case VALA_TOKEN_TYPE_THROW:
		{
			ValaStatement* _tmp40_ = NULL;
			ValaStatement* _tmp41_;
			ValaStatement* _tmp42_;
			_tmp41_ = vala_parser_parse_throw_statement (self, &_inner_error_);
			_tmp40_ = _tmp41_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp42_ = _tmp40_;
			_tmp40_ = NULL;
			result = _tmp42_;
			_vala_code_node_unref0 (_tmp40_);
			return result;
		}
		case VALA_TOKEN_TYPE_TRY:
		{
			ValaStatement* _tmp43_ = NULL;
			ValaStatement* _tmp44_;
			ValaStatement* _tmp45_;
			_tmp44_ = vala_parser_parse_try_statement (self, &_inner_error_);
			_tmp43_ = _tmp44_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp45_ = _tmp43_;
			_tmp43_ = NULL;
			result = _tmp45_;
			_vala_code_node_unref0 (_tmp43_);
			return result;
		}
		case VALA_TOKEN_TYPE_LOCK:
		{
			ValaStatement* _tmp46_ = NULL;
			ValaStatement* _tmp47_;
			ValaStatement* _tmp48_;
			_tmp47_ = vala_parser_parse_lock_statement (self, &_inner_error_);
			_tmp46_ = _tmp47_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp48_ = _tmp46_;
			_tmp46_ = NULL;
			result = _tmp48_;
			_vala_code_node_unref0 (_tmp46_);
			return result;
		}
		case VALA_TOKEN_TYPE_DELETE:
		{
			ValaStatement* _tmp49_ = NULL;
			ValaStatement* _tmp50_;
			ValaStatement* _tmp51_;
			_tmp50_ = vala_parser_parse_delete_statement (self, &_inner_error_);
			_tmp49_ = _tmp50_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp51_ = _tmp49_;
			_tmp49_ = NULL;
			result = _tmp51_;
			_vala_code_node_unref0 (_tmp49_);
			return result;
		}
		case VALA_TOKEN_TYPE_VAR:
		case VALA_TOKEN_TYPE_CONST:
		{
			GError* _tmp52_;
			_tmp52_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "embedded statement cannot be declaration ");
			_inner_error_ = _tmp52_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
		case VALA_TOKEN_TYPE_OP_INC:
		case VALA_TOKEN_TYPE_OP_DEC:
		case VALA_TOKEN_TYPE_BASE:
		case VALA_TOKEN_TYPE_THIS:
		case VALA_TOKEN_TYPE_OPEN_PARENS:
		case VALA_TOKEN_TYPE_STAR:
		case VALA_TOKEN_TYPE_NEW:
		{
			ValaStatement* _tmp53_ = NULL;
			ValaStatement* _tmp54_;
			ValaStatement* _tmp55_;
			_tmp54_ = vala_parser_parse_expression_statement (self, &_inner_error_);
			_tmp53_ = _tmp54_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			_tmp55_ = _tmp53_;
			_tmp53_ = NULL;
			result = _tmp55_;
			_vala_code_node_unref0 (_tmp53_);
			return result;
		}
		default:
		{
			gboolean _tmp56_ = FALSE;
			gboolean _tmp57_;
			_tmp57_ = vala_parser_is_expression (self, &_inner_error_);
			_tmp56_ = _tmp57_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
			if (_tmp56_) {
				ValaStatement* _tmp58_ = NULL;
				ValaStatement* _tmp59_;
				ValaStatement* _tmp60_;
				_tmp59_ = vala_parser_parse_expression_statement (self, &_inner_error_);
				_tmp58_ = _tmp59_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						return NULL;
					} else {
						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 NULL;
					}
				}
				_tmp60_ = _tmp58_;
				_tmp58_ = NULL;
				result = _tmp60_;
				_vala_code_node_unref0 (_tmp58_);
				return result;
			} else {
				GError* _tmp61_;
				_tmp61_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "embedded statement cannot be declaration");
				_inner_error_ = _tmp61_;
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					return NULL;
				} else {
					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 NULL;
				}
			}
		}
	}
}


static ValaBlock* vala_parser_parse_block (ValaParser* self, GError** error) {
	ValaBlock* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaBlock* block = NULL;
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaBlock* _tmp4_;
	ValaBlock* _tmp5_;
	ValaBlock* _tmp6_;
	gboolean _tmp7_;
	ValaBlock* _tmp14_;
	ValaSourceReference* _tmp15_;
	ValaSourceReference* _tmp16_;
	ValaSourceReference* _tmp17_;
	ValaSourceReference* _tmp18_;
	ValaSourceLocation _tmp19_ = {0};
	ValaSourceLocation _tmp20_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_block_new (_tmp3_);
	_tmp5_ = _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	block = _tmp5_;
	_tmp6_ = block;
	vala_parser_parse_statements (self, _tmp6_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (block);
			return NULL;
		} else {
			_vala_code_node_unref0 (block);
			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 NULL;
		}
	}
	_tmp7_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CLOSE_BRACE);
	if (!_tmp7_) {
		ValaCodeContext* _tmp8_;
		ValaReport* _tmp9_;
		ValaReport* _tmp10_;
		gint _tmp11_;
		_tmp8_ = self->priv->context;
		_tmp9_ = vala_code_context_get_report (_tmp8_);
		_tmp10_ = _tmp9_;
		_tmp11_ = vala_report_get_errors (_tmp10_);
		if (_tmp11_ == 0) {
			ValaSourceReference* _tmp12_;
			ValaSourceReference* _tmp13_;
			_tmp12_ = vala_parser_get_current_src (self);
			_tmp13_ = _tmp12_;
			vala_report_error (_tmp13_, "expected `}'");
			_vala_source_reference_unref0 (_tmp13_);
		}
	}
	_tmp14_ = block;
	_tmp15_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp14_);
	_tmp16_ = _tmp15_;
	_tmp17_ = vala_parser_get_current_src (self);
	_tmp18_ = _tmp17_;
	vala_source_reference_get_end (_tmp18_, &_tmp19_);
	_tmp20_ = _tmp19_;
	vala_source_reference_set_end (_tmp16_, &_tmp20_);
	_vala_source_reference_unref0 (_tmp18_);
	result = block;
	return result;
}


static ValaStatement* vala_parser_parse_empty_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaEmptyStatement* _tmp4_;
	ValaStatement* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_empty_statement_new (_tmp3_);
	_tmp5_ = (ValaStatement*) _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	result = _tmp5_;
	return result;
}


static void _vala_array_add12 (gchar** * array, int* length, int* size, gchar* value) {
	if ((*length) == (*size)) {
		*size = (*size) ? (2 * (*size)) : 4;
		*array = g_renew (gchar*, *array, (*size) + 1);
	}
	(*array)[(*length)++] = value;
	(*array)[*length] = NULL;
}


static void vala_parser_parse_local_variable_declarations (ValaParser* self, ValaBlock* block, GError** error) {
	ValaDataType* variable_type = NULL;
	gboolean _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (block != NULL);
	_tmp0_ = vala_parser_accept (self, VALA_TOKEN_TYPE_VAR);
	if (_tmp0_) {
		_vala_code_node_unref0 (variable_type);
		variable_type = NULL;
	} else {
		ValaDataType* _tmp1_ = NULL;
		ValaDataType* _tmp2_;
		ValaDataType* _tmp3_;
		_tmp2_ = vala_parser_parse_type (self, TRUE, TRUE, FALSE, &_inner_error_);
		_tmp1_ = _tmp2_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (variable_type);
				return;
			} else {
				_vala_code_node_unref0 (variable_type);
				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;
			}
		}
		_tmp3_ = _tmp1_;
		_tmp1_ = NULL;
		_vala_code_node_unref0 (variable_type);
		variable_type = _tmp3_;
		_vala_code_node_unref0 (_tmp1_);
	}
	{
		gboolean _tmp4_ = FALSE;
		_tmp4_ = TRUE;
		while (TRUE) {
			gboolean _tmp6_ = FALSE;
			ValaDataType* _tmp7_;
			ValaDataType* type_copy = NULL;
			ValaDataType* _tmp70_;
			ValaLocalVariable* local = NULL;
			ValaDataType* _tmp73_;
			ValaLocalVariable* _tmp74_;
			ValaBlock* _tmp75_;
			ValaLocalVariable* _tmp76_;
			ValaLocalVariable* _tmp77_;
			ValaSourceReference* _tmp78_;
			ValaSourceReference* _tmp79_;
			ValaDeclarationStatement* _tmp80_;
			ValaDeclarationStatement* _tmp81_;
			if (!_tmp4_) {
				gboolean _tmp5_;
				_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
				if (!_tmp5_) {
					break;
				}
			}
			_tmp4_ = FALSE;
			_tmp7_ = variable_type;
			if (_tmp7_ == NULL) {
				gboolean _tmp8_;
				_tmp8_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_PARENS);
				_tmp6_ = _tmp8_;
			} else {
				_tmp6_ = FALSE;
			}
			if (_tmp6_) {
				ValaSourceLocation begin = {0};
				ValaSourceLocation _tmp9_ = {0};
				gchar** identifiers = NULL;
				gchar** _tmp10_;
				gint identifiers_length1;
				gint _identifiers_size_;
				ValaExpression* tuple = NULL;
				ValaExpression* _tmp17_;
				ValaLocalVariable* tuple_local = NULL;
				gchar* _tmp18_;
				gchar* _tmp19_;
				ValaExpression* _tmp20_;
				ValaSourceLocation _tmp21_;
				ValaSourceReference* _tmp22_;
				ValaSourceReference* _tmp23_;
				ValaLocalVariable* _tmp24_;
				ValaLocalVariable* _tmp25_;
				ValaBlock* _tmp26_;
				ValaLocalVariable* _tmp27_;
				ValaLocalVariable* _tmp28_;
				ValaSourceReference* _tmp29_;
				ValaSourceReference* _tmp30_;
				ValaDeclarationStatement* _tmp31_;
				ValaDeclarationStatement* _tmp32_;
				vala_parser_get_location (self, &_tmp9_);
				begin = _tmp9_;
				_tmp10_ = g_new0 (gchar*, 0 + 1);
				identifiers = _tmp10_;
				identifiers_length1 = 0;
				_identifiers_size_ = identifiers_length1;
				{
					gboolean _tmp11_ = FALSE;
					_tmp11_ = TRUE;
					while (TRUE) {
						gchar* _tmp13_ = NULL;
						gchar* _tmp14_;
						gchar** _tmp15_;
						gint _tmp15__length1;
						gchar* _tmp16_;
						if (!_tmp11_) {
							gboolean _tmp12_;
							_tmp12_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
							if (!_tmp12_) {
								break;
							}
						}
						_tmp11_ = FALSE;
						_tmp14_ = vala_parser_parse_identifier (self, &_inner_error_);
						_tmp13_ = _tmp14_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								g_propagate_error (error, _inner_error_);
								identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
								_vala_code_node_unref0 (variable_type);
								return;
							} else {
								identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
								_vala_code_node_unref0 (variable_type);
								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;
							}
						}
						_tmp15_ = identifiers;
						_tmp15__length1 = identifiers_length1;
						_tmp16_ = _tmp13_;
						_tmp13_ = NULL;
						_vala_array_add12 (&identifiers, &identifiers_length1, &_identifiers_size_, _tmp16_);
						_g_free0 (_tmp13_);
					}
				}
				vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
						_vala_code_node_unref0 (variable_type);
						return;
					} else {
						identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
						_vala_code_node_unref0 (variable_type);
						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;
					}
				}
				vala_parser_expect (self, VALA_TOKEN_TYPE_ASSIGN, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
						_vala_code_node_unref0 (variable_type);
						return;
					} else {
						identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
						_vala_code_node_unref0 (variable_type);
						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;
					}
				}
				_tmp17_ = vala_parser_parse_expression (self, &_inner_error_);
				tuple = _tmp17_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
						_vala_code_node_unref0 (variable_type);
						return;
					} else {
						identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
						_vala_code_node_unref0 (variable_type);
						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;
					}
				}
				_tmp18_ = vala_code_node_get_temp_name ();
				_tmp19_ = _tmp18_;
				_tmp20_ = tuple;
				_tmp21_ = begin;
				_tmp22_ = vala_parser_get_src (self, &_tmp21_);
				_tmp23_ = _tmp22_;
				_tmp24_ = vala_local_variable_new (NULL, _tmp19_, _tmp20_, _tmp23_);
				_tmp25_ = _tmp24_;
				_vala_source_reference_unref0 (_tmp23_);
				_g_free0 (_tmp19_);
				tuple_local = _tmp25_;
				_tmp26_ = block;
				_tmp27_ = tuple_local;
				_tmp28_ = tuple_local;
				_tmp29_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp28_);
				_tmp30_ = _tmp29_;
				_tmp31_ = vala_declaration_statement_new ((ValaSymbol*) _tmp27_, _tmp30_);
				_tmp32_ = _tmp31_;
				vala_block_add_statement (_tmp26_, (ValaStatement*) _tmp32_);
				_vala_code_node_unref0 (_tmp32_);
				{
					gint i = 0;
					i = 0;
					{
						gboolean _tmp33_ = FALSE;
						_tmp33_ = TRUE;
						while (TRUE) {
							gint _tmp35_;
							gchar** _tmp36_;
							gint _tmp36__length1;
							ValaMemberAccess* temp_access = NULL;
							ValaLocalVariable* _tmp37_;
							const gchar* _tmp38_;
							const gchar* _tmp39_;
							ValaLocalVariable* _tmp40_;
							ValaSourceReference* _tmp41_;
							ValaSourceReference* _tmp42_;
							ValaMemberAccess* _tmp43_;
							ValaElementAccess* ea = NULL;
							ValaMemberAccess* _tmp44_;
							ValaLocalVariable* _tmp45_;
							ValaSourceReference* _tmp46_;
							ValaSourceReference* _tmp47_;
							ValaElementAccess* _tmp48_;
							ValaElementAccess* _tmp49_;
							gint _tmp50_;
							gchar* _tmp51_;
							gchar* _tmp52_;
							ValaIntegerLiteral* _tmp53_;
							ValaIntegerLiteral* _tmp54_;
							ValaLocalVariable* local = NULL;
							gchar** _tmp55_;
							gint _tmp55__length1;
							gint _tmp56_;
							const gchar* _tmp57_;
							ValaElementAccess* _tmp58_;
							ValaLocalVariable* _tmp59_;
							ValaSourceReference* _tmp60_;
							ValaSourceReference* _tmp61_;
							ValaLocalVariable* _tmp62_;
							ValaBlock* _tmp63_;
							ValaLocalVariable* _tmp64_;
							ValaLocalVariable* _tmp65_;
							ValaSourceReference* _tmp66_;
							ValaSourceReference* _tmp67_;
							ValaDeclarationStatement* _tmp68_;
							ValaDeclarationStatement* _tmp69_;
							if (!_tmp33_) {
								gint _tmp34_;
								_tmp34_ = i;
								i = _tmp34_ + 1;
							}
							_tmp33_ = FALSE;
							_tmp35_ = i;
							_tmp36_ = identifiers;
							_tmp36__length1 = identifiers_length1;
							if (!(_tmp35_ < _tmp36__length1)) {
								break;
							}
							_tmp37_ = tuple_local;
							_tmp38_ = vala_symbol_get_name ((ValaSymbol*) _tmp37_);
							_tmp39_ = _tmp38_;
							_tmp40_ = tuple_local;
							_tmp41_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp40_);
							_tmp42_ = _tmp41_;
							_tmp43_ = vala_member_access_new_simple (_tmp39_, _tmp42_);
							temp_access = _tmp43_;
							_tmp44_ = temp_access;
							_tmp45_ = tuple_local;
							_tmp46_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp45_);
							_tmp47_ = _tmp46_;
							_tmp48_ = vala_element_access_new ((ValaExpression*) _tmp44_, _tmp47_);
							ea = _tmp48_;
							_tmp49_ = ea;
							_tmp50_ = i;
							_tmp51_ = g_strdup_printf ("%i", _tmp50_);
							_tmp52_ = _tmp51_;
							_tmp53_ = vala_integer_literal_new (_tmp52_, NULL);
							_tmp54_ = _tmp53_;
							vala_element_access_append_index (_tmp49_, (ValaExpression*) _tmp54_);
							_vala_code_node_unref0 (_tmp54_);
							_g_free0 (_tmp52_);
							_tmp55_ = identifiers;
							_tmp55__length1 = identifiers_length1;
							_tmp56_ = i;
							_tmp57_ = _tmp55_[_tmp56_];
							_tmp58_ = ea;
							_tmp59_ = tuple_local;
							_tmp60_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp59_);
							_tmp61_ = _tmp60_;
							_tmp62_ = vala_local_variable_new (NULL, _tmp57_, (ValaExpression*) _tmp58_, _tmp61_);
							local = _tmp62_;
							_tmp63_ = block;
							_tmp64_ = local;
							_tmp65_ = local;
							_tmp66_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp65_);
							_tmp67_ = _tmp66_;
							_tmp68_ = vala_declaration_statement_new ((ValaSymbol*) _tmp64_, _tmp67_);
							_tmp69_ = _tmp68_;
							vala_block_add_statement (_tmp63_, (ValaStatement*) _tmp69_);
							_vala_code_node_unref0 (_tmp69_);
							_vala_code_node_unref0 (local);
							_vala_code_node_unref0 (ea);
							_vala_code_node_unref0 (temp_access);
						}
					}
				}
				_vala_code_node_unref0 (tuple_local);
				_vala_code_node_unref0 (tuple);
				identifiers = (_vala_array_free (identifiers, identifiers_length1, (GDestroyNotify) g_free), NULL);
				continue;
			}
			type_copy = NULL;
			_tmp70_ = variable_type;
			if (_tmp70_ != NULL) {
				ValaDataType* _tmp71_;
				ValaDataType* _tmp72_;
				_tmp71_ = variable_type;
				_tmp72_ = vala_data_type_copy (_tmp71_);
				_vala_code_node_unref0 (type_copy);
				type_copy = _tmp72_;
			}
			_tmp73_ = type_copy;
			_tmp74_ = vala_parser_parse_local_variable (self, _tmp73_, &_inner_error_);
			local = _tmp74_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (type_copy);
					_vala_code_node_unref0 (variable_type);
					return;
				} else {
					_vala_code_node_unref0 (type_copy);
					_vala_code_node_unref0 (variable_type);
					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;
				}
			}
			_tmp75_ = block;
			_tmp76_ = local;
			_tmp77_ = local;
			_tmp78_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp77_);
			_tmp79_ = _tmp78_;
			_tmp80_ = vala_declaration_statement_new ((ValaSymbol*) _tmp76_, _tmp79_);
			_tmp81_ = _tmp80_;
			vala_block_add_statement (_tmp75_, (ValaStatement*) _tmp81_);
			_vala_code_node_unref0 (_tmp81_);
			_vala_code_node_unref0 (local);
			_vala_code_node_unref0 (type_copy);
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (variable_type);
			return;
		} else {
			_vala_code_node_unref0 (variable_type);
			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;
		}
	}
	_vala_code_node_unref0 (variable_type);
}


static ValaLocalVariable* vala_parser_parse_local_variable (ValaParser* self, ValaDataType* variable_type, GError** error) {
	ValaLocalVariable* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gchar* id = NULL;
	gchar* _tmp1_;
	ValaDataType* type = NULL;
	ValaDataType* _tmp2_;
	ValaDataType* _tmp3_;
	ValaExpression* initializer = NULL;
	gboolean _tmp4_;
	ValaDataType* _tmp8_;
	const gchar* _tmp9_;
	ValaExpression* _tmp10_;
	ValaSourceLocation _tmp11_;
	ValaSourceReference* _tmp12_;
	ValaSourceReference* _tmp13_;
	ValaLocalVariable* _tmp14_;
	ValaLocalVariable* _tmp15_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp2_ = variable_type;
	_tmp3_ = vala_parser_parse_inline_array_type (self, _tmp2_, &_inner_error_);
	type = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			return NULL;
		} else {
			_g_free0 (id);
			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 NULL;
		}
	}
	initializer = NULL;
	_tmp4_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ASSIGN);
	if (_tmp4_) {
		ValaExpression* _tmp5_ = NULL;
		ValaExpression* _tmp6_;
		ValaExpression* _tmp7_;
		_tmp6_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp5_ = _tmp6_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (initializer);
				_vala_code_node_unref0 (type);
				_g_free0 (id);
				return NULL;
			} else {
				_vala_code_node_unref0 (initializer);
				_vala_code_node_unref0 (type);
				_g_free0 (id);
				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 NULL;
			}
		}
		_tmp7_ = _tmp5_;
		_tmp5_ = NULL;
		_vala_code_node_unref0 (initializer);
		initializer = _tmp7_;
		_vala_code_node_unref0 (_tmp5_);
	}
	_tmp8_ = type;
	_tmp9_ = id;
	_tmp10_ = initializer;
	_tmp11_ = begin;
	_tmp12_ = vala_parser_get_src (self, &_tmp11_);
	_tmp13_ = _tmp12_;
	_tmp14_ = vala_local_variable_new (_tmp8_, _tmp9_, _tmp10_, _tmp13_);
	_tmp15_ = _tmp14_;
	_vala_source_reference_unref0 (_tmp13_);
	result = _tmp15_;
	_vala_code_node_unref0 (initializer);
	_vala_code_node_unref0 (type);
	_g_free0 (id);
	return result;
}


static void vala_parser_parse_local_constant_declarations (ValaParser* self, ValaBlock* block, GError** error) {
	ValaDataType* constant_type = NULL;
	ValaDataType* _tmp0_;
	ValaArrayType* array_type = NULL;
	ValaDataType* _tmp1_;
	ValaArrayType* _tmp2_;
	ValaArrayType* _tmp3_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (block != NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_CONST, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp0_ = vala_parser_parse_type (self, FALSE, FALSE, FALSE, &_inner_error_);
	constant_type = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp1_ = constant_type;
	_tmp2_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_ARRAY_TYPE) ? ((ValaArrayType*) _tmp1_) : NULL);
	array_type = _tmp2_;
	_tmp3_ = array_type;
	if (_tmp3_ != NULL) {
		ValaArrayType* _tmp4_;
		ValaDataType* _tmp5_;
		ValaDataType* _tmp6_;
		_tmp4_ = array_type;
		_tmp5_ = vala_array_type_get_element_type (_tmp4_);
		_tmp6_ = _tmp5_;
		vala_data_type_set_value_owned (_tmp6_, FALSE);
	}
	{
		gboolean _tmp7_ = FALSE;
		_tmp7_ = TRUE;
		while (TRUE) {
			ValaDataType* type_copy = NULL;
			ValaDataType* _tmp9_;
			ValaDataType* _tmp10_;
			ValaConstant* local = NULL;
			ValaDataType* _tmp11_;
			ValaConstant* _tmp12_;
			ValaBlock* _tmp13_;
			ValaConstant* _tmp14_;
			ValaConstant* _tmp15_;
			ValaSourceReference* _tmp16_;
			ValaSourceReference* _tmp17_;
			ValaDeclarationStatement* _tmp18_;
			ValaDeclarationStatement* _tmp19_;
			ValaBlock* _tmp20_;
			ValaConstant* _tmp21_;
			ValaConstant* _tmp22_;
			if (!_tmp7_) {
				gboolean _tmp8_;
				_tmp8_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
				if (!_tmp8_) {
					break;
				}
			}
			_tmp7_ = FALSE;
			_tmp9_ = constant_type;
			_tmp10_ = vala_data_type_copy (_tmp9_);
			type_copy = _tmp10_;
			_tmp11_ = type_copy;
			_tmp12_ = vala_parser_parse_local_constant (self, _tmp11_, &_inner_error_);
			local = _tmp12_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (type_copy);
					_vala_code_node_unref0 (array_type);
					_vala_code_node_unref0 (constant_type);
					return;
				} else {
					_vala_code_node_unref0 (type_copy);
					_vala_code_node_unref0 (array_type);
					_vala_code_node_unref0 (constant_type);
					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;
				}
			}
			_tmp13_ = block;
			_tmp14_ = local;
			_tmp15_ = local;
			_tmp16_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp15_);
			_tmp17_ = _tmp16_;
			_tmp18_ = vala_declaration_statement_new ((ValaSymbol*) _tmp14_, _tmp17_);
			_tmp19_ = _tmp18_;
			vala_block_add_statement (_tmp13_, (ValaStatement*) _tmp19_);
			_vala_code_node_unref0 (_tmp19_);
			_tmp20_ = block;
			_tmp21_ = local;
			vala_block_add_local_constant (_tmp20_, _tmp21_);
			_tmp22_ = local;
			vala_symbol_set_active ((ValaSymbol*) _tmp22_, FALSE);
			_vala_code_node_unref0 (local);
			_vala_code_node_unref0 (type_copy);
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (array_type);
			_vala_code_node_unref0 (constant_type);
			return;
		} else {
			_vala_code_node_unref0 (array_type);
			_vala_code_node_unref0 (constant_type);
			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;
		}
	}
	_vala_code_node_unref0 (array_type);
	_vala_code_node_unref0 (constant_type);
}


static ValaConstant* vala_parser_parse_local_constant (ValaParser* self, ValaDataType* constant_type, GError** error) {
	ValaConstant* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gchar* id = NULL;
	gchar* _tmp1_;
	ValaDataType* type = NULL;
	ValaDataType* _tmp2_;
	ValaDataType* _tmp3_;
	ValaExpression* initializer = NULL;
	ValaExpression* _tmp4_;
	const gchar* _tmp5_;
	ValaDataType* _tmp6_;
	ValaExpression* _tmp7_;
	ValaSourceLocation _tmp8_;
	ValaSourceReference* _tmp9_;
	ValaSourceReference* _tmp10_;
	ValaConstant* _tmp11_;
	ValaConstant* _tmp12_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	g_return_val_if_fail (constant_type != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp2_ = constant_type;
	_tmp3_ = vala_parser_parse_inline_array_type (self, _tmp2_, &_inner_error_);
	type = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			return NULL;
		} else {
			_g_free0 (id);
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_ASSIGN, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			_g_free0 (id);
			return NULL;
		} else {
			_vala_code_node_unref0 (type);
			_g_free0 (id);
			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 NULL;
		}
	}
	_tmp4_ = vala_parser_parse_expression (self, &_inner_error_);
	initializer = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			_g_free0 (id);
			return NULL;
		} else {
			_vala_code_node_unref0 (type);
			_g_free0 (id);
			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 NULL;
		}
	}
	_tmp5_ = id;
	_tmp6_ = type;
	_tmp7_ = initializer;
	_tmp8_ = begin;
	_tmp9_ = vala_parser_get_src (self, &_tmp8_);
	_tmp10_ = _tmp9_;
	_tmp11_ = vala_constant_new (_tmp5_, _tmp6_, _tmp7_, _tmp10_, NULL);
	_tmp12_ = _tmp11_;
	_vala_source_reference_unref0 (_tmp10_);
	result = _tmp12_;
	_vala_code_node_unref0 (initializer);
	_vala_code_node_unref0 (type);
	_g_free0 (id);
	return result;
}


static ValaStatement* vala_parser_parse_expression_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* expr = NULL;
	ValaExpression* _tmp1_;
	ValaExpression* _tmp2_;
	ValaSourceLocation _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaExpressionStatement* _tmp6_;
	ValaStatement* _tmp7_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_statement_expression (self, &_inner_error_);
	expr = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (expr);
			return NULL;
		} else {
			_vala_code_node_unref0 (expr);
			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 NULL;
		}
	}
	_tmp2_ = expr;
	_tmp3_ = begin;
	_tmp4_ = vala_parser_get_src (self, &_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_expression_statement_new (_tmp2_, _tmp5_);
	_tmp7_ = (ValaStatement*) _tmp6_;
	_vala_source_reference_unref0 (_tmp5_);
	result = _tmp7_;
	_vala_code_node_unref0 (expr);
	return result;
}


static ValaExpression* vala_parser_parse_statement_expression (ValaParser* self, GError** error) {
	ValaExpression* result = NULL;
	ValaExpression* expr = NULL;
	ValaExpression* _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_parser_parse_expression (self, &_inner_error_);
	expr = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	result = expr;
	return result;
}


static ValaStatement* vala_parser_parse_if_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* condition = NULL;
	ValaExpression* _tmp1_;
	ValaSourceReference* src = NULL;
	ValaSourceLocation _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaBlock* true_stmt = NULL;
	ValaBlock* _tmp4_;
	ValaBlock* false_stmt = NULL;
	gboolean _tmp5_;
	ValaExpression* _tmp9_;
	ValaBlock* _tmp10_;
	ValaBlock* _tmp11_;
	ValaSourceReference* _tmp12_;
	ValaIfStatement* _tmp13_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_IF, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_expression (self, &_inner_error_);
	condition = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (condition);
			return NULL;
		} else {
			_vala_code_node_unref0 (condition);
			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 NULL;
		}
	}
	_tmp2_ = begin;
	_tmp3_ = vala_parser_get_src (self, &_tmp2_);
	src = _tmp3_;
	_tmp4_ = vala_parser_parse_embedded_statement (self, "if", FALSE, &_inner_error_);
	true_stmt = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_source_reference_unref0 (src);
			_vala_code_node_unref0 (condition);
			return NULL;
		} else {
			_vala_source_reference_unref0 (src);
			_vala_code_node_unref0 (condition);
			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 NULL;
		}
	}
	false_stmt = NULL;
	_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ELSE);
	if (_tmp5_) {
		ValaBlock* _tmp6_ = NULL;
		ValaBlock* _tmp7_;
		ValaBlock* _tmp8_;
		_tmp7_ = vala_parser_parse_embedded_statement (self, "else", FALSE, &_inner_error_);
		_tmp6_ = _tmp7_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (false_stmt);
				_vala_code_node_unref0 (true_stmt);
				_vala_source_reference_unref0 (src);
				_vala_code_node_unref0 (condition);
				return NULL;
			} else {
				_vala_code_node_unref0 (false_stmt);
				_vala_code_node_unref0 (true_stmt);
				_vala_source_reference_unref0 (src);
				_vala_code_node_unref0 (condition);
				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 NULL;
			}
		}
		_tmp8_ = _tmp6_;
		_tmp6_ = NULL;
		_vala_code_node_unref0 (false_stmt);
		false_stmt = _tmp8_;
		_vala_code_node_unref0 (_tmp6_);
	}
	_tmp9_ = condition;
	_tmp10_ = true_stmt;
	_tmp11_ = false_stmt;
	_tmp12_ = src;
	_tmp13_ = vala_if_statement_new (_tmp9_, _tmp10_, _tmp11_, _tmp12_);
	result = (ValaStatement*) _tmp13_;
	_vala_code_node_unref0 (false_stmt);
	_vala_code_node_unref0 (true_stmt);
	_vala_source_reference_unref0 (src);
	_vala_code_node_unref0 (condition);
	return result;
}


static ValaStatement* vala_parser_parse_switch_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* condition = NULL;
	ValaExpression* _tmp1_;
	ValaSwitchStatement* stmt = NULL;
	ValaExpression* _tmp2_;
	ValaSourceLocation _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaSwitchStatement* _tmp6_;
	ValaSwitchStatement* _tmp7_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_SWITCH, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_expression (self, &_inner_error_);
	condition = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (condition);
			return NULL;
		} else {
			_vala_code_node_unref0 (condition);
			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 NULL;
		}
	}
	_tmp2_ = condition;
	_tmp3_ = begin;
	_tmp4_ = vala_parser_get_src (self, &_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_switch_statement_new (_tmp2_, _tmp5_);
	_tmp7_ = _tmp6_;
	_vala_source_reference_unref0 (_tmp5_);
	stmt = _tmp7_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (stmt);
			_vala_code_node_unref0 (condition);
			return NULL;
		} else {
			_vala_code_node_unref0 (stmt);
			_vala_code_node_unref0 (condition);
			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 NULL;
		}
	}
	while (TRUE) {
		ValaTokenType _tmp8_;
		ValaSourceLocation _tmp9_ = {0};
		ValaSwitchSection* section = NULL;
		ValaSourceLocation _tmp10_;
		ValaSourceReference* _tmp11_;
		ValaSourceReference* _tmp12_;
		ValaSwitchSection* _tmp13_;
		ValaSwitchSection* _tmp14_;
		ValaSwitchSection* _tmp34_;
		ValaSwitchStatement* _tmp35_;
		ValaSwitchSection* _tmp36_;
		_tmp8_ = vala_parser_current (self);
		if (!(_tmp8_ != VALA_TOKEN_TYPE_CLOSE_BRACE)) {
			break;
		}
		vala_parser_get_location (self, &_tmp9_);
		begin = _tmp9_;
		_tmp10_ = begin;
		_tmp11_ = vala_parser_get_src (self, &_tmp10_);
		_tmp12_ = _tmp11_;
		_tmp13_ = vala_switch_section_new (_tmp12_);
		_tmp14_ = _tmp13_;
		_vala_source_reference_unref0 (_tmp12_);
		section = _tmp14_;
		{
			gboolean _tmp15_ = FALSE;
			_tmp15_ = TRUE;
			while (TRUE) {
				gboolean _tmp19_;
				if (!_tmp15_) {
					gboolean _tmp16_ = FALSE;
					ValaTokenType _tmp17_;
					_tmp17_ = vala_parser_current (self);
					if (_tmp17_ == VALA_TOKEN_TYPE_CASE) {
						_tmp16_ = TRUE;
					} else {
						ValaTokenType _tmp18_;
						_tmp18_ = vala_parser_current (self);
						_tmp16_ = _tmp18_ == VALA_TOKEN_TYPE_DEFAULT;
					}
					if (!_tmp16_) {
						break;
					}
				}
				_tmp15_ = FALSE;
				_tmp19_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CASE);
				if (_tmp19_) {
					ValaExpression* _tmp20_ = NULL;
					ValaExpression* _tmp21_;
					ValaSwitchSection* _tmp22_;
					ValaSourceLocation _tmp23_;
					ValaSourceReference* _tmp24_;
					ValaSourceReference* _tmp25_;
					ValaSwitchLabel* _tmp26_;
					ValaSwitchLabel* _tmp27_;
					_tmp21_ = vala_parser_parse_expression (self, &_inner_error_);
					_tmp20_ = _tmp21_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (section);
							_vala_code_node_unref0 (stmt);
							_vala_code_node_unref0 (condition);
							return NULL;
						} else {
							_vala_code_node_unref0 (section);
							_vala_code_node_unref0 (stmt);
							_vala_code_node_unref0 (condition);
							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 NULL;
						}
					}
					_tmp22_ = section;
					_tmp23_ = begin;
					_tmp24_ = vala_parser_get_src (self, &_tmp23_);
					_tmp25_ = _tmp24_;
					_tmp26_ = vala_switch_label_new (_tmp20_, _tmp25_);
					_tmp27_ = _tmp26_;
					vala_switch_section_add_label (_tmp22_, _tmp27_);
					_vala_code_node_unref0 (_tmp27_);
					_vala_source_reference_unref0 (_tmp25_);
					_vala_code_node_unref0 (_tmp20_);
				} else {
					ValaSwitchSection* _tmp28_;
					ValaSourceLocation _tmp29_;
					ValaSourceReference* _tmp30_;
					ValaSourceReference* _tmp31_;
					ValaSwitchLabel* _tmp32_;
					ValaSwitchLabel* _tmp33_;
					vala_parser_expect (self, VALA_TOKEN_TYPE_DEFAULT, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (section);
							_vala_code_node_unref0 (stmt);
							_vala_code_node_unref0 (condition);
							return NULL;
						} else {
							_vala_code_node_unref0 (section);
							_vala_code_node_unref0 (stmt);
							_vala_code_node_unref0 (condition);
							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 NULL;
						}
					}
					_tmp28_ = section;
					_tmp29_ = begin;
					_tmp30_ = vala_parser_get_src (self, &_tmp29_);
					_tmp31_ = _tmp30_;
					_tmp32_ = vala_switch_label_new_with_default (_tmp31_);
					_tmp33_ = _tmp32_;
					vala_switch_section_add_label (_tmp28_, _tmp33_);
					_vala_code_node_unref0 (_tmp33_);
					_vala_source_reference_unref0 (_tmp31_);
				}
				vala_parser_expect (self, VALA_TOKEN_TYPE_COLON, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (section);
						_vala_code_node_unref0 (stmt);
						_vala_code_node_unref0 (condition);
						return NULL;
					} else {
						_vala_code_node_unref0 (section);
						_vala_code_node_unref0 (stmt);
						_vala_code_node_unref0 (condition);
						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 NULL;
					}
				}
			}
		}
		_tmp34_ = section;
		vala_parser_parse_statements (self, (ValaBlock*) _tmp34_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (section);
				_vala_code_node_unref0 (stmt);
				_vala_code_node_unref0 (condition);
				return NULL;
			} else {
				_vala_code_node_unref0 (section);
				_vala_code_node_unref0 (stmt);
				_vala_code_node_unref0 (condition);
				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 NULL;
			}
		}
		_tmp35_ = stmt;
		_tmp36_ = section;
		vala_switch_statement_add_section (_tmp35_, _tmp36_);
		_vala_code_node_unref0 (section);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (stmt);
			_vala_code_node_unref0 (condition);
			return NULL;
		} else {
			_vala_code_node_unref0 (stmt);
			_vala_code_node_unref0 (condition);
			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 NULL;
		}
	}
	result = (ValaStatement*) stmt;
	_vala_code_node_unref0 (condition);
	return result;
}


static ValaStatement* vala_parser_parse_while_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* condition = NULL;
	ValaExpression* _tmp1_;
	ValaBlock* body = NULL;
	ValaBlock* _tmp2_;
	ValaExpression* _tmp3_;
	ValaBlock* _tmp4_;
	ValaSourceLocation _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaSourceReference* _tmp7_;
	ValaWhileStatement* _tmp8_;
	ValaStatement* _tmp9_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_WHILE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_expression (self, &_inner_error_);
	condition = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (condition);
			return NULL;
		} else {
			_vala_code_node_unref0 (condition);
			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 NULL;
		}
	}
	_tmp2_ = vala_parser_parse_embedded_statement (self, "while", TRUE, &_inner_error_);
	body = _tmp2_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (condition);
			return NULL;
		} else {
			_vala_code_node_unref0 (condition);
			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 NULL;
		}
	}
	_tmp3_ = condition;
	_tmp4_ = body;
	_tmp5_ = begin;
	_tmp6_ = vala_parser_get_src (self, &_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_while_statement_new (_tmp3_, _tmp4_, _tmp7_);
	_tmp9_ = (ValaStatement*) _tmp8_;
	_vala_source_reference_unref0 (_tmp7_);
	result = _tmp9_;
	_vala_code_node_unref0 (body);
	_vala_code_node_unref0 (condition);
	return result;
}


static ValaStatement* vala_parser_parse_do_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaBlock* body = NULL;
	ValaBlock* _tmp1_;
	ValaExpression* condition = NULL;
	ValaExpression* _tmp2_;
	ValaBlock* _tmp3_;
	ValaExpression* _tmp4_;
	ValaSourceLocation _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaSourceReference* _tmp7_;
	ValaDoStatement* _tmp8_;
	ValaStatement* _tmp9_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_DO, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_embedded_statement (self, "do", TRUE, &_inner_error_);
	body = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_WHILE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (body);
			return NULL;
		} else {
			_vala_code_node_unref0 (body);
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (body);
			return NULL;
		} else {
			_vala_code_node_unref0 (body);
			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 NULL;
		}
	}
	_tmp2_ = vala_parser_parse_expression (self, &_inner_error_);
	condition = _tmp2_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (body);
			return NULL;
		} else {
			_vala_code_node_unref0 (body);
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (condition);
			_vala_code_node_unref0 (body);
			return NULL;
		} else {
			_vala_code_node_unref0 (condition);
			_vala_code_node_unref0 (body);
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (condition);
			_vala_code_node_unref0 (body);
			return NULL;
		} else {
			_vala_code_node_unref0 (condition);
			_vala_code_node_unref0 (body);
			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 NULL;
		}
	}
	_tmp3_ = body;
	_tmp4_ = condition;
	_tmp5_ = begin;
	_tmp6_ = vala_parser_get_src (self, &_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_do_statement_new (_tmp3_, _tmp4_, _tmp7_);
	_tmp9_ = (ValaStatement*) _tmp8_;
	_vala_source_reference_unref0 (_tmp7_);
	result = _tmp9_;
	_vala_code_node_unref0 (condition);
	_vala_code_node_unref0 (body);
	return result;
}


static ValaStatement* vala_parser_parse_for_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaBlock* block = NULL;
	ValaArrayList* initializer_list = NULL;
	GEqualFunc _tmp1_;
	ValaArrayList* _tmp2_;
	gboolean _tmp3_;
	ValaExpression* condition = NULL;
	ValaTokenType _tmp18_;
	ValaArrayList* iterator_list = NULL;
	GEqualFunc _tmp22_;
	ValaArrayList* _tmp23_;
	ValaTokenType _tmp24_;
	ValaSourceReference* src = NULL;
	ValaSourceLocation _tmp30_;
	ValaSourceReference* _tmp31_;
	ValaBlock* body = NULL;
	ValaBlock* _tmp32_;
	ValaForStatement* stmt = NULL;
	ValaExpression* _tmp33_;
	ValaBlock* _tmp34_;
	ValaSourceReference* _tmp35_;
	ValaForStatement* _tmp36_;
	ValaBlock* _tmp63_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	block = NULL;
	vala_parser_expect (self, VALA_TOKEN_TYPE_FOR, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (block);
			return NULL;
		} else {
			_vala_code_node_unref0 (block);
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (block);
			return NULL;
		} else {
			_vala_code_node_unref0 (block);
			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 NULL;
		}
	}
	_tmp1_ = g_direct_equal;
	_tmp2_ = vala_array_list_new (VALA_TYPE_EXPRESSION, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp1_);
	initializer_list = _tmp2_;
	_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SEMICOLON);
	if (!_tmp3_) {
		gboolean is_expr = FALSE;
		ValaTokenType _tmp4_;
		gboolean _tmp7_;
		_tmp4_ = vala_parser_current (self);
		switch (_tmp4_) {
			case VALA_TOKEN_TYPE_VAR:
			{
				is_expr = FALSE;
				break;
			}
			case VALA_TOKEN_TYPE_OP_INC:
			case VALA_TOKEN_TYPE_OP_DEC:
			{
				is_expr = TRUE;
				break;
			}
			default:
			{
				gboolean _tmp5_ = FALSE;
				gboolean _tmp6_;
				_tmp6_ = vala_parser_is_expression (self, &_inner_error_);
				_tmp5_ = _tmp6_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (initializer_list);
						_vala_code_node_unref0 (block);
						return NULL;
					} else {
						_vala_iterable_unref0 (initializer_list);
						_vala_code_node_unref0 (block);
						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 NULL;
					}
				}
				is_expr = _tmp5_;
				break;
			}
		}
		_tmp7_ = is_expr;
		if (_tmp7_) {
			{
				gboolean _tmp8_ = FALSE;
				_tmp8_ = TRUE;
				while (TRUE) {
					ValaExpression* _tmp10_ = NULL;
					ValaExpression* _tmp11_;
					ValaArrayList* _tmp12_;
					if (!_tmp8_) {
						gboolean _tmp9_;
						_tmp9_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
						if (!_tmp9_) {
							break;
						}
					}
					_tmp8_ = FALSE;
					_tmp11_ = vala_parser_parse_statement_expression (self, &_inner_error_);
					_tmp10_ = _tmp11_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_iterable_unref0 (initializer_list);
							_vala_code_node_unref0 (block);
							return NULL;
						} else {
							_vala_iterable_unref0 (initializer_list);
							_vala_code_node_unref0 (block);
							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 NULL;
						}
					}
					_tmp12_ = initializer_list;
					vala_collection_add ((ValaCollection*) _tmp12_, _tmp10_);
					_vala_code_node_unref0 (_tmp10_);
				}
			}
			vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (initializer_list);
					_vala_code_node_unref0 (block);
					return NULL;
				} else {
					_vala_iterable_unref0 (initializer_list);
					_vala_code_node_unref0 (block);
					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 NULL;
				}
			}
		} else {
			ValaSourceLocation _tmp13_;
			ValaSourceReference* _tmp14_;
			ValaSourceReference* _tmp15_;
			ValaBlock* _tmp16_;
			ValaBlock* _tmp17_;
			_tmp13_ = begin;
			_tmp14_ = vala_parser_get_src (self, &_tmp13_);
			_tmp15_ = _tmp14_;
			_tmp16_ = vala_block_new (_tmp15_);
			_vala_code_node_unref0 (block);
			block = _tmp16_;
			_vala_source_reference_unref0 (_tmp15_);
			_tmp17_ = block;
			vala_parser_parse_local_variable_declarations (self, _tmp17_, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (initializer_list);
					_vala_code_node_unref0 (block);
					return NULL;
				} else {
					_vala_iterable_unref0 (initializer_list);
					_vala_code_node_unref0 (block);
					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 NULL;
				}
			}
		}
	}
	condition = NULL;
	_tmp18_ = vala_parser_current (self);
	if (_tmp18_ != VALA_TOKEN_TYPE_SEMICOLON) {
		ValaExpression* _tmp19_ = NULL;
		ValaExpression* _tmp20_;
		ValaExpression* _tmp21_;
		_tmp20_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp19_ = _tmp20_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (condition);
				_vala_iterable_unref0 (initializer_list);
				_vala_code_node_unref0 (block);
				return NULL;
			} else {
				_vala_code_node_unref0 (condition);
				_vala_iterable_unref0 (initializer_list);
				_vala_code_node_unref0 (block);
				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 NULL;
			}
		}
		_tmp21_ = _tmp19_;
		_tmp19_ = NULL;
		_vala_code_node_unref0 (condition);
		condition = _tmp21_;
		_vala_code_node_unref0 (_tmp19_);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (condition);
			_vala_iterable_unref0 (initializer_list);
			_vala_code_node_unref0 (block);
			return NULL;
		} else {
			_vala_code_node_unref0 (condition);
			_vala_iterable_unref0 (initializer_list);
			_vala_code_node_unref0 (block);
			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 NULL;
		}
	}
	_tmp22_ = g_direct_equal;
	_tmp23_ = vala_array_list_new (VALA_TYPE_EXPRESSION, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp22_);
	iterator_list = _tmp23_;
	_tmp24_ = vala_parser_current (self);
	if (_tmp24_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
		{
			gboolean _tmp25_ = FALSE;
			_tmp25_ = TRUE;
			while (TRUE) {
				ValaExpression* _tmp27_ = NULL;
				ValaExpression* _tmp28_;
				ValaArrayList* _tmp29_;
				if (!_tmp25_) {
					gboolean _tmp26_;
					_tmp26_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp26_) {
						break;
					}
				}
				_tmp25_ = FALSE;
				_tmp28_ = vala_parser_parse_statement_expression (self, &_inner_error_);
				_tmp27_ = _tmp28_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (iterator_list);
						_vala_code_node_unref0 (condition);
						_vala_iterable_unref0 (initializer_list);
						_vala_code_node_unref0 (block);
						return NULL;
					} else {
						_vala_iterable_unref0 (iterator_list);
						_vala_code_node_unref0 (condition);
						_vala_iterable_unref0 (initializer_list);
						_vala_code_node_unref0 (block);
						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 NULL;
					}
				}
				_tmp29_ = iterator_list;
				vala_collection_add ((ValaCollection*) _tmp29_, _tmp27_);
				_vala_code_node_unref0 (_tmp27_);
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (iterator_list);
			_vala_code_node_unref0 (condition);
			_vala_iterable_unref0 (initializer_list);
			_vala_code_node_unref0 (block);
			return NULL;
		} else {
			_vala_iterable_unref0 (iterator_list);
			_vala_code_node_unref0 (condition);
			_vala_iterable_unref0 (initializer_list);
			_vala_code_node_unref0 (block);
			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 NULL;
		}
	}
	_tmp30_ = begin;
	_tmp31_ = vala_parser_get_src (self, &_tmp30_);
	src = _tmp31_;
	_tmp32_ = vala_parser_parse_embedded_statement (self, "for", TRUE, &_inner_error_);
	body = _tmp32_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_source_reference_unref0 (src);
			_vala_iterable_unref0 (iterator_list);
			_vala_code_node_unref0 (condition);
			_vala_iterable_unref0 (initializer_list);
			_vala_code_node_unref0 (block);
			return NULL;
		} else {
			_vala_source_reference_unref0 (src);
			_vala_iterable_unref0 (iterator_list);
			_vala_code_node_unref0 (condition);
			_vala_iterable_unref0 (initializer_list);
			_vala_code_node_unref0 (block);
			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 NULL;
		}
	}
	_tmp33_ = condition;
	_tmp34_ = body;
	_tmp35_ = src;
	_tmp36_ = vala_for_statement_new (_tmp33_, _tmp34_, _tmp35_);
	stmt = _tmp36_;
	{
		ValaArrayList* _init_list = NULL;
		ValaArrayList* _tmp37_;
		ValaArrayList* _tmp38_;
		gint _init_size = 0;
		ValaArrayList* _tmp39_;
		gint _tmp40_;
		gint _tmp41_;
		gint _init_index = 0;
		_tmp37_ = initializer_list;
		_tmp38_ = _vala_iterable_ref0 (_tmp37_);
		_init_list = _tmp38_;
		_tmp39_ = _init_list;
		_tmp40_ = vala_collection_get_size ((ValaCollection*) _tmp39_);
		_tmp41_ = _tmp40_;
		_init_size = _tmp41_;
		_init_index = -1;
		while (TRUE) {
			gint _tmp42_;
			gint _tmp43_;
			gint _tmp44_;
			ValaExpression* init = NULL;
			ValaArrayList* _tmp45_;
			gint _tmp46_;
			gpointer _tmp47_;
			ValaForStatement* _tmp48_;
			ValaExpression* _tmp49_;
			_tmp42_ = _init_index;
			_init_index = _tmp42_ + 1;
			_tmp43_ = _init_index;
			_tmp44_ = _init_size;
			if (!(_tmp43_ < _tmp44_)) {
				break;
			}
			_tmp45_ = _init_list;
			_tmp46_ = _init_index;
			_tmp47_ = vala_list_get ((ValaList*) _tmp45_, _tmp46_);
			init = (ValaExpression*) _tmp47_;
			_tmp48_ = stmt;
			_tmp49_ = init;
			vala_for_statement_add_initializer (_tmp48_, _tmp49_);
			_vala_code_node_unref0 (init);
		}
		_vala_iterable_unref0 (_init_list);
	}
	{
		ValaArrayList* _iter_list = NULL;
		ValaArrayList* _tmp50_;
		ValaArrayList* _tmp51_;
		gint _iter_size = 0;
		ValaArrayList* _tmp52_;
		gint _tmp53_;
		gint _tmp54_;
		gint _iter_index = 0;
		_tmp50_ = iterator_list;
		_tmp51_ = _vala_iterable_ref0 (_tmp50_);
		_iter_list = _tmp51_;
		_tmp52_ = _iter_list;
		_tmp53_ = vala_collection_get_size ((ValaCollection*) _tmp52_);
		_tmp54_ = _tmp53_;
		_iter_size = _tmp54_;
		_iter_index = -1;
		while (TRUE) {
			gint _tmp55_;
			gint _tmp56_;
			gint _tmp57_;
			ValaExpression* iter = NULL;
			ValaArrayList* _tmp58_;
			gint _tmp59_;
			gpointer _tmp60_;
			ValaForStatement* _tmp61_;
			ValaExpression* _tmp62_;
			_tmp55_ = _iter_index;
			_iter_index = _tmp55_ + 1;
			_tmp56_ = _iter_index;
			_tmp57_ = _iter_size;
			if (!(_tmp56_ < _tmp57_)) {
				break;
			}
			_tmp58_ = _iter_list;
			_tmp59_ = _iter_index;
			_tmp60_ = vala_list_get ((ValaList*) _tmp58_, _tmp59_);
			iter = (ValaExpression*) _tmp60_;
			_tmp61_ = stmt;
			_tmp62_ = iter;
			vala_for_statement_add_iterator (_tmp61_, _tmp62_);
			_vala_code_node_unref0 (iter);
		}
		_vala_iterable_unref0 (_iter_list);
	}
	_tmp63_ = block;
	if (_tmp63_ != NULL) {
		ValaBlock* _tmp64_;
		ValaForStatement* _tmp65_;
		_tmp64_ = block;
		_tmp65_ = stmt;
		vala_block_add_statement (_tmp64_, (ValaStatement*) _tmp65_);
		result = (ValaStatement*) block;
		_vala_code_node_unref0 (stmt);
		_vala_code_node_unref0 (body);
		_vala_source_reference_unref0 (src);
		_vala_iterable_unref0 (iterator_list);
		_vala_code_node_unref0 (condition);
		_vala_iterable_unref0 (initializer_list);
		return result;
	} else {
		result = (ValaStatement*) stmt;
		_vala_code_node_unref0 (body);
		_vala_source_reference_unref0 (src);
		_vala_iterable_unref0 (iterator_list);
		_vala_code_node_unref0 (condition);
		_vala_iterable_unref0 (initializer_list);
		_vala_code_node_unref0 (block);
		return result;
	}
	_vala_code_node_unref0 (stmt);
	_vala_code_node_unref0 (body);
	_vala_source_reference_unref0 (src);
	_vala_iterable_unref0 (iterator_list);
	_vala_code_node_unref0 (condition);
	_vala_iterable_unref0 (initializer_list);
	_vala_code_node_unref0 (block);
}


static ValaStatement* vala_parser_parse_foreach_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaDataType* type = NULL;
	gboolean _tmp1_;
	gchar* id = NULL;
	gchar* _tmp10_;
	ValaExpression* collection = NULL;
	ValaExpression* _tmp11_;
	ValaSourceReference* src = NULL;
	ValaSourceLocation _tmp12_;
	ValaSourceReference* _tmp13_;
	ValaBlock* body = NULL;
	ValaBlock* _tmp14_;
	ValaDataType* _tmp15_;
	const gchar* _tmp16_;
	ValaExpression* _tmp17_;
	ValaBlock* _tmp18_;
	ValaSourceReference* _tmp19_;
	ValaForeachStatement* _tmp20_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_FOREACH, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	type = NULL;
	_tmp1_ = vala_parser_accept (self, VALA_TOKEN_TYPE_VAR);
	if (!_tmp1_) {
		ValaDataType* _tmp2_ = NULL;
		ValaDataType* _tmp3_;
		ValaDataType* _tmp4_;
		gboolean _tmp5_;
		_tmp3_ = vala_parser_parse_type (self, TRUE, TRUE, FALSE, &_inner_error_);
		_tmp2_ = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (type);
				return NULL;
			} else {
				_vala_code_node_unref0 (type);
				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 NULL;
			}
		}
		_tmp4_ = _tmp2_;
		_tmp2_ = NULL;
		_vala_code_node_unref0 (type);
		type = _tmp4_;
		_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_IN);
		if (_tmp5_) {
			ValaDataType* _tmp6_;
			ValaSourceReference* _tmp7_;
			ValaSourceReference* _tmp8_;
			GError* _tmp9_;
			_tmp6_ = type;
			_tmp7_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp6_);
			_tmp8_ = _tmp7_;
			vala_report_error (_tmp8_, "syntax error, expected var or type");
			_tmp9_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected var or type");
			_inner_error_ = _tmp9_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (_tmp2_);
				_vala_code_node_unref0 (type);
				return NULL;
			} else {
				_vala_code_node_unref0 (_tmp2_);
				_vala_code_node_unref0 (type);
				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 NULL;
			}
		}
		_vala_code_node_unref0 (_tmp2_);
	}
	_tmp10_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp10_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return NULL;
		} else {
			_vala_code_node_unref0 (type);
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_IN, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return NULL;
		} else {
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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 NULL;
		}
	}
	_tmp11_ = vala_parser_parse_expression (self, &_inner_error_);
	collection = _tmp11_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return NULL;
		} else {
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (collection);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return NULL;
		} else {
			_vala_code_node_unref0 (collection);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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 NULL;
		}
	}
	_tmp12_ = begin;
	_tmp13_ = vala_parser_get_src (self, &_tmp12_);
	src = _tmp13_;
	_tmp14_ = vala_parser_parse_embedded_statement (self, "foreach", TRUE, &_inner_error_);
	body = _tmp14_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_source_reference_unref0 (src);
			_vala_code_node_unref0 (collection);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return NULL;
		} else {
			_vala_source_reference_unref0 (src);
			_vala_code_node_unref0 (collection);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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 NULL;
		}
	}
	_tmp15_ = type;
	_tmp16_ = id;
	_tmp17_ = collection;
	_tmp18_ = body;
	_tmp19_ = src;
	_tmp20_ = vala_foreach_statement_new (_tmp15_, _tmp16_, _tmp17_, _tmp18_, _tmp19_);
	result = (ValaStatement*) _tmp20_;
	_vala_code_node_unref0 (body);
	_vala_source_reference_unref0 (src);
	_vala_code_node_unref0 (collection);
	_g_free0 (id);
	_vala_code_node_unref0 (type);
	return result;
}


static ValaStatement* vala_parser_parse_break_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaBreakStatement* _tmp4_;
	ValaStatement* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_BREAK, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_break_statement_new (_tmp3_);
	_tmp5_ = (ValaStatement*) _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	result = _tmp5_;
	return result;
}


static ValaStatement* vala_parser_parse_continue_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaContinueStatement* _tmp4_;
	ValaStatement* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_CONTINUE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_continue_statement_new (_tmp3_);
	_tmp5_ = (ValaStatement*) _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	result = _tmp5_;
	return result;
}


static ValaStatement* vala_parser_parse_return_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* expr = NULL;
	ValaTokenType _tmp1_;
	ValaExpression* _tmp5_;
	ValaSourceLocation _tmp6_;
	ValaSourceReference* _tmp7_;
	ValaSourceReference* _tmp8_;
	ValaReturnStatement* _tmp9_;
	ValaStatement* _tmp10_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_RETURN, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	expr = NULL;
	_tmp1_ = vala_parser_current (self);
	if (_tmp1_ != VALA_TOKEN_TYPE_SEMICOLON) {
		ValaExpression* _tmp2_ = NULL;
		ValaExpression* _tmp3_;
		ValaExpression* _tmp4_;
		_tmp3_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp2_ = _tmp3_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (expr);
				return NULL;
			} else {
				_vala_code_node_unref0 (expr);
				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 NULL;
			}
		}
		_tmp4_ = _tmp2_;
		_tmp2_ = NULL;
		_vala_code_node_unref0 (expr);
		expr = _tmp4_;
		_vala_code_node_unref0 (_tmp2_);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (expr);
			return NULL;
		} else {
			_vala_code_node_unref0 (expr);
			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 NULL;
		}
	}
	_tmp5_ = expr;
	_tmp6_ = begin;
	_tmp7_ = vala_parser_get_src (self, &_tmp6_);
	_tmp8_ = _tmp7_;
	_tmp9_ = vala_return_statement_new (_tmp5_, _tmp8_);
	_tmp10_ = (ValaStatement*) _tmp9_;
	_vala_source_reference_unref0 (_tmp8_);
	result = _tmp10_;
	_vala_code_node_unref0 (expr);
	return result;
}


static ValaStatement* vala_parser_parse_yield_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gboolean _tmp1_ = FALSE;
	ValaTokenType _tmp2_;
	ValaExpression* expr = NULL;
	gboolean _tmp7_;
	ValaExpression* _tmp11_;
	ValaSourceLocation _tmp12_;
	ValaSourceReference* _tmp13_;
	ValaSourceReference* _tmp14_;
	ValaYieldStatement* _tmp15_;
	ValaStatement* _tmp16_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_YIELD, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp2_ = vala_parser_current (self);
	if (_tmp2_ != VALA_TOKEN_TYPE_SEMICOLON) {
		ValaTokenType _tmp3_;
		_tmp3_ = vala_parser_current (self);
		_tmp1_ = _tmp3_ != VALA_TOKEN_TYPE_RETURN;
	} else {
		_tmp1_ = FALSE;
	}
	if (_tmp1_) {
		ValaStatement* _tmp4_ = NULL;
		ValaStatement* _tmp5_;
		ValaStatement* _tmp6_;
		vala_parser_prev (self);
		_tmp5_ = vala_parser_parse_expression_statement (self, &_inner_error_);
		_tmp4_ = _tmp5_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
		_tmp6_ = _tmp4_;
		_tmp4_ = NULL;
		result = _tmp6_;
		_vala_code_node_unref0 (_tmp4_);
		return result;
	}
	expr = NULL;
	_tmp7_ = vala_parser_accept (self, VALA_TOKEN_TYPE_RETURN);
	if (_tmp7_) {
		ValaExpression* _tmp8_ = NULL;
		ValaExpression* _tmp9_;
		ValaExpression* _tmp10_;
		_tmp9_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp8_ = _tmp9_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (expr);
				return NULL;
			} else {
				_vala_code_node_unref0 (expr);
				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 NULL;
			}
		}
		_tmp10_ = _tmp8_;
		_tmp8_ = NULL;
		_vala_code_node_unref0 (expr);
		expr = _tmp10_;
		_vala_code_node_unref0 (_tmp8_);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (expr);
			return NULL;
		} else {
			_vala_code_node_unref0 (expr);
			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 NULL;
		}
	}
	_tmp11_ = expr;
	_tmp12_ = begin;
	_tmp13_ = vala_parser_get_src (self, &_tmp12_);
	_tmp14_ = _tmp13_;
	_tmp15_ = vala_yield_statement_new (_tmp11_, _tmp14_);
	_tmp16_ = (ValaStatement*) _tmp15_;
	_vala_source_reference_unref0 (_tmp14_);
	result = _tmp16_;
	_vala_code_node_unref0 (expr);
	return result;
}


static ValaStatement* vala_parser_parse_throw_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* expr = NULL;
	ValaExpression* _tmp1_;
	ValaExpression* _tmp2_;
	ValaSourceLocation _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaThrowStatement* _tmp6_;
	ValaStatement* _tmp7_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_THROW, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_expression (self, &_inner_error_);
	expr = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (expr);
			return NULL;
		} else {
			_vala_code_node_unref0 (expr);
			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 NULL;
		}
	}
	_tmp2_ = expr;
	_tmp3_ = begin;
	_tmp4_ = vala_parser_get_src (self, &_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_throw_statement_new (_tmp2_, _tmp5_);
	_tmp7_ = (ValaStatement*) _tmp6_;
	_vala_source_reference_unref0 (_tmp5_);
	result = _tmp7_;
	_vala_code_node_unref0 (expr);
	return result;
}


static ValaStatement* vala_parser_parse_try_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaBlock* try_block = NULL;
	ValaBlock* _tmp1_;
	ValaBlock* finally_clause = NULL;
	ValaArrayList* catch_clauses = NULL;
	GEqualFunc _tmp2_;
	ValaArrayList* _tmp3_;
	ValaTokenType _tmp4_;
	ValaTryStatement* stmt = NULL;
	ValaBlock* _tmp13_;
	ValaBlock* _tmp14_;
	ValaSourceLocation _tmp15_;
	ValaSourceReference* _tmp16_;
	ValaSourceReference* _tmp17_;
	ValaTryStatement* _tmp18_;
	ValaTryStatement* _tmp19_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_TRY, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_block (self, &_inner_error_);
	try_block = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	finally_clause = NULL;
	_tmp2_ = g_direct_equal;
	_tmp3_ = vala_array_list_new (VALA_TYPE_CATCH_CLAUSE, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp2_);
	catch_clauses = _tmp3_;
	_tmp4_ = vala_parser_current (self);
	if (_tmp4_ == VALA_TOKEN_TYPE_CATCH) {
		ValaArrayList* _tmp5_;
		ValaTokenType _tmp6_;
		_tmp5_ = catch_clauses;
		vala_parser_parse_catch_clauses (self, (ValaList*) _tmp5_, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_iterable_unref0 (catch_clauses);
				_vala_code_node_unref0 (finally_clause);
				_vala_code_node_unref0 (try_block);
				return NULL;
			} else {
				_vala_iterable_unref0 (catch_clauses);
				_vala_code_node_unref0 (finally_clause);
				_vala_code_node_unref0 (try_block);
				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 NULL;
			}
		}
		_tmp6_ = vala_parser_current (self);
		if (_tmp6_ == VALA_TOKEN_TYPE_FINALLY) {
			ValaBlock* _tmp7_ = NULL;
			ValaBlock* _tmp8_;
			ValaBlock* _tmp9_;
			_tmp8_ = vala_parser_parse_finally_clause (self, &_inner_error_);
			_tmp7_ = _tmp8_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (catch_clauses);
					_vala_code_node_unref0 (finally_clause);
					_vala_code_node_unref0 (try_block);
					return NULL;
				} else {
					_vala_iterable_unref0 (catch_clauses);
					_vala_code_node_unref0 (finally_clause);
					_vala_code_node_unref0 (try_block);
					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 NULL;
				}
			}
			_tmp9_ = _tmp7_;
			_tmp7_ = NULL;
			_vala_code_node_unref0 (finally_clause);
			finally_clause = _tmp9_;
			_vala_code_node_unref0 (_tmp7_);
		}
	} else {
		ValaBlock* _tmp10_ = NULL;
		ValaBlock* _tmp11_;
		ValaBlock* _tmp12_;
		_tmp11_ = vala_parser_parse_finally_clause (self, &_inner_error_);
		_tmp10_ = _tmp11_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_iterable_unref0 (catch_clauses);
				_vala_code_node_unref0 (finally_clause);
				_vala_code_node_unref0 (try_block);
				return NULL;
			} else {
				_vala_iterable_unref0 (catch_clauses);
				_vala_code_node_unref0 (finally_clause);
				_vala_code_node_unref0 (try_block);
				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 NULL;
			}
		}
		_tmp12_ = _tmp10_;
		_tmp10_ = NULL;
		_vala_code_node_unref0 (finally_clause);
		finally_clause = _tmp12_;
		_vala_code_node_unref0 (_tmp10_);
	}
	_tmp13_ = try_block;
	_tmp14_ = finally_clause;
	_tmp15_ = begin;
	_tmp16_ = vala_parser_get_src (self, &_tmp15_);
	_tmp17_ = _tmp16_;
	_tmp18_ = vala_try_statement_new (_tmp13_, _tmp14_, _tmp17_);
	_tmp19_ = _tmp18_;
	_vala_source_reference_unref0 (_tmp17_);
	stmt = _tmp19_;
	{
		ValaArrayList* _clause_list = NULL;
		ValaArrayList* _tmp20_;
		ValaArrayList* _tmp21_;
		gint _clause_size = 0;
		ValaArrayList* _tmp22_;
		gint _tmp23_;
		gint _tmp24_;
		gint _clause_index = 0;
		_tmp20_ = catch_clauses;
		_tmp21_ = _vala_iterable_ref0 (_tmp20_);
		_clause_list = _tmp21_;
		_tmp22_ = _clause_list;
		_tmp23_ = vala_collection_get_size ((ValaCollection*) _tmp22_);
		_tmp24_ = _tmp23_;
		_clause_size = _tmp24_;
		_clause_index = -1;
		while (TRUE) {
			gint _tmp25_;
			gint _tmp26_;
			gint _tmp27_;
			ValaCatchClause* clause = NULL;
			ValaArrayList* _tmp28_;
			gint _tmp29_;
			gpointer _tmp30_;
			ValaTryStatement* _tmp31_;
			ValaCatchClause* _tmp32_;
			_tmp25_ = _clause_index;
			_clause_index = _tmp25_ + 1;
			_tmp26_ = _clause_index;
			_tmp27_ = _clause_size;
			if (!(_tmp26_ < _tmp27_)) {
				break;
			}
			_tmp28_ = _clause_list;
			_tmp29_ = _clause_index;
			_tmp30_ = vala_list_get ((ValaList*) _tmp28_, _tmp29_);
			clause = (ValaCatchClause*) _tmp30_;
			_tmp31_ = stmt;
			_tmp32_ = clause;
			vala_try_statement_add_catch_clause (_tmp31_, _tmp32_);
			_vala_code_node_unref0 (clause);
		}
		_vala_iterable_unref0 (_clause_list);
	}
	result = (ValaStatement*) stmt;
	_vala_iterable_unref0 (catch_clauses);
	_vala_code_node_unref0 (finally_clause);
	_vala_code_node_unref0 (try_block);
	return result;
}


static void vala_parser_parse_catch_clauses (ValaParser* self, ValaList* catch_clauses, GError** error) {
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (catch_clauses != NULL);
	while (TRUE) {
		gboolean _tmp0_;
		ValaSourceLocation begin = {0};
		ValaSourceLocation _tmp1_ = {0};
		ValaDataType* type = NULL;
		gchar* id = NULL;
		gboolean _tmp2_;
		ValaBlock* block = NULL;
		ValaBlock* _tmp9_;
		ValaList* _tmp10_;
		ValaDataType* _tmp11_;
		const gchar* _tmp12_;
		ValaBlock* _tmp13_;
		ValaSourceLocation _tmp14_;
		ValaSourceReference* _tmp15_;
		ValaSourceReference* _tmp16_;
		ValaCatchClause* _tmp17_;
		ValaCatchClause* _tmp18_;
		_tmp0_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CATCH);
		if (!_tmp0_) {
			break;
		}
		vala_parser_get_location (self, &_tmp1_);
		begin = _tmp1_;
		type = NULL;
		id = NULL;
		_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_PARENS);
		if (_tmp2_) {
			ValaDataType* _tmp3_ = NULL;
			ValaDataType* _tmp4_;
			ValaDataType* _tmp5_;
			gchar* _tmp6_ = NULL;
			gchar* _tmp7_;
			gchar* _tmp8_;
			_tmp4_ = vala_parser_parse_type (self, TRUE, TRUE, FALSE, &_inner_error_);
			_tmp3_ = _tmp4_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					return;
				} else {
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					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;
				}
			}
			_tmp5_ = _tmp3_;
			_tmp3_ = NULL;
			_vala_code_node_unref0 (type);
			type = _tmp5_;
			_tmp7_ = vala_parser_parse_identifier (self, &_inner_error_);
			_tmp6_ = _tmp7_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (_tmp3_);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					return;
				} else {
					_vala_code_node_unref0 (_tmp3_);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					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;
				}
			}
			_tmp8_ = _tmp6_;
			_tmp6_ = NULL;
			_g_free0 (id);
			id = _tmp8_;
			vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_g_free0 (_tmp6_);
					_vala_code_node_unref0 (_tmp3_);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					return;
				} else {
					_g_free0 (_tmp6_);
					_vala_code_node_unref0 (_tmp3_);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					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;
				}
			}
			_g_free0 (_tmp6_);
			_vala_code_node_unref0 (_tmp3_);
		}
		_tmp9_ = vala_parser_parse_block (self, &_inner_error_);
		block = _tmp9_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp10_ = catch_clauses;
		_tmp11_ = type;
		_tmp12_ = id;
		_tmp13_ = block;
		_tmp14_ = begin;
		_tmp15_ = vala_parser_get_src (self, &_tmp14_);
		_tmp16_ = _tmp15_;
		_tmp17_ = vala_catch_clause_new (_tmp11_, _tmp12_, _tmp13_, _tmp16_);
		_tmp18_ = _tmp17_;
		vala_collection_add ((ValaCollection*) _tmp10_, _tmp18_);
		_vala_code_node_unref0 (_tmp18_);
		_vala_source_reference_unref0 (_tmp16_);
		_vala_code_node_unref0 (block);
		_g_free0 (id);
		_vala_code_node_unref0 (type);
	}
}


static ValaBlock* vala_parser_parse_finally_clause (ValaParser* self, GError** error) {
	ValaBlock* result = NULL;
	ValaBlock* block = NULL;
	ValaBlock* _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_expect (self, VALA_TOKEN_TYPE_FINALLY, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp0_ = vala_parser_parse_block (self, &_inner_error_);
	block = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	result = block;
	return result;
}


static ValaStatement* vala_parser_parse_lock_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* expr = NULL;
	ValaExpression* _tmp1_;
	ValaBlock* stmt = NULL;
	ValaBlock* _tmp2_;
	ValaExpression* _tmp3_;
	ValaBlock* _tmp4_;
	ValaSourceLocation _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaSourceReference* _tmp7_;
	ValaLockStatement* _tmp8_;
	ValaStatement* _tmp9_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_LOCK, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_expression (self, &_inner_error_);
	expr = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (expr);
			return NULL;
		} else {
			_vala_code_node_unref0 (expr);
			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 NULL;
		}
	}
	_tmp2_ = vala_parser_parse_embedded_statement (self, "lock", FALSE, &_inner_error_);
	stmt = _tmp2_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (expr);
			return NULL;
		} else {
			_vala_code_node_unref0 (expr);
			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 NULL;
		}
	}
	_tmp3_ = expr;
	_tmp4_ = stmt;
	_tmp5_ = begin;
	_tmp6_ = vala_parser_get_src (self, &_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_lock_statement_new (_tmp3_, _tmp4_, _tmp7_);
	_tmp9_ = (ValaStatement*) _tmp8_;
	_vala_source_reference_unref0 (_tmp7_);
	result = _tmp9_;
	_vala_code_node_unref0 (stmt);
	_vala_code_node_unref0 (expr);
	return result;
}


static ValaStatement* vala_parser_parse_delete_statement (ValaParser* self, GError** error) {
	ValaStatement* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaExpression* expr = NULL;
	ValaExpression* _tmp1_;
	ValaExpression* _tmp2_;
	ValaSourceLocation _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaDeleteStatement* _tmp6_;
	ValaStatement* _tmp7_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_DELETE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = vala_parser_parse_expression (self, &_inner_error_);
	expr = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (expr);
			return NULL;
		} else {
			_vala_code_node_unref0 (expr);
			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 NULL;
		}
	}
	_tmp2_ = expr;
	_tmp3_ = begin;
	_tmp4_ = vala_parser_get_src (self, &_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_delete_statement_new (_tmp2_, _tmp5_);
	_tmp7_ = (ValaStatement*) _tmp6_;
	_vala_source_reference_unref0 (_tmp5_);
	result = _tmp7_;
	_vala_code_node_unref0 (expr);
	return result;
}


static gchar* vala_parser_parse_attribute_value (ValaParser* self, GError** error) {
	gchar* result = NULL;
	ValaTokenType _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_parser_current (self);
	switch (_tmp0_) {
		case VALA_TOKEN_TYPE_NULL:
		case VALA_TOKEN_TYPE_TRUE:
		case VALA_TOKEN_TYPE_FALSE:
		case VALA_TOKEN_TYPE_INTEGER_LITERAL:
		case VALA_TOKEN_TYPE_REAL_LITERAL:
		case VALA_TOKEN_TYPE_STRING_LITERAL:
		{
			gchar* _tmp1_;
			vala_parser_next (self);
			_tmp1_ = vala_parser_get_last_string (self);
			result = _tmp1_;
			return result;
		}
		case VALA_TOKEN_TYPE_MINUS:
		{
			ValaTokenType _tmp2_;
			vala_parser_next (self);
			_tmp2_ = vala_parser_current (self);
			switch (_tmp2_) {
				case VALA_TOKEN_TYPE_INTEGER_LITERAL:
				case VALA_TOKEN_TYPE_REAL_LITERAL:
				{
					gchar* _tmp3_;
					gchar* _tmp4_;
					gchar* _tmp5_;
					gchar* _tmp6_;
					vala_parser_next (self);
					_tmp3_ = vala_parser_get_last_string (self);
					_tmp4_ = _tmp3_;
					_tmp5_ = g_strconcat ("-", _tmp4_, NULL);
					_tmp6_ = _tmp5_;
					_g_free0 (_tmp4_);
					result = _tmp6_;
					return result;
				}
				default:
				{
					GError* _tmp7_;
					_tmp7_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected number");
					_inner_error_ = _tmp7_;
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						return NULL;
					} else {
						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 NULL;
					}
				}
			}
		}
		default:
		{
			GError* _tmp8_;
			_tmp8_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected literal");
			_inner_error_ = _tmp8_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return NULL;
			} else {
				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 NULL;
			}
		}
	}
}


static ValaList* vala_parser_parse_attributes (ValaParser* self, GError** error) {
	ValaList* result = NULL;
	ValaTokenType _tmp0_;
	ValaArrayList* attrs = NULL;
	GEqualFunc _tmp1_;
	ValaArrayList* _tmp2_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_parser_current (self);
	if (_tmp0_ != VALA_TOKEN_TYPE_OPEN_BRACKET) {
		result = NULL;
		return result;
	}
	_tmp1_ = g_direct_equal;
	_tmp2_ = vala_array_list_new (VALA_TYPE_ATTRIBUTE, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp1_);
	attrs = _tmp2_;
	while (TRUE) {
		gboolean _tmp3_;
		_tmp3_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_BRACKET);
		if (!_tmp3_) {
			break;
		}
		{
			gboolean _tmp4_ = FALSE;
			_tmp4_ = TRUE;
			while (TRUE) {
				ValaSourceLocation begin = {0};
				ValaSourceLocation _tmp6_ = {0};
				gchar* id = NULL;
				gchar* _tmp7_;
				ValaAttribute* attr = NULL;
				const gchar* _tmp8_;
				ValaSourceLocation _tmp9_;
				ValaSourceReference* _tmp10_;
				ValaSourceReference* _tmp11_;
				ValaAttribute* _tmp12_;
				ValaAttribute* _tmp13_;
				gboolean _tmp14_;
				ValaArrayList* _tmp25_;
				ValaAttribute* _tmp26_;
				if (!_tmp4_) {
					gboolean _tmp5_;
					_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp5_) {
						break;
					}
				}
				_tmp4_ = FALSE;
				vala_parser_get_location (self, &_tmp6_);
				begin = _tmp6_;
				_tmp7_ = vala_parser_parse_identifier (self, &_inner_error_);
				id = _tmp7_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (attrs);
						return NULL;
					} else {
						_vala_iterable_unref0 (attrs);
						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 NULL;
					}
				}
				_tmp8_ = id;
				_tmp9_ = begin;
				_tmp10_ = vala_parser_get_src (self, &_tmp9_);
				_tmp11_ = _tmp10_;
				_tmp12_ = vala_attribute_new (_tmp8_, _tmp11_);
				_tmp13_ = _tmp12_;
				_vala_source_reference_unref0 (_tmp11_);
				attr = _tmp13_;
				_tmp14_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OPEN_PARENS);
				if (_tmp14_) {
					ValaTokenType _tmp15_;
					_tmp15_ = vala_parser_current (self);
					if (_tmp15_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
						{
							gboolean _tmp16_ = FALSE;
							_tmp16_ = TRUE;
							while (TRUE) {
								gchar* _tmp18_ = NULL;
								gchar* _tmp19_;
								gchar* _tmp20_;
								gchar* _tmp21_ = NULL;
								gchar* _tmp22_;
								ValaAttribute* _tmp23_;
								const gchar* _tmp24_;
								if (!_tmp16_) {
									gboolean _tmp17_;
									_tmp17_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
									if (!_tmp17_) {
										break;
									}
								}
								_tmp16_ = FALSE;
								_tmp19_ = vala_parser_parse_identifier (self, &_inner_error_);
								_tmp18_ = _tmp19_;
								if (G_UNLIKELY (_inner_error_ != NULL)) {
									if (_inner_error_->domain == VALA_PARSE_ERROR) {
										g_propagate_error (error, _inner_error_);
										_vala_code_node_unref0 (attr);
										_g_free0 (id);
										_vala_iterable_unref0 (attrs);
										return NULL;
									} else {
										_vala_code_node_unref0 (attr);
										_g_free0 (id);
										_vala_iterable_unref0 (attrs);
										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 NULL;
									}
								}
								_tmp20_ = _tmp18_;
								_tmp18_ = NULL;
								_g_free0 (id);
								id = _tmp20_;
								vala_parser_expect (self, VALA_TOKEN_TYPE_ASSIGN, &_inner_error_);
								if (G_UNLIKELY (_inner_error_ != NULL)) {
									if (_inner_error_->domain == VALA_PARSE_ERROR) {
										g_propagate_error (error, _inner_error_);
										_g_free0 (_tmp18_);
										_vala_code_node_unref0 (attr);
										_g_free0 (id);
										_vala_iterable_unref0 (attrs);
										return NULL;
									} else {
										_g_free0 (_tmp18_);
										_vala_code_node_unref0 (attr);
										_g_free0 (id);
										_vala_iterable_unref0 (attrs);
										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 NULL;
									}
								}
								_tmp22_ = vala_parser_parse_attribute_value (self, &_inner_error_);
								_tmp21_ = _tmp22_;
								if (G_UNLIKELY (_inner_error_ != NULL)) {
									if (_inner_error_->domain == VALA_PARSE_ERROR) {
										g_propagate_error (error, _inner_error_);
										_g_free0 (_tmp18_);
										_vala_code_node_unref0 (attr);
										_g_free0 (id);
										_vala_iterable_unref0 (attrs);
										return NULL;
									} else {
										_g_free0 (_tmp18_);
										_vala_code_node_unref0 (attr);
										_g_free0 (id);
										_vala_iterable_unref0 (attrs);
										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 NULL;
									}
								}
								_tmp23_ = attr;
								_tmp24_ = id;
								vala_attribute_add_argument (_tmp23_, _tmp24_, _tmp21_);
								_g_free0 (_tmp21_);
								_g_free0 (_tmp18_);
							}
						}
					}
					vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (attr);
							_g_free0 (id);
							_vala_iterable_unref0 (attrs);
							return NULL;
						} else {
							_vala_code_node_unref0 (attr);
							_g_free0 (id);
							_vala_iterable_unref0 (attrs);
							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 NULL;
						}
					}
				}
				_tmp25_ = attrs;
				_tmp26_ = attr;
				vala_collection_add ((ValaCollection*) _tmp25_, _tmp26_);
				_vala_code_node_unref0 (attr);
				_g_free0 (id);
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACKET, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_iterable_unref0 (attrs);
				return NULL;
			} else {
				_vala_iterable_unref0 (attrs);
				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 NULL;
			}
		}
	}
	result = (ValaList*) attrs;
	return result;
}


static void vala_parser_set_attributes (ValaParser* self, ValaCodeNode* node, ValaList* attributes) {
	ValaList* _tmp0_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (node != NULL);
	_tmp0_ = attributes;
	if (_tmp0_ != NULL) {
		{
			ValaList* _attr_list = NULL;
			ValaList* _tmp1_;
			ValaList* _tmp2_;
			gint _attr_size = 0;
			ValaList* _tmp3_;
			gint _tmp4_;
			gint _tmp5_;
			gint _attr_index = 0;
			_tmp1_ = attributes;
			_tmp2_ = _vala_iterable_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALA_TYPE_LIST, ValaList));
			_attr_list = _tmp2_;
			_tmp3_ = _attr_list;
			_tmp4_ = vala_collection_get_size ((ValaCollection*) _tmp3_);
			_tmp5_ = _tmp4_;
			_attr_size = _tmp5_;
			_attr_index = -1;
			while (TRUE) {
				gint _tmp6_;
				gint _tmp7_;
				gint _tmp8_;
				ValaAttribute* attr = NULL;
				ValaList* _tmp9_;
				gint _tmp10_;
				gpointer _tmp11_;
				ValaCodeNode* _tmp12_;
				ValaAttribute* _tmp13_;
				const gchar* _tmp14_;
				const gchar* _tmp15_;
				ValaAttribute* _tmp16_;
				ValaAttribute* _tmp17_;
				gboolean _tmp18_;
				ValaCodeNode* _tmp27_;
				ValaAttribute* _tmp28_;
				ValaAttribute* _tmp29_;
				_tmp6_ = _attr_index;
				_attr_index = _tmp6_ + 1;
				_tmp7_ = _attr_index;
				_tmp8_ = _attr_size;
				if (!(_tmp7_ < _tmp8_)) {
					break;
				}
				_tmp9_ = _attr_list;
				_tmp10_ = _attr_index;
				_tmp11_ = vala_list_get (_tmp9_, _tmp10_);
				attr = (ValaAttribute*) _tmp11_;
				_tmp12_ = node;
				_tmp13_ = attr;
				_tmp14_ = vala_attribute_get_name (_tmp13_);
				_tmp15_ = _tmp14_;
				_tmp16_ = vala_code_node_get_attribute (_tmp12_, _tmp15_);
				_tmp17_ = _tmp16_;
				_tmp18_ = _tmp17_ != NULL;
				_vala_code_node_unref0 (_tmp17_);
				if (_tmp18_) {
					ValaAttribute* _tmp19_;
					ValaSourceReference* _tmp20_;
					ValaSourceReference* _tmp21_;
					ValaAttribute* _tmp22_;
					const gchar* _tmp23_;
					const gchar* _tmp24_;
					gchar* _tmp25_;
					gchar* _tmp26_;
					_tmp19_ = attr;
					_tmp20_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp19_);
					_tmp21_ = _tmp20_;
					_tmp22_ = attr;
					_tmp23_ = vala_attribute_get_name (_tmp22_);
					_tmp24_ = _tmp23_;
					_tmp25_ = g_strdup_printf ("duplicate attribute `%s`", _tmp24_);
					_tmp26_ = _tmp25_;
					vala_report_error (_tmp21_, _tmp26_);
					_g_free0 (_tmp26_);
				}
				_tmp27_ = node;
				_tmp28_ = attr;
				_tmp29_ = _vala_code_node_ref0 (_tmp28_);
				_tmp27_->attributes = g_list_append (_tmp27_->attributes, _tmp29_);
				_vala_code_node_unref0 (attr);
			}
			_vala_iterable_unref0 (_attr_list);
		}
	}
}


static void vala_parser_parse_main_block (ValaParser* self, ValaSymbol* parent, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaMethod* method = NULL;
	ValaVoidType* _tmp1_;
	ValaVoidType* _tmp2_;
	ValaSourceLocation _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaMethod* _tmp6_;
	ValaMethod* _tmp7_;
	ValaSourceLocation _tmp8_;
	ValaSourceReference* _tmp9_;
	ValaSourceReference* _tmp10_;
	ValaBlock* _tmp11_;
	ValaBlock* _tmp12_;
	ValaBlock* _tmp13_;
	ValaBlock* _tmp14_;
	ValaTokenType _tmp15_;
	ValaBlock* _tmp18_;
	ValaBlock* _tmp19_;
	ValaSourceReference* _tmp20_;
	ValaSourceReference* _tmp21_;
	ValaSourceReference* _tmp22_;
	ValaSourceReference* _tmp23_;
	ValaSourceLocation _tmp24_ = {0};
	ValaSourceLocation _tmp25_;
	ValaCodeContext* _tmp26_;
	gboolean _tmp27_;
	gboolean _tmp28_;
	ValaSymbol* _tmp31_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_void_type_new (NULL);
	_tmp2_ = _tmp1_;
	_tmp3_ = begin;
	_tmp4_ = vala_parser_get_src (self, &_tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = vala_method_new ("main", (ValaDataType*) _tmp2_, _tmp5_, NULL);
	_tmp7_ = _tmp6_;
	_vala_source_reference_unref0 (_tmp5_);
	_vala_code_node_unref0 (_tmp2_);
	method = _tmp7_;
	_tmp8_ = begin;
	_tmp9_ = vala_parser_get_src (self, &_tmp8_);
	_tmp10_ = _tmp9_;
	_tmp11_ = vala_block_new (_tmp10_);
	_tmp12_ = _tmp11_;
	vala_subroutine_set_body ((ValaSubroutine*) method, _tmp12_);
	_vala_code_node_unref0 (_tmp12_);
	_vala_source_reference_unref0 (_tmp10_);
	_tmp13_ = vala_subroutine_get_body ((ValaSubroutine*) method);
	_tmp14_ = _tmp13_;
	vala_parser_parse_statements (self, _tmp14_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (method);
			return;
		} else {
			_vala_code_node_unref0 (method);
			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;
		}
	}
	_tmp15_ = vala_parser_current (self);
	if (_tmp15_ != VALA_TOKEN_TYPE_EOF) {
		ValaSourceReference* _tmp16_;
		ValaSourceReference* _tmp17_;
		_tmp16_ = vala_parser_get_current_src (self);
		_tmp17_ = _tmp16_;
		vala_report_error (_tmp17_, "expected end of file");
		_vala_source_reference_unref0 (_tmp17_);
	}
	_tmp18_ = vala_subroutine_get_body ((ValaSubroutine*) method);
	_tmp19_ = _tmp18_;
	_tmp20_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp19_);
	_tmp21_ = _tmp20_;
	_tmp22_ = vala_parser_get_current_src (self);
	_tmp23_ = _tmp22_;
	vala_source_reference_get_end (_tmp23_, &_tmp24_);
	_tmp25_ = _tmp24_;
	vala_source_reference_set_end (_tmp21_, &_tmp25_);
	_vala_source_reference_unref0 (_tmp23_);
	_tmp26_ = self->priv->context;
	_tmp27_ = vala_code_context_get_experimental (_tmp26_);
	_tmp28_ = _tmp27_;
	if (!_tmp28_) {
		ValaSourceReference* _tmp29_;
		ValaSourceReference* _tmp30_;
		_tmp29_ = vala_code_node_get_source_reference ((ValaCodeNode*) method);
		_tmp30_ = _tmp29_;
		vala_report_warning (_tmp30_, "main blocks are experimental");
	}
	_tmp31_ = parent;
	vala_symbol_add_method (_tmp31_, method);
	_vala_code_node_unref0 (method);
}


static void vala_parser_parse_declaration (ValaParser* self, ValaSymbol* parent, gboolean root, GError** error) {
	ValaScanner* _tmp0_;
	ValaComment* _tmp1_;
	ValaList* attrs = NULL;
	ValaList* _tmp2_;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp3_ = {0};
	ValaTokenType last_keyword = 0;
	ValaTokenType _tmp4_;
	ValaTokenType _tmp8_;
	ValaSourceLocation _tmp62_;
	GError* _tmp63_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	_tmp0_ = self->priv->scanner;
	_tmp1_ = vala_scanner_pop_comment (_tmp0_);
	_vala_comment_unref0 (self->priv->comment);
	self->priv->comment = _tmp1_;
	_tmp2_ = vala_parser_parse_attributes (self, &_inner_error_);
	attrs = _tmp2_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	vala_parser_get_location (self, &_tmp3_);
	begin = _tmp3_;
	_tmp4_ = vala_parser_current (self);
	last_keyword = _tmp4_;
	while (TRUE) {
		ValaTokenType _tmp5_;
		gboolean _tmp6_;
		ValaTokenType _tmp7_;
		_tmp5_ = vala_parser_current (self);
		_tmp6_ = vala_parser_is_declaration_keyword (self, _tmp5_);
		if (!_tmp6_) {
			break;
		}
		_tmp7_ = vala_parser_current (self);
		last_keyword = _tmp7_;
		vala_parser_next (self);
	}
	_tmp8_ = vala_parser_current (self);
	switch (_tmp8_) {
		case VALA_TOKEN_TYPE_CONSTRUCT:
		{
			ValaSourceLocation _tmp9_;
			ValaSymbol* _tmp10_;
			ValaList* _tmp11_;
			_tmp9_ = begin;
			vala_parser_rollback (self, &_tmp9_);
			_tmp10_ = parent;
			_tmp11_ = attrs;
			vala_parser_parse_constructor_declaration (self, _tmp10_, _tmp11_, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (attrs);
					return;
				} else {
					_vala_iterable_unref0 (attrs);
					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;
				}
			}
			_vala_iterable_unref0 (attrs);
			return;
		}
		case VALA_TOKEN_TYPE_TILDE:
		{
			ValaSourceLocation _tmp12_;
			ValaSymbol* _tmp13_;
			ValaList* _tmp14_;
			_tmp12_ = begin;
			vala_parser_rollback (self, &_tmp12_);
			_tmp13_ = parent;
			_tmp14_ = attrs;
			vala_parser_parse_destructor_declaration (self, _tmp13_, _tmp14_, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (attrs);
					return;
				} else {
					_vala_iterable_unref0 (attrs);
					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;
				}
			}
			_vala_iterable_unref0 (attrs);
			return;
		}
		case VALA_TOKEN_TYPE_OPEN_BRACE:
		case VALA_TOKEN_TYPE_SEMICOLON:
		case VALA_TOKEN_TYPE_IF:
		case VALA_TOKEN_TYPE_SWITCH:
		case VALA_TOKEN_TYPE_WHILE:
		case VALA_TOKEN_TYPE_DO:
		case VALA_TOKEN_TYPE_FOR:
		case VALA_TOKEN_TYPE_FOREACH:
		case VALA_TOKEN_TYPE_BREAK:
		case VALA_TOKEN_TYPE_CONTINUE:
		case VALA_TOKEN_TYPE_RETURN:
		case VALA_TOKEN_TYPE_YIELD:
		case VALA_TOKEN_TYPE_THROW:
		case VALA_TOKEN_TYPE_TRY:
		case VALA_TOKEN_TYPE_LOCK:
		case VALA_TOKEN_TYPE_DELETE:
		case VALA_TOKEN_TYPE_VAR:
		case VALA_TOKEN_TYPE_OP_INC:
		case VALA_TOKEN_TYPE_OP_DEC:
		case VALA_TOKEN_TYPE_BASE:
		case VALA_TOKEN_TYPE_THIS:
		case VALA_TOKEN_TYPE_STAR:
		case VALA_TOKEN_TYPE_NEW:
		{
			ValaList* _tmp15_;
			gboolean _tmp17_;
			ValaSourceLocation _tmp19_;
			ValaSymbol* _tmp20_;
			_tmp15_ = attrs;
			if (_tmp15_ != NULL) {
				GError* _tmp16_;
				_tmp16_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected statement");
				_inner_error_ = _tmp16_;
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (attrs);
					return;
				} else {
					_vala_iterable_unref0 (attrs);
					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;
				}
			}
			_tmp17_ = root;
			if (!_tmp17_) {
				GError* _tmp18_;
				_tmp18_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "statements outside blocks allowed only in root namespace");
				_inner_error_ = _tmp18_;
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (attrs);
					return;
				} else {
					_vala_iterable_unref0 (attrs);
					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;
				}
			}
			_tmp19_ = begin;
			vala_parser_rollback (self, &_tmp19_);
			_tmp20_ = parent;
			vala_parser_parse_main_block (self, _tmp20_, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (attrs);
					return;
				} else {
					_vala_iterable_unref0 (attrs);
					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;
				}
			}
			_vala_iterable_unref0 (attrs);
			return;
		}
		default:
		{
			gboolean _tmp21_;
			ValaTokenType _tmp26_;
			_tmp21_ = root;
			if (_tmp21_) {
				gboolean is_expr = FALSE;
				gboolean _tmp22_;
				gboolean _tmp23_;
				_tmp22_ = vala_parser_is_expression (self, &_inner_error_);
				is_expr = _tmp22_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (attrs);
						return;
					} else {
						_vala_iterable_unref0 (attrs);
						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;
					}
				}
				_tmp23_ = is_expr;
				if (_tmp23_) {
					ValaSourceLocation _tmp24_;
					ValaSymbol* _tmp25_;
					_tmp24_ = begin;
					vala_parser_rollback (self, &_tmp24_);
					_tmp25_ = parent;
					vala_parser_parse_main_block (self, _tmp25_, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_iterable_unref0 (attrs);
							return;
						} else {
							_vala_iterable_unref0 (attrs);
							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;
						}
					}
					_vala_iterable_unref0 (attrs);
					return;
				}
			}
			vala_parser_skip_type (self, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (attrs);
					return;
				} else {
					_vala_iterable_unref0 (attrs);
					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;
				}
			}
			_tmp26_ = vala_parser_current (self);
			switch (_tmp26_) {
				case VALA_TOKEN_TYPE_OPEN_BRACE:
				case VALA_TOKEN_TYPE_SEMICOLON:
				case VALA_TOKEN_TYPE_COLON:
				{
					ValaSourceLocation _tmp27_;
					ValaTokenType _tmp28_;
					_tmp27_ = begin;
					vala_parser_rollback (self, &_tmp27_);
					_tmp28_ = last_keyword;
					switch (_tmp28_) {
						case VALA_TOKEN_TYPE_CLASS:
						{
							ValaSymbol* _tmp29_;
							ValaList* _tmp30_;
							_tmp29_ = parent;
							_tmp30_ = attrs;
							vala_parser_parse_class_declaration (self, _tmp29_, _tmp30_, &_inner_error_);
							if (G_UNLIKELY (_inner_error_ != NULL)) {
								if (_inner_error_->domain == VALA_PARSE_ERROR) {
									g_propagate_error (error, _inner_error_);
									_vala_iterable_unref0 (attrs);
									return;
								} else {
									_vala_iterable_unref0 (attrs);
									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;
								}
							}
							_vala_iterable_unref0 (attrs);
							return;
						}
						case VALA_TOKEN_TYPE_ENUM:
						{
							ValaSymbol* _tmp31_;
							ValaList* _tmp32_;
							_tmp31_ = parent;
							_tmp32_ = attrs;
							vala_parser_parse_enum_declaration (self, _tmp31_, _tmp32_, &_inner_error_);
							if (G_UNLIKELY (_inner_error_ != NULL)) {
								if (_inner_error_->domain == VALA_PARSE_ERROR) {
									g_propagate_error (error, _inner_error_);
									_vala_iterable_unref0 (attrs);
									return;
								} else {
									_vala_iterable_unref0 (attrs);
									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;
								}
							}
							_vala_iterable_unref0 (attrs);
							return;
						}
						case VALA_TOKEN_TYPE_ERRORDOMAIN:
						{
							ValaSymbol* _tmp33_;
							ValaList* _tmp34_;
							_tmp33_ = parent;
							_tmp34_ = attrs;
							vala_parser_parse_errordomain_declaration (self, _tmp33_, _tmp34_, &_inner_error_);
							if (G_UNLIKELY (_inner_error_ != NULL)) {
								if (_inner_error_->domain == VALA_PARSE_ERROR) {
									g_propagate_error (error, _inner_error_);
									_vala_iterable_unref0 (attrs);
									return;
								} else {
									_vala_iterable_unref0 (attrs);
									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;
								}
							}
							_vala_iterable_unref0 (attrs);
							return;
						}
						case VALA_TOKEN_TYPE_INTERFACE:
						{
							ValaSymbol* _tmp35_;
							ValaList* _tmp36_;
							_tmp35_ = parent;
							_tmp36_ = attrs;
							vala_parser_parse_interface_declaration (self, _tmp35_, _tmp36_, &_inner_error_);
							if (G_UNLIKELY (_inner_error_ != NULL)) {
								if (_inner_error_->domain == VALA_PARSE_ERROR) {
									g_propagate_error (error, _inner_error_);
									_vala_iterable_unref0 (attrs);
									return;
								} else {
									_vala_iterable_unref0 (attrs);
									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;
								}
							}
							_vala_iterable_unref0 (attrs);
							return;
						}
						case VALA_TOKEN_TYPE_NAMESPACE:
						{
							ValaSymbol* _tmp37_;
							ValaList* _tmp38_;
							_tmp37_ = parent;
							_tmp38_ = attrs;
							vala_parser_parse_namespace_declaration (self, _tmp37_, _tmp38_, &_inner_error_);
							if (G_UNLIKELY (_inner_error_ != NULL)) {
								if (_inner_error_->domain == VALA_PARSE_ERROR) {
									g_propagate_error (error, _inner_error_);
									_vala_iterable_unref0 (attrs);
									return;
								} else {
									_vala_iterable_unref0 (attrs);
									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;
								}
							}
							_vala_iterable_unref0 (attrs);
							return;
						}
						case VALA_TOKEN_TYPE_STRUCT:
						{
							ValaSymbol* _tmp39_;
							ValaList* _tmp40_;
							_tmp39_ = parent;
							_tmp40_ = attrs;
							vala_parser_parse_struct_declaration (self, _tmp39_, _tmp40_, &_inner_error_);
							if (G_UNLIKELY (_inner_error_ != NULL)) {
								if (_inner_error_->domain == VALA_PARSE_ERROR) {
									g_propagate_error (error, _inner_error_);
									_vala_iterable_unref0 (attrs);
									return;
								} else {
									_vala_iterable_unref0 (attrs);
									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;
								}
							}
							_vala_iterable_unref0 (attrs);
							return;
						}
						default:
						{
							break;
						}
					}
					break;
				}
				case VALA_TOKEN_TYPE_OPEN_PARENS:
				{
					ValaSourceLocation _tmp41_;
					ValaSymbol* _tmp42_;
					ValaList* _tmp43_;
					_tmp41_ = begin;
					vala_parser_rollback (self, &_tmp41_);
					_tmp42_ = parent;
					_tmp43_ = attrs;
					vala_parser_parse_creation_method_declaration (self, _tmp42_, _tmp43_, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_iterable_unref0 (attrs);
							return;
						} else {
							_vala_iterable_unref0 (attrs);
							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;
						}
					}
					_vala_iterable_unref0 (attrs);
					return;
				}
				default:
				{
					ValaTokenType _tmp44_;
					vala_parser_skip_type (self, &_inner_error_);
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_iterable_unref0 (attrs);
							return;
						} else {
							_vala_iterable_unref0 (attrs);
							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;
						}
					}
					_tmp44_ = vala_parser_current (self);
					switch (_tmp44_) {
						case VALA_TOKEN_TYPE_OPEN_PARENS:
						{
							ValaSourceLocation _tmp45_;
							ValaTokenType _tmp46_;
							_tmp45_ = begin;
							vala_parser_rollback (self, &_tmp45_);
							_tmp46_ = last_keyword;
							switch (_tmp46_) {
								case VALA_TOKEN_TYPE_DELEGATE:
								{
									ValaSymbol* _tmp47_;
									ValaList* _tmp48_;
									_tmp47_ = parent;
									_tmp48_ = attrs;
									vala_parser_parse_delegate_declaration (self, _tmp47_, _tmp48_, &_inner_error_);
									if (G_UNLIKELY (_inner_error_ != NULL)) {
										if (_inner_error_->domain == VALA_PARSE_ERROR) {
											g_propagate_error (error, _inner_error_);
											_vala_iterable_unref0 (attrs);
											return;
										} else {
											_vala_iterable_unref0 (attrs);
											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;
										}
									}
									_vala_iterable_unref0 (attrs);
									return;
								}
								case VALA_TOKEN_TYPE_SIGNAL:
								{
									ValaSymbol* _tmp49_;
									ValaList* _tmp50_;
									_tmp49_ = parent;
									_tmp50_ = attrs;
									vala_parser_parse_signal_declaration (self, _tmp49_, _tmp50_, &_inner_error_);
									if (G_UNLIKELY (_inner_error_ != NULL)) {
										if (_inner_error_->domain == VALA_PARSE_ERROR) {
											g_propagate_error (error, _inner_error_);
											_vala_iterable_unref0 (attrs);
											return;
										} else {
											_vala_iterable_unref0 (attrs);
											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;
										}
									}
									_vala_iterable_unref0 (attrs);
									return;
								}
								default:
								{
									ValaSymbol* _tmp51_;
									ValaList* _tmp52_;
									_tmp51_ = parent;
									_tmp52_ = attrs;
									vala_parser_parse_method_declaration (self, _tmp51_, _tmp52_, &_inner_error_);
									if (G_UNLIKELY (_inner_error_ != NULL)) {
										if (_inner_error_->domain == VALA_PARSE_ERROR) {
											g_propagate_error (error, _inner_error_);
											_vala_iterable_unref0 (attrs);
											return;
										} else {
											_vala_iterable_unref0 (attrs);
											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;
										}
									}
									_vala_iterable_unref0 (attrs);
									return;
								}
							}
						}
						case VALA_TOKEN_TYPE_ASSIGN:
						case VALA_TOKEN_TYPE_SEMICOLON:
						{
							ValaSourceLocation _tmp53_;
							ValaTokenType _tmp54_;
							_tmp53_ = begin;
							vala_parser_rollback (self, &_tmp53_);
							_tmp54_ = last_keyword;
							switch (_tmp54_) {
								case VALA_TOKEN_TYPE_CONST:
								{
									ValaSymbol* _tmp55_;
									ValaList* _tmp56_;
									_tmp55_ = parent;
									_tmp56_ = attrs;
									vala_parser_parse_constant_declaration (self, _tmp55_, _tmp56_, &_inner_error_);
									if (G_UNLIKELY (_inner_error_ != NULL)) {
										if (_inner_error_->domain == VALA_PARSE_ERROR) {
											g_propagate_error (error, _inner_error_);
											_vala_iterable_unref0 (attrs);
											return;
										} else {
											_vala_iterable_unref0 (attrs);
											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;
										}
									}
									_vala_iterable_unref0 (attrs);
									return;
								}
								default:
								{
									ValaSymbol* _tmp57_;
									ValaList* _tmp58_;
									_tmp57_ = parent;
									_tmp58_ = attrs;
									vala_parser_parse_field_declaration (self, _tmp57_, _tmp58_, &_inner_error_);
									if (G_UNLIKELY (_inner_error_ != NULL)) {
										if (_inner_error_->domain == VALA_PARSE_ERROR) {
											g_propagate_error (error, _inner_error_);
											_vala_iterable_unref0 (attrs);
											return;
										} else {
											_vala_iterable_unref0 (attrs);
											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;
										}
									}
									_vala_iterable_unref0 (attrs);
									return;
								}
							}
						}
						case VALA_TOKEN_TYPE_OPEN_BRACE:
						case VALA_TOKEN_TYPE_THROWS:
						{
							ValaSourceLocation _tmp59_;
							ValaSymbol* _tmp60_;
							ValaList* _tmp61_;
							_tmp59_ = begin;
							vala_parser_rollback (self, &_tmp59_);
							_tmp60_ = parent;
							_tmp61_ = attrs;
							vala_parser_parse_property_declaration (self, _tmp60_, _tmp61_, &_inner_error_);
							if (G_UNLIKELY (_inner_error_ != NULL)) {
								if (_inner_error_->domain == VALA_PARSE_ERROR) {
									g_propagate_error (error, _inner_error_);
									_vala_iterable_unref0 (attrs);
									return;
								} else {
									_vala_iterable_unref0 (attrs);
									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;
								}
							}
							_vala_iterable_unref0 (attrs);
							return;
						}
						default:
						{
							break;
						}
					}
					break;
				}
			}
			break;
		}
	}
	_tmp62_ = begin;
	vala_parser_rollback (self, &_tmp62_);
	_tmp63_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected declaration");
	_inner_error_ = _tmp63_;
	if (_inner_error_->domain == VALA_PARSE_ERROR) {
		g_propagate_error (error, _inner_error_);
		_vala_iterable_unref0 (attrs);
		return;
	} else {
		_vala_iterable_unref0 (attrs);
		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;
	}
	_vala_iterable_unref0 (attrs);
}


static void vala_parser_parse_declarations (ValaParser* self, ValaSymbol* parent, gboolean root, GError** error) {
	gboolean _tmp0_;
	gboolean _tmp13_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	_tmp0_ = root;
	if (!_tmp0_) {
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
	}
	while (TRUE) {
		gboolean _tmp1_ = FALSE;
		ValaTokenType _tmp2_;
		_tmp2_ = vala_parser_current (self);
		if (_tmp2_ != VALA_TOKEN_TYPE_CLOSE_BRACE) {
			ValaTokenType _tmp3_;
			_tmp3_ = vala_parser_current (self);
			_tmp1_ = _tmp3_ != VALA_TOKEN_TYPE_EOF;
		} else {
			_tmp1_ = FALSE;
		}
		if (!_tmp1_) {
			break;
		}
		{
			ValaSymbol* _tmp4_;
			ValaSymbol* _tmp5_;
			ValaCodeContext* _tmp6_;
			ValaNamespace* _tmp7_;
			ValaNamespace* _tmp8_;
			_tmp4_ = parent;
			_tmp5_ = parent;
			_tmp6_ = self->priv->context;
			_tmp7_ = vala_code_context_get_root (_tmp6_);
			_tmp8_ = _tmp7_;
			vala_parser_parse_declaration (self, _tmp4_, _tmp5_ == G_TYPE_CHECK_INSTANCE_CAST (_tmp8_, VALA_TYPE_SYMBOL, ValaSymbol), &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					goto __catch13_vala_parse_error;
				}
				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;
			}
		}
		goto __finally13;
		__catch13_vala_parse_error:
		{
			GError* e = NULL;
			GError* _tmp9_;
			gint r = 0;
			gint _tmp12_;
			e = _inner_error_;
			_inner_error_ = NULL;
			_tmp9_ = e;
			vala_parser_report_parse_error (self, _tmp9_);
			while (TRUE) {
				ValaParserRecoveryState _tmp10_;
				gint _tmp11_;
				_tmp10_ = vala_parser_recover (self);
				r = (gint) _tmp10_;
				_tmp11_ = r;
				if (_tmp11_ == ((gint) VALA_PARSER_RECOVERY_STATE_STATEMENT_BEGIN)) {
					vala_parser_next (self);
				} else {
					break;
				}
			}
			_tmp12_ = r;
			if (_tmp12_ == ((gint) VALA_PARSER_RECOVERY_STATE_EOF)) {
				_g_error_free0 (e);
				return;
			}
			_g_error_free0 (e);
		}
		__finally13:
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
	}
	_tmp13_ = root;
	if (!_tmp13_) {
		gboolean _tmp14_;
		_tmp14_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CLOSE_BRACE);
		if (!_tmp14_) {
			ValaCodeContext* _tmp15_;
			ValaReport* _tmp16_;
			ValaReport* _tmp17_;
			gint _tmp18_;
			_tmp15_ = self->priv->context;
			_tmp16_ = vala_code_context_get_report (_tmp15_);
			_tmp17_ = _tmp16_;
			_tmp18_ = vala_report_get_errors (_tmp17_);
			if (_tmp18_ == 0) {
				ValaSourceReference* _tmp19_;
				ValaSourceReference* _tmp20_;
				_tmp19_ = vala_parser_get_current_src (self);
				_tmp20_ = _tmp19_;
				vala_report_error (_tmp20_, "expected `}'");
				_vala_source_reference_unref0 (_tmp20_);
			}
		}
	}
}


static ValaParserRecoveryState vala_parser_recover (ValaParser* self) {
	ValaParserRecoveryState result = 0;
	g_return_val_if_fail (self != NULL, 0);
	while (TRUE) {
		ValaTokenType _tmp0_;
		ValaTokenType _tmp1_;
		_tmp0_ = vala_parser_current (self);
		if (!(_tmp0_ != VALA_TOKEN_TYPE_EOF)) {
			break;
		}
		_tmp1_ = vala_parser_current (self);
		switch (_tmp1_) {
			case VALA_TOKEN_TYPE_ABSTRACT:
			case VALA_TOKEN_TYPE_CLASS:
			case VALA_TOKEN_TYPE_CONST:
			case VALA_TOKEN_TYPE_CONSTRUCT:
			case VALA_TOKEN_TYPE_DELEGATE:
			case VALA_TOKEN_TYPE_ENUM:
			case VALA_TOKEN_TYPE_ERRORDOMAIN:
			case VALA_TOKEN_TYPE_EXTERN:
			case VALA_TOKEN_TYPE_INLINE:
			case VALA_TOKEN_TYPE_INTERFACE:
			case VALA_TOKEN_TYPE_INTERNAL:
			case VALA_TOKEN_TYPE_NAMESPACE:
			case VALA_TOKEN_TYPE_NEW:
			case VALA_TOKEN_TYPE_OVERRIDE:
			case VALA_TOKEN_TYPE_PRIVATE:
			case VALA_TOKEN_TYPE_PROTECTED:
			case VALA_TOKEN_TYPE_PUBLIC:
			case VALA_TOKEN_TYPE_SEALED:
			case VALA_TOKEN_TYPE_SIGNAL:
			case VALA_TOKEN_TYPE_STATIC:
			case VALA_TOKEN_TYPE_STRUCT:
			case VALA_TOKEN_TYPE_VIRTUAL:
			case VALA_TOKEN_TYPE_VOLATILE:
			{
				result = VALA_PARSER_RECOVERY_STATE_DECLARATION_BEGIN;
				return result;
			}
			case VALA_TOKEN_TYPE_BREAK:
			case VALA_TOKEN_TYPE_CONTINUE:
			case VALA_TOKEN_TYPE_DELETE:
			case VALA_TOKEN_TYPE_DO:
			case VALA_TOKEN_TYPE_FOR:
			case VALA_TOKEN_TYPE_FOREACH:
			case VALA_TOKEN_TYPE_IF:
			case VALA_TOKEN_TYPE_LOCK:
			case VALA_TOKEN_TYPE_RETURN:
			case VALA_TOKEN_TYPE_SWITCH:
			case VALA_TOKEN_TYPE_THROW:
			case VALA_TOKEN_TYPE_TRY:
			case VALA_TOKEN_TYPE_VAR:
			case VALA_TOKEN_TYPE_WHILE:
			case VALA_TOKEN_TYPE_YIELD:
			{
				result = VALA_PARSER_RECOVERY_STATE_STATEMENT_BEGIN;
				return result;
			}
			default:
			{
				vala_parser_next (self);
				break;
			}
		}
	}
	result = VALA_PARSER_RECOVERY_STATE_EOF;
	return result;
}


static void vala_parser_parse_namespace_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp1_;
	ValaNamespace* ns = NULL;
	ValaUnresolvedSymbol* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	ValaSourceLocation _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaSourceReference* _tmp7_;
	ValaNamespace* _tmp8_;
	ValaNamespace* _tmp9_;
	ValaComment* _tmp10_;
	ValaNamespace* _tmp13_;
	ValaList* _tmp14_;
	ValaList* old_using_directives = NULL;
	ValaScanner* _tmp15_;
	ValaSourceFile* _tmp16_;
	ValaSourceFile* _tmp17_;
	ValaList* _tmp18_;
	ValaList* _tmp19_;
	ValaList* _tmp20_;
	ValaNamespace* _tmp21_;
	ValaNamespace* _tmp22_;
	ValaScanner* _tmp23_;
	ValaSourceFile* _tmp24_;
	ValaSourceFile* _tmp25_;
	ValaList* _tmp26_;
	gboolean _tmp27_;
	ValaSymbol* _result_ = NULL;
	ValaNamespace* _tmp34_;
	ValaSymbol* _tmp35_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_NAMESPACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp1_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp1_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp2_ = sym;
	_tmp3_ = vala_symbol_get_name ((ValaSymbol*) _tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = begin;
	_tmp6_ = vala_parser_get_src (self, &_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_namespace_new (_tmp4_, _tmp7_);
	_tmp9_ = _tmp8_;
	_vala_source_reference_unref0 (_tmp7_);
	ns = _tmp9_;
	_tmp10_ = self->priv->comment;
	if (_tmp10_ != NULL) {
		ValaNamespace* _tmp11_;
		ValaComment* _tmp12_;
		_tmp11_ = ns;
		_tmp12_ = self->priv->comment;
		vala_namespace_add_comment (_tmp11_, _tmp12_);
		_vala_comment_unref0 (self->priv->comment);
		self->priv->comment = NULL;
	}
	_tmp13_ = ns;
	_tmp14_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp13_, _tmp14_);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (ns);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (ns);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp15_ = self->priv->scanner;
	_tmp16_ = vala_scanner_get_source_file (_tmp15_);
	_tmp17_ = _tmp16_;
	_tmp18_ = vala_source_file_get_current_using_directives (_tmp17_);
	_tmp19_ = _tmp18_;
	_tmp20_ = _vala_iterable_ref0 (_tmp19_);
	old_using_directives = _tmp20_;
	_tmp21_ = ns;
	vala_parser_parse_using_directives (self, _tmp21_, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (old_using_directives);
			_vala_code_node_unref0 (ns);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_iterable_unref0 (old_using_directives);
			_vala_code_node_unref0 (ns);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp22_ = ns;
	vala_parser_parse_declarations (self, (ValaSymbol*) _tmp22_, TRUE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_iterable_unref0 (old_using_directives);
			_vala_code_node_unref0 (ns);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_iterable_unref0 (old_using_directives);
			_vala_code_node_unref0 (ns);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp23_ = self->priv->scanner;
	_tmp24_ = vala_scanner_get_source_file (_tmp23_);
	_tmp25_ = _tmp24_;
	_tmp26_ = old_using_directives;
	vala_source_file_set_current_using_directives (_tmp25_, _tmp26_);
	_tmp27_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CLOSE_BRACE);
	if (!_tmp27_) {
		ValaCodeContext* _tmp28_;
		ValaReport* _tmp29_;
		ValaReport* _tmp30_;
		gint _tmp31_;
		_tmp28_ = self->priv->context;
		_tmp29_ = vala_code_context_get_report (_tmp28_);
		_tmp30_ = _tmp29_;
		_tmp31_ = vala_report_get_errors (_tmp30_);
		if (_tmp31_ == 0) {
			ValaSourceReference* _tmp32_;
			ValaSourceReference* _tmp33_;
			_tmp32_ = vala_parser_get_current_src (self);
			_tmp33_ = _tmp32_;
			vala_report_error (_tmp33_, "expected `}'");
			_vala_source_reference_unref0 (_tmp33_);
		}
	}
	_tmp34_ = ns;
	_tmp35_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp34_);
	_result_ = _tmp35_;
	while (TRUE) {
		ValaUnresolvedSymbol* _tmp36_;
		ValaUnresolvedSymbol* _tmp37_;
		ValaUnresolvedSymbol* _tmp38_;
		ValaUnresolvedSymbol* _tmp39_;
		ValaUnresolvedSymbol* _tmp40_;
		ValaSymbol* _tmp41_ = NULL;
		ValaUnresolvedSymbol* _tmp42_;
		ValaSymbol* next = NULL;
		ValaSymbol* _tmp52_;
		ValaSymbol* _tmp53_;
		ValaSymbol* _tmp54_;
		ValaSymbol* _tmp55_;
		ValaSymbol* _tmp56_;
		_tmp36_ = sym;
		if (!(_tmp36_ != NULL)) {
			break;
		}
		_tmp37_ = sym;
		_tmp38_ = vala_unresolved_symbol_get_inner (_tmp37_);
		_tmp39_ = _tmp38_;
		_tmp40_ = _vala_code_node_ref0 (_tmp39_);
		_vala_code_node_unref0 (sym);
		sym = _tmp40_;
		_tmp42_ = sym;
		if (_tmp42_ != NULL) {
			ValaUnresolvedSymbol* _tmp43_;
			const gchar* _tmp44_;
			const gchar* _tmp45_;
			ValaNamespace* _tmp46_;
			ValaSourceReference* _tmp47_;
			ValaSourceReference* _tmp48_;
			ValaNamespace* _tmp49_;
			_tmp43_ = sym;
			_tmp44_ = vala_symbol_get_name ((ValaSymbol*) _tmp43_);
			_tmp45_ = _tmp44_;
			_tmp46_ = ns;
			_tmp47_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp46_);
			_tmp48_ = _tmp47_;
			_tmp49_ = vala_namespace_new (_tmp45_, _tmp48_);
			_vala_code_node_unref0 (_tmp41_);
			_tmp41_ = (ValaSymbol*) _tmp49_;
		} else {
			ValaSymbol* _tmp50_;
			ValaSymbol* _tmp51_;
			_tmp50_ = parent;
			_tmp51_ = _vala_code_node_ref0 (_tmp50_);
			_vala_code_node_unref0 (_tmp41_);
			_tmp41_ = _tmp51_;
		}
		_tmp52_ = _vala_code_node_ref0 (_tmp41_);
		next = _tmp52_;
		_tmp53_ = next;
		_tmp54_ = _result_;
		vala_symbol_add_namespace (_tmp53_, G_TYPE_CHECK_INSTANCE_CAST (_tmp54_, VALA_TYPE_NAMESPACE, ValaNamespace));
		_tmp55_ = next;
		_tmp56_ = _vala_code_node_ref0 (_tmp55_);
		_vala_code_node_unref0 (_result_);
		_result_ = _tmp56_;
		_vala_code_node_unref0 (next);
		_vala_code_node_unref0 (_tmp41_);
	}
	_vala_code_node_unref0 (_result_);
	_vala_iterable_unref0 (old_using_directives);
	_vala_code_node_unref0 (ns);
	_vala_code_node_unref0 (sym);
}


static void vala_parser_parse_using_directives (ValaParser* self, ValaNamespace* ns, GError** error) {
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (ns != NULL);
	while (TRUE) {
		gboolean _tmp0_;
		_tmp0_ = vala_parser_accept (self, VALA_TOKEN_TYPE_USING);
		if (!_tmp0_) {
			break;
		}
		{
			gboolean _tmp1_ = FALSE;
			_tmp1_ = TRUE;
			while (TRUE) {
				ValaSourceLocation begin = {0};
				ValaSourceLocation _tmp3_ = {0};
				ValaUnresolvedSymbol* sym = NULL;
				ValaUnresolvedSymbol* _tmp4_;
				ValaUsingDirective* ns_ref = NULL;
				ValaUnresolvedSymbol* _tmp5_;
				ValaSourceLocation _tmp6_;
				ValaSourceReference* _tmp7_;
				ValaSourceReference* _tmp8_;
				ValaUsingDirective* _tmp9_;
				ValaUsingDirective* _tmp10_;
				ValaScanner* _tmp11_;
				ValaSourceFile* _tmp12_;
				ValaSourceFile* _tmp13_;
				ValaUsingDirective* _tmp14_;
				ValaNamespace* _tmp15_;
				ValaUsingDirective* _tmp16_;
				if (!_tmp1_) {
					gboolean _tmp2_;
					_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp2_) {
						break;
					}
				}
				_tmp1_ = FALSE;
				vala_parser_get_location (self, &_tmp3_);
				begin = _tmp3_;
				_tmp4_ = vala_parser_parse_symbol_name (self, &_inner_error_);
				sym = _tmp4_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						return;
					} else {
						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;
					}
				}
				_tmp5_ = sym;
				_tmp6_ = begin;
				_tmp7_ = vala_parser_get_src (self, &_tmp6_);
				_tmp8_ = _tmp7_;
				_tmp9_ = vala_using_directive_new ((ValaSymbol*) _tmp5_, _tmp8_);
				_tmp10_ = _tmp9_;
				_vala_source_reference_unref0 (_tmp8_);
				ns_ref = _tmp10_;
				_tmp11_ = self->priv->scanner;
				_tmp12_ = vala_scanner_get_source_file (_tmp11_);
				_tmp13_ = _tmp12_;
				_tmp14_ = ns_ref;
				vala_source_file_add_using_directive (_tmp13_, _tmp14_);
				_tmp15_ = ns;
				_tmp16_ = ns_ref;
				vala_namespace_add_using_directive (_tmp15_, _tmp16_);
				_vala_code_node_unref0 (ns_ref);
				_vala_code_node_unref0 (sym);
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
	}
}


static void vala_parser_parse_class_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp3_;
	ValaList* type_param_list = NULL;
	ValaList* _tmp4_;
	ValaArrayList* base_types = NULL;
	GEqualFunc _tmp5_;
	ValaArrayList* _tmp6_;
	gboolean _tmp7_;
	ValaClass* cl = NULL;
	ValaUnresolvedSymbol* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	ValaSourceLocation _tmp16_;
	ValaSourceReference* _tmp17_;
	ValaSourceReference* _tmp18_;
	ValaComment* _tmp19_;
	ValaClass* _tmp20_;
	ValaClass* _tmp21_;
	ValaClass* _tmp22_;
	ValaSymbolAccessibility _tmp23_;
	ValaParserModifierFlags _tmp24_;
	gboolean _tmp26_ = FALSE;
	ValaParserModifierFlags _tmp27_;
	ValaClass* _tmp34_;
	ValaList* _tmp35_;
	ValaClass* _tmp62_;
	gboolean _tmp63_ = FALSE;
	ValaScanner* _tmp64_;
	ValaSourceFile* _tmp65_;
	ValaSourceFile* _tmp66_;
	ValaSourceFileType _tmp67_;
	ValaSourceFileType _tmp68_;
	ValaSymbol* _result_ = NULL;
	ValaClass* _tmp88_;
	ValaSymbol* _tmp89_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_type_declaration_modifiers (self);
	flags = _tmp2_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLASS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp3_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = vala_parser_parse_type_parameter_list (self, &_inner_error_);
	type_param_list = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp5_ = g_direct_equal;
	_tmp6_ = vala_array_list_new (VALA_TYPE_DATA_TYPE, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp5_);
	base_types = _tmp6_;
	_tmp7_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COLON);
	if (_tmp7_) {
		{
			gboolean _tmp8_ = FALSE;
			_tmp8_ = TRUE;
			while (TRUE) {
				ValaDataType* _tmp10_ = NULL;
				ValaDataType* _tmp11_;
				ValaArrayList* _tmp12_;
				if (!_tmp8_) {
					gboolean _tmp9_;
					_tmp9_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp9_) {
						break;
					}
				}
				_tmp8_ = FALSE;
				_tmp11_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
				_tmp10_ = _tmp11_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (base_types);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						return;
					} else {
						_vala_iterable_unref0 (base_types);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						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;
					}
				}
				_tmp12_ = base_types;
				vala_collection_add ((ValaCollection*) _tmp12_, _tmp10_);
				_vala_code_node_unref0 (_tmp10_);
			}
		}
	}
	_tmp13_ = sym;
	_tmp14_ = vala_symbol_get_name ((ValaSymbol*) _tmp13_);
	_tmp15_ = _tmp14_;
	_tmp16_ = begin;
	_tmp17_ = vala_parser_get_src (self, &_tmp16_);
	_tmp18_ = _tmp17_;
	_tmp19_ = self->priv->comment;
	_tmp20_ = vala_class_new (_tmp15_, _tmp18_, _tmp19_);
	_tmp21_ = _tmp20_;
	_vala_source_reference_unref0 (_tmp18_);
	cl = _tmp21_;
	_tmp22_ = cl;
	_tmp23_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp22_, _tmp23_);
	_tmp24_ = flags;
	if ((_tmp24_ & VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) == VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) {
		ValaClass* _tmp25_;
		_tmp25_ = cl;
		vala_class_set_is_abstract (_tmp25_, TRUE);
	}
	_tmp27_ = flags;
	if ((_tmp27_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp26_ = TRUE;
	} else {
		ValaScanner* _tmp28_;
		ValaSourceFile* _tmp29_;
		ValaSourceFile* _tmp30_;
		ValaSourceFileType _tmp31_;
		ValaSourceFileType _tmp32_;
		_tmp28_ = self->priv->scanner;
		_tmp29_ = vala_scanner_get_source_file (_tmp28_);
		_tmp30_ = _tmp29_;
		_tmp31_ = vala_source_file_get_file_type (_tmp30_);
		_tmp32_ = _tmp31_;
		_tmp26_ = _tmp32_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp26_) {
		ValaClass* _tmp33_;
		_tmp33_ = cl;
		vala_symbol_set_external ((ValaSymbol*) _tmp33_, TRUE);
	}
	_tmp34_ = cl;
	_tmp35_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp34_, _tmp35_);
	{
		ValaList* _type_param_list = NULL;
		ValaList* _tmp36_;
		ValaList* _tmp37_;
		gint _type_param_size = 0;
		ValaList* _tmp38_;
		gint _tmp39_;
		gint _tmp40_;
		gint _type_param_index = 0;
		_tmp36_ = type_param_list;
		_tmp37_ = _vala_iterable_ref0 (_tmp36_);
		_type_param_list = _tmp37_;
		_tmp38_ = _type_param_list;
		_tmp39_ = vala_collection_get_size ((ValaCollection*) _tmp38_);
		_tmp40_ = _tmp39_;
		_type_param_size = _tmp40_;
		_type_param_index = -1;
		while (TRUE) {
			gint _tmp41_;
			gint _tmp42_;
			gint _tmp43_;
			ValaTypeParameter* type_param = NULL;
			ValaList* _tmp44_;
			gint _tmp45_;
			gpointer _tmp46_;
			ValaClass* _tmp47_;
			ValaTypeParameter* _tmp48_;
			_tmp41_ = _type_param_index;
			_type_param_index = _tmp41_ + 1;
			_tmp42_ = _type_param_index;
			_tmp43_ = _type_param_size;
			if (!(_tmp42_ < _tmp43_)) {
				break;
			}
			_tmp44_ = _type_param_list;
			_tmp45_ = _type_param_index;
			_tmp46_ = vala_list_get (_tmp44_, _tmp45_);
			type_param = (ValaTypeParameter*) _tmp46_;
			_tmp47_ = cl;
			_tmp48_ = type_param;
			vala_object_type_symbol_add_type_parameter ((ValaObjectTypeSymbol*) _tmp47_, _tmp48_);
			_vala_code_node_unref0 (type_param);
		}
		_vala_iterable_unref0 (_type_param_list);
	}
	{
		ValaArrayList* _base_type_list = NULL;
		ValaArrayList* _tmp49_;
		ValaArrayList* _tmp50_;
		gint _base_type_size = 0;
		ValaArrayList* _tmp51_;
		gint _tmp52_;
		gint _tmp53_;
		gint _base_type_index = 0;
		_tmp49_ = base_types;
		_tmp50_ = _vala_iterable_ref0 (_tmp49_);
		_base_type_list = _tmp50_;
		_tmp51_ = _base_type_list;
		_tmp52_ = vala_collection_get_size ((ValaCollection*) _tmp51_);
		_tmp53_ = _tmp52_;
		_base_type_size = _tmp53_;
		_base_type_index = -1;
		while (TRUE) {
			gint _tmp54_;
			gint _tmp55_;
			gint _tmp56_;
			ValaDataType* base_type = NULL;
			ValaArrayList* _tmp57_;
			gint _tmp58_;
			gpointer _tmp59_;
			ValaClass* _tmp60_;
			ValaDataType* _tmp61_;
			_tmp54_ = _base_type_index;
			_base_type_index = _tmp54_ + 1;
			_tmp55_ = _base_type_index;
			_tmp56_ = _base_type_size;
			if (!(_tmp55_ < _tmp56_)) {
				break;
			}
			_tmp57_ = _base_type_list;
			_tmp58_ = _base_type_index;
			_tmp59_ = vala_list_get ((ValaList*) _tmp57_, _tmp58_);
			base_type = (ValaDataType*) _tmp59_;
			_tmp60_ = cl;
			_tmp61_ = base_type;
			vala_class_add_base_type (_tmp60_, _tmp61_);
			_vala_code_node_unref0 (base_type);
		}
		_vala_iterable_unref0 (_base_type_list);
	}
	_tmp62_ = cl;
	vala_parser_parse_declarations (self, (ValaSymbol*) _tmp62_, FALSE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (cl);
			_vala_iterable_unref0 (base_types);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (cl);
			_vala_iterable_unref0 (base_types);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp64_ = self->priv->scanner;
	_tmp65_ = vala_scanner_get_source_file (_tmp64_);
	_tmp66_ = _tmp65_;
	_tmp67_ = vala_source_file_get_file_type (_tmp66_);
	_tmp68_ = _tmp67_;
	if (_tmp68_ == VALA_SOURCE_FILE_TYPE_SOURCE) {
		ValaClass* _tmp69_;
		ValaCreationMethod* _tmp70_;
		ValaCreationMethod* _tmp71_;
		_tmp69_ = cl;
		_tmp70_ = vala_class_get_default_construction_method (_tmp69_);
		_tmp71_ = _tmp70_;
		_tmp63_ = _tmp71_ == NULL;
	} else {
		_tmp63_ = FALSE;
	}
	if (_tmp63_) {
		ValaCreationMethod* m = NULL;
		ValaClass* _tmp72_;
		const gchar* _tmp73_;
		const gchar* _tmp74_;
		ValaClass* _tmp75_;
		ValaSourceReference* _tmp76_;
		ValaSourceReference* _tmp77_;
		ValaCreationMethod* _tmp78_;
		ValaCreationMethod* _tmp79_;
		ValaCreationMethod* _tmp80_;
		ValaClass* _tmp81_;
		ValaSourceReference* _tmp82_;
		ValaSourceReference* _tmp83_;
		ValaBlock* _tmp84_;
		ValaBlock* _tmp85_;
		ValaClass* _tmp86_;
		ValaCreationMethod* _tmp87_;
		_tmp72_ = cl;
		_tmp73_ = vala_symbol_get_name ((ValaSymbol*) _tmp72_);
		_tmp74_ = _tmp73_;
		_tmp75_ = cl;
		_tmp76_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp75_);
		_tmp77_ = _tmp76_;
		_tmp78_ = vala_creation_method_new (_tmp74_, NULL, _tmp77_, NULL);
		m = _tmp78_;
		_tmp79_ = m;
		vala_symbol_set_access ((ValaSymbol*) _tmp79_, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
		_tmp80_ = m;
		_tmp81_ = cl;
		_tmp82_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp81_);
		_tmp83_ = _tmp82_;
		_tmp84_ = vala_block_new (_tmp83_);
		_tmp85_ = _tmp84_;
		vala_subroutine_set_body ((ValaSubroutine*) _tmp80_, _tmp85_);
		_vala_code_node_unref0 (_tmp85_);
		_tmp86_ = cl;
		_tmp87_ = m;
		vala_symbol_add_method ((ValaSymbol*) _tmp86_, (ValaMethod*) _tmp87_);
		_vala_code_node_unref0 (m);
	}
	_tmp88_ = cl;
	_tmp89_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp88_);
	_result_ = _tmp89_;
	while (TRUE) {
		ValaUnresolvedSymbol* _tmp90_;
		ValaUnresolvedSymbol* _tmp91_;
		ValaUnresolvedSymbol* _tmp92_;
		ValaUnresolvedSymbol* _tmp93_;
		ValaUnresolvedSymbol* _tmp94_;
		ValaSymbol* _tmp95_ = NULL;
		ValaUnresolvedSymbol* _tmp96_;
		ValaSymbol* next = NULL;
		ValaSymbol* _tmp106_;
		ValaSymbol* _tmp107_;
		ValaSymbol* _tmp112_;
		ValaSymbol* _tmp113_;
		_tmp90_ = sym;
		if (!(_tmp90_ != NULL)) {
			break;
		}
		_tmp91_ = sym;
		_tmp92_ = vala_unresolved_symbol_get_inner (_tmp91_);
		_tmp93_ = _tmp92_;
		_tmp94_ = _vala_code_node_ref0 (_tmp93_);
		_vala_code_node_unref0 (sym);
		sym = _tmp94_;
		_tmp96_ = sym;
		if (_tmp96_ != NULL) {
			ValaUnresolvedSymbol* _tmp97_;
			const gchar* _tmp98_;
			const gchar* _tmp99_;
			ValaClass* _tmp100_;
			ValaSourceReference* _tmp101_;
			ValaSourceReference* _tmp102_;
			ValaNamespace* _tmp103_;
			_tmp97_ = sym;
			_tmp98_ = vala_symbol_get_name ((ValaSymbol*) _tmp97_);
			_tmp99_ = _tmp98_;
			_tmp100_ = cl;
			_tmp101_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp100_);
			_tmp102_ = _tmp101_;
			_tmp103_ = vala_namespace_new (_tmp99_, _tmp102_);
			_vala_code_node_unref0 (_tmp95_);
			_tmp95_ = (ValaSymbol*) _tmp103_;
		} else {
			ValaSymbol* _tmp104_;
			ValaSymbol* _tmp105_;
			_tmp104_ = parent;
			_tmp105_ = _vala_code_node_ref0 (_tmp104_);
			_vala_code_node_unref0 (_tmp95_);
			_tmp95_ = _tmp105_;
		}
		_tmp106_ = _vala_code_node_ref0 (_tmp95_);
		next = _tmp106_;
		_tmp107_ = _result_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp107_, VALA_TYPE_NAMESPACE)) {
			ValaSymbol* _tmp108_;
			ValaSymbol* _tmp109_;
			_tmp108_ = next;
			_tmp109_ = _result_;
			vala_symbol_add_namespace (_tmp108_, G_TYPE_CHECK_INSTANCE_CAST (_tmp109_, VALA_TYPE_NAMESPACE, ValaNamespace));
		} else {
			ValaSymbol* _tmp110_;
			ValaSymbol* _tmp111_;
			_tmp110_ = next;
			_tmp111_ = _result_;
			vala_symbol_add_class (_tmp110_, G_TYPE_CHECK_INSTANCE_CAST (_tmp111_, VALA_TYPE_CLASS, ValaClass));
		}
		_tmp112_ = next;
		_tmp113_ = _vala_code_node_ref0 (_tmp112_);
		_vala_code_node_unref0 (_result_);
		_result_ = _tmp113_;
		_vala_code_node_unref0 (next);
		_vala_code_node_unref0 (_tmp95_);
	}
	_vala_code_node_unref0 (_result_);
	_vala_code_node_unref0 (cl);
	_vala_iterable_unref0 (base_types);
	_vala_iterable_unref0 (type_param_list);
	_vala_code_node_unref0 (sym);
}


static void vala_parser_parse_constant_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaDataType* type = NULL;
	ValaDataType* _tmp3_;
	gchar* id = NULL;
	gchar* _tmp4_;
	ValaDataType* _tmp5_ = NULL;
	ValaDataType* _tmp6_;
	ValaDataType* _tmp7_;
	ValaDataType* _tmp8_;
	ValaExpression* initializer = NULL;
	gboolean _tmp9_;
	ValaArrayType* array_type = NULL;
	ValaDataType* _tmp13_;
	ValaArrayType* _tmp14_;
	ValaArrayType* _tmp15_;
	ValaConstant* c = NULL;
	const gchar* _tmp19_;
	ValaDataType* _tmp20_;
	ValaExpression* _tmp21_;
	ValaSourceLocation _tmp22_;
	ValaSourceReference* _tmp23_;
	ValaSourceReference* _tmp24_;
	ValaComment* _tmp25_;
	ValaConstant* _tmp26_;
	ValaConstant* _tmp27_;
	ValaConstant* _tmp28_;
	ValaSymbolAccessibility _tmp29_;
	gboolean _tmp30_ = FALSE;
	ValaParserModifierFlags _tmp31_;
	ValaParserModifierFlags _tmp38_;
	ValaConstant* _tmp40_;
	ValaList* _tmp41_;
	ValaParserModifierFlags _tmp42_;
	ValaSymbol* _tmp46_;
	ValaConstant* _tmp47_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp2_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_CONST, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp3_ = vala_parser_parse_type (self, FALSE, FALSE, FALSE, &_inner_error_);
	type = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp6_ = type;
	_tmp7_ = vala_parser_parse_inline_array_type (self, _tmp6_, &_inner_error_);
	_tmp5_ = _tmp7_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp8_ = _tmp5_;
	_tmp5_ = NULL;
	_vala_code_node_unref0 (type);
	type = _tmp8_;
	initializer = NULL;
	_tmp9_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ASSIGN);
	if (_tmp9_) {
		ValaExpression* _tmp10_ = NULL;
		ValaExpression* _tmp11_;
		ValaExpression* _tmp12_;
		_tmp11_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp10_ = _tmp11_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (initializer);
				_vala_code_node_unref0 (_tmp5_);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (initializer);
				_vala_code_node_unref0 (_tmp5_);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp12_ = _tmp10_;
		_tmp10_ = NULL;
		_vala_code_node_unref0 (initializer);
		initializer = _tmp12_;
		_vala_code_node_unref0 (_tmp10_);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (initializer);
			_vala_code_node_unref0 (_tmp5_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (initializer);
			_vala_code_node_unref0 (_tmp5_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp13_ = type;
	_tmp14_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp13_, VALA_TYPE_ARRAY_TYPE) ? ((ValaArrayType*) _tmp13_) : NULL);
	array_type = _tmp14_;
	_tmp15_ = array_type;
	if (_tmp15_ != NULL) {
		ValaArrayType* _tmp16_;
		ValaDataType* _tmp17_;
		ValaDataType* _tmp18_;
		_tmp16_ = array_type;
		_tmp17_ = vala_array_type_get_element_type (_tmp16_);
		_tmp18_ = _tmp17_;
		vala_data_type_set_value_owned (_tmp18_, FALSE);
	}
	_tmp19_ = id;
	_tmp20_ = type;
	_tmp21_ = initializer;
	_tmp22_ = begin;
	_tmp23_ = vala_parser_get_src (self, &_tmp22_);
	_tmp24_ = _tmp23_;
	_tmp25_ = self->priv->comment;
	_tmp26_ = vala_constant_new (_tmp19_, _tmp20_, _tmp21_, _tmp24_, _tmp25_);
	_tmp27_ = _tmp26_;
	_vala_source_reference_unref0 (_tmp24_);
	c = _tmp27_;
	_tmp28_ = c;
	_tmp29_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp28_, _tmp29_);
	_tmp31_ = flags;
	if ((_tmp31_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp30_ = TRUE;
	} else {
		ValaScanner* _tmp32_;
		ValaSourceFile* _tmp33_;
		ValaSourceFile* _tmp34_;
		ValaSourceFileType _tmp35_;
		ValaSourceFileType _tmp36_;
		_tmp32_ = self->priv->scanner;
		_tmp33_ = vala_scanner_get_source_file (_tmp32_);
		_tmp34_ = _tmp33_;
		_tmp35_ = vala_source_file_get_file_type (_tmp34_);
		_tmp36_ = _tmp35_;
		_tmp30_ = _tmp36_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp30_) {
		ValaConstant* _tmp37_;
		_tmp37_ = c;
		vala_symbol_set_external ((ValaSymbol*) _tmp37_, TRUE);
	}
	_tmp38_ = flags;
	if ((_tmp38_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		ValaConstant* _tmp39_;
		_tmp39_ = c;
		vala_symbol_set_hides ((ValaSymbol*) _tmp39_, TRUE);
	}
	_tmp40_ = c;
	_tmp41_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp40_, _tmp41_);
	_tmp42_ = flags;
	if ((_tmp42_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
		ValaConstant* _tmp43_;
		ValaSourceReference* _tmp44_;
		ValaSourceReference* _tmp45_;
		_tmp43_ = c;
		_tmp44_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp43_);
		_tmp45_ = _tmp44_;
		vala_report_warning (_tmp45_, "the modifier `static' is not applicable to constants");
	}
	_tmp46_ = parent;
	_tmp47_ = c;
	vala_symbol_add_constant (_tmp46_, _tmp47_);
	_vala_code_node_unref0 (c);
	_vala_code_node_unref0 (array_type);
	_vala_code_node_unref0 (initializer);
	_vala_code_node_unref0 (_tmp5_);
	_g_free0 (id);
	_vala_code_node_unref0 (type);
}


static void vala_parser_parse_field_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility _tmp1_ = 0;
	ValaSymbol* _tmp2_;
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp3_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp4_;
	ValaDataType* type = NULL;
	ValaDataType* _tmp5_;
	gchar* id = NULL;
	gchar* _tmp6_;
	ValaDataType* _tmp7_ = NULL;
	ValaDataType* _tmp8_;
	ValaDataType* _tmp9_;
	ValaDataType* _tmp10_;
	ValaField* f = NULL;
	const gchar* _tmp11_;
	ValaDataType* _tmp12_;
	ValaSourceLocation _tmp13_;
	ValaSourceReference* _tmp14_;
	ValaSourceReference* _tmp15_;
	ValaComment* _tmp16_;
	ValaField* _tmp17_;
	ValaField* _tmp18_;
	ValaField* _tmp19_;
	ValaSymbolAccessibility _tmp20_;
	ValaField* _tmp21_;
	ValaList* _tmp22_;
	gboolean _tmp23_ = FALSE;
	ValaParserModifierFlags _tmp24_;
	gboolean _tmp33_ = FALSE;
	gboolean _tmp34_ = FALSE;
	ValaSymbol* _tmp35_;
	gboolean _tmp45_ = FALSE;
	gboolean _tmp46_ = FALSE;
	ValaParserModifierFlags _tmp47_;
	gboolean _tmp53_ = FALSE;
	ValaParserModifierFlags _tmp54_;
	ValaParserModifierFlags _tmp61_;
	gboolean _tmp63_;
	ValaSymbol* _tmp67_;
	ValaField* _tmp68_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp2_ = parent;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, VALA_TYPE_STRUCT)) {
		_tmp1_ = VALA_SYMBOL_ACCESSIBILITY_PUBLIC;
	} else {
		_tmp1_ = VALA_SYMBOL_ACCESSIBILITY_PRIVATE;
	}
	_tmp3_ = vala_parser_parse_access_modifier (self, _tmp1_);
	access = _tmp3_;
	_tmp4_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp4_;
	_tmp5_ = vala_parser_parse_type (self, TRUE, TRUE, FALSE, &_inner_error_);
	type = _tmp5_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp6_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp6_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp8_ = type;
	_tmp9_ = vala_parser_parse_inline_array_type (self, _tmp8_, &_inner_error_);
	_tmp7_ = _tmp9_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp10_ = _tmp7_;
	_tmp7_ = NULL;
	_vala_code_node_unref0 (type);
	type = _tmp10_;
	_tmp11_ = id;
	_tmp12_ = type;
	_tmp13_ = begin;
	_tmp14_ = vala_parser_get_src (self, &_tmp13_);
	_tmp15_ = _tmp14_;
	_tmp16_ = self->priv->comment;
	_tmp17_ = vala_field_new (_tmp11_, _tmp12_, NULL, _tmp15_, _tmp16_);
	_tmp18_ = _tmp17_;
	_vala_source_reference_unref0 (_tmp15_);
	f = _tmp18_;
	_tmp19_ = f;
	_tmp20_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp19_, _tmp20_);
	_tmp21_ = f;
	_tmp22_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp21_, _tmp22_);
	_tmp24_ = flags;
	if ((_tmp24_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
		ValaParserModifierFlags _tmp25_;
		_tmp25_ = flags;
		_tmp23_ = (_tmp25_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS;
	} else {
		_tmp23_ = FALSE;
	}
	if (_tmp23_) {
		ValaField* _tmp26_;
		ValaSourceReference* _tmp27_;
		ValaSourceReference* _tmp28_;
		_tmp26_ = f;
		_tmp27_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp26_);
		_tmp28_ = _tmp27_;
		vala_report_error (_tmp28_, "only one of `static' or `class' may be specified");
	} else {
		ValaParserModifierFlags _tmp29_;
		_tmp29_ = flags;
		if ((_tmp29_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
			ValaField* _tmp30_;
			_tmp30_ = f;
			vala_field_set_binding (_tmp30_, VALA_MEMBER_BINDING_STATIC);
		} else {
			ValaParserModifierFlags _tmp31_;
			_tmp31_ = flags;
			if ((_tmp31_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS) {
				ValaField* _tmp32_;
				_tmp32_ = f;
				vala_field_set_binding (_tmp32_, VALA_MEMBER_BINDING_CLASS);
			}
		}
	}
	_tmp35_ = parent;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp35_, VALA_TYPE_STRUCT)) {
		ValaField* _tmp36_;
		ValaSymbolAccessibility _tmp37_;
		ValaSymbolAccessibility _tmp38_;
		_tmp36_ = f;
		_tmp37_ = vala_symbol_get_access ((ValaSymbol*) _tmp36_);
		_tmp38_ = _tmp37_;
		_tmp34_ = _tmp38_ != VALA_SYMBOL_ACCESSIBILITY_PUBLIC;
	} else {
		_tmp34_ = FALSE;
	}
	if (_tmp34_) {
		ValaField* _tmp39_;
		ValaMemberBinding _tmp40_;
		ValaMemberBinding _tmp41_;
		_tmp39_ = f;
		_tmp40_ = vala_field_get_binding (_tmp39_);
		_tmp41_ = _tmp40_;
		_tmp33_ = _tmp41_ == VALA_MEMBER_BINDING_INSTANCE;
	} else {
		_tmp33_ = FALSE;
	}
	if (_tmp33_) {
		ValaField* _tmp42_;
		ValaSourceReference* _tmp43_;
		ValaSourceReference* _tmp44_;
		_tmp42_ = f;
		_tmp43_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp42_);
		_tmp44_ = _tmp43_;
		vala_report_warning (_tmp44_, "accessibility of struct fields can only be `public`");
	}
	_tmp47_ = flags;
	if ((_tmp47_ & VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) == VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) {
		_tmp46_ = TRUE;
	} else {
		ValaParserModifierFlags _tmp48_;
		_tmp48_ = flags;
		_tmp46_ = (_tmp48_ & VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) == VALA_PARSER_MODIFIER_FLAGS_VIRTUAL;
	}
	if (_tmp46_) {
		_tmp45_ = TRUE;
	} else {
		ValaParserModifierFlags _tmp49_;
		_tmp49_ = flags;
		_tmp45_ = (_tmp49_ & VALA_PARSER_MODIFIER_FLAGS_OVERRIDE) == VALA_PARSER_MODIFIER_FLAGS_OVERRIDE;
	}
	if (_tmp45_) {
		ValaField* _tmp50_;
		ValaSourceReference* _tmp51_;
		ValaSourceReference* _tmp52_;
		_tmp50_ = f;
		_tmp51_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp50_);
		_tmp52_ = _tmp51_;
		vala_report_error (_tmp52_, "abstract, virtual, and override modifiers are not applicable to fields");
	}
	_tmp54_ = flags;
	if ((_tmp54_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp53_ = TRUE;
	} else {
		ValaScanner* _tmp55_;
		ValaSourceFile* _tmp56_;
		ValaSourceFile* _tmp57_;
		ValaSourceFileType _tmp58_;
		ValaSourceFileType _tmp59_;
		_tmp55_ = self->priv->scanner;
		_tmp56_ = vala_scanner_get_source_file (_tmp55_);
		_tmp57_ = _tmp56_;
		_tmp58_ = vala_source_file_get_file_type (_tmp57_);
		_tmp59_ = _tmp58_;
		_tmp53_ = _tmp59_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp53_) {
		ValaField* _tmp60_;
		_tmp60_ = f;
		vala_symbol_set_external ((ValaSymbol*) _tmp60_, TRUE);
	}
	_tmp61_ = flags;
	if ((_tmp61_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		ValaField* _tmp62_;
		_tmp62_ = f;
		vala_symbol_set_hides ((ValaSymbol*) _tmp62_, TRUE);
	}
	_tmp63_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ASSIGN);
	if (_tmp63_) {
		ValaExpression* _tmp64_ = NULL;
		ValaExpression* _tmp65_;
		ValaField* _tmp66_;
		_tmp65_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp64_ = _tmp65_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (f);
				_vala_code_node_unref0 (_tmp7_);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (f);
				_vala_code_node_unref0 (_tmp7_);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp66_ = f;
		vala_variable_set_initializer ((ValaVariable*) _tmp66_, _tmp64_);
		_vala_code_node_unref0 (_tmp64_);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (f);
			_vala_code_node_unref0 (_tmp7_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (f);
			_vala_code_node_unref0 (_tmp7_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp67_ = parent;
	_tmp68_ = f;
	vala_symbol_add_field (_tmp67_, _tmp68_);
	_vala_code_node_unref0 (f);
	_vala_code_node_unref0 (_tmp7_);
	_g_free0 (id);
	_vala_code_node_unref0 (type);
}


static ValaInitializerList* vala_parser_parse_initializer (ValaParser* self, GError** error) {
	ValaInitializerList* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaInitializerList* initializer = NULL;
	ValaSourceLocation _tmp1_;
	ValaSourceReference* _tmp2_;
	ValaSourceReference* _tmp3_;
	ValaInitializerList* _tmp4_;
	ValaInitializerList* _tmp5_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	_tmp1_ = begin;
	_tmp2_ = vala_parser_get_src (self, &_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_initializer_list_new (_tmp3_);
	_tmp5_ = _tmp4_;
	_vala_source_reference_unref0 (_tmp3_);
	initializer = _tmp5_;
	while (TRUE) {
		ValaTokenType _tmp6_;
		ValaExpression* init = NULL;
		ValaExpression* _tmp7_;
		ValaInitializerList* _tmp8_;
		ValaExpression* _tmp9_;
		gboolean _tmp10_;
		_tmp6_ = vala_parser_current (self);
		if (!(_tmp6_ != VALA_TOKEN_TYPE_CLOSE_BRACE)) {
			break;
		}
		_tmp7_ = vala_parser_parse_argument (self, &_inner_error_);
		init = _tmp7_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (initializer);
				return NULL;
			} else {
				_vala_code_node_unref0 (initializer);
				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 NULL;
			}
		}
		_tmp8_ = initializer;
		_tmp9_ = init;
		vala_initializer_list_append (_tmp8_, _tmp9_);
		_tmp10_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
		if (!_tmp10_) {
			_vala_code_node_unref0 (init);
			break;
		}
		_vala_code_node_unref0 (init);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (initializer);
			return NULL;
		} else {
			_vala_code_node_unref0 (initializer);
			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 NULL;
		}
	}
	result = initializer;
	return result;
}


static void vala_parser_parse_method_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaDataType* type = NULL;
	ValaDataType* _tmp3_;
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp4_;
	ValaList* type_param_list = NULL;
	ValaList* _tmp5_;
	ValaMethod* method = NULL;
	ValaUnresolvedSymbol* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	ValaDataType* _tmp9_;
	ValaSourceLocation _tmp10_;
	ValaSourceReference* _tmp11_;
	ValaSourceReference* _tmp12_;
	ValaComment* _tmp13_;
	ValaMethod* _tmp14_;
	ValaMethod* _tmp15_;
	ValaUnresolvedSymbol* _tmp16_;
	ValaUnresolvedSymbol* _tmp17_;
	ValaUnresolvedSymbol* _tmp18_;
	ValaMethod* _tmp30_;
	ValaSymbolAccessibility _tmp31_;
	ValaMethod* _tmp32_;
	ValaList* _tmp33_;
	gboolean _tmp47_ = FALSE;
	ValaParserModifierFlags _tmp48_;
	ValaParserModifierFlags _tmp57_;
	ValaParserModifierFlags _tmp59_;
	ValaMethod* _tmp61_;
	ValaMemberBinding _tmp62_;
	ValaMemberBinding _tmp63_;
	ValaParserModifierFlags _tmp102_;
	ValaParserModifierFlags _tmp104_;
	ValaTokenType _tmp106_;
	gboolean _tmp112_;
	gboolean _tmp126_;
	ValaSymbol* _tmp136_;
	ValaMethod* _tmp137_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp2_;
	_tmp3_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
	type = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp5_ = vala_parser_parse_type_parameter_list (self, &_inner_error_);
	type_param_list = _tmp5_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp6_ = sym;
	_tmp7_ = vala_symbol_get_name ((ValaSymbol*) _tmp6_);
	_tmp8_ = _tmp7_;
	_tmp9_ = type;
	_tmp10_ = begin;
	_tmp11_ = vala_parser_get_src (self, &_tmp10_);
	_tmp12_ = _tmp11_;
	_tmp13_ = self->priv->comment;
	_tmp14_ = vala_method_new (_tmp8_, _tmp9_, _tmp12_, _tmp13_);
	_tmp15_ = _tmp14_;
	_vala_source_reference_unref0 (_tmp12_);
	method = _tmp15_;
	_tmp16_ = sym;
	_tmp17_ = vala_unresolved_symbol_get_inner (_tmp16_);
	_tmp18_ = _tmp17_;
	if (_tmp18_ != NULL) {
		ValaMethod* _tmp19_;
		ValaUnresolvedSymbol* _tmp20_;
		ValaUnresolvedSymbol* _tmp21_;
		ValaUnresolvedSymbol* _tmp22_;
		ValaUnresolvedSymbol* _tmp23_;
		ValaUnresolvedSymbol* _tmp24_;
		ValaUnresolvedSymbol* _tmp25_;
		ValaSourceReference* _tmp26_;
		ValaSourceReference* _tmp27_;
		ValaUnresolvedType* _tmp28_;
		ValaUnresolvedType* _tmp29_;
		_tmp19_ = method;
		_tmp20_ = sym;
		_tmp21_ = vala_unresolved_symbol_get_inner (_tmp20_);
		_tmp22_ = _tmp21_;
		_tmp23_ = sym;
		_tmp24_ = vala_unresolved_symbol_get_inner (_tmp23_);
		_tmp25_ = _tmp24_;
		_tmp26_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp25_);
		_tmp27_ = _tmp26_;
		_tmp28_ = vala_unresolved_type_new_from_symbol (_tmp22_, _tmp27_);
		_tmp29_ = _tmp28_;
		vala_method_set_base_interface_type (_tmp19_, (ValaDataType*) _tmp29_);
		_vala_code_node_unref0 (_tmp29_);
	}
	_tmp30_ = method;
	_tmp31_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp30_, _tmp31_);
	_tmp32_ = method;
	_tmp33_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp32_, _tmp33_);
	{
		ValaList* _type_param_list = NULL;
		ValaList* _tmp34_;
		ValaList* _tmp35_;
		gint _type_param_size = 0;
		ValaList* _tmp36_;
		gint _tmp37_;
		gint _tmp38_;
		gint _type_param_index = 0;
		_tmp34_ = type_param_list;
		_tmp35_ = _vala_iterable_ref0 (_tmp34_);
		_type_param_list = _tmp35_;
		_tmp36_ = _type_param_list;
		_tmp37_ = vala_collection_get_size ((ValaCollection*) _tmp36_);
		_tmp38_ = _tmp37_;
		_type_param_size = _tmp38_;
		_type_param_index = -1;
		while (TRUE) {
			gint _tmp39_;
			gint _tmp40_;
			gint _tmp41_;
			ValaTypeParameter* type_param = NULL;
			ValaList* _tmp42_;
			gint _tmp43_;
			gpointer _tmp44_;
			ValaMethod* _tmp45_;
			ValaTypeParameter* _tmp46_;
			_tmp39_ = _type_param_index;
			_type_param_index = _tmp39_ + 1;
			_tmp40_ = _type_param_index;
			_tmp41_ = _type_param_size;
			if (!(_tmp40_ < _tmp41_)) {
				break;
			}
			_tmp42_ = _type_param_list;
			_tmp43_ = _type_param_index;
			_tmp44_ = vala_list_get (_tmp42_, _tmp43_);
			type_param = (ValaTypeParameter*) _tmp44_;
			_tmp45_ = method;
			_tmp46_ = type_param;
			vala_method_add_type_parameter (_tmp45_, _tmp46_);
			_vala_code_node_unref0 (type_param);
		}
		_vala_iterable_unref0 (_type_param_list);
	}
	_tmp48_ = flags;
	if ((_tmp48_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
		ValaParserModifierFlags _tmp49_;
		_tmp49_ = flags;
		_tmp47_ = (_tmp49_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS;
	} else {
		_tmp47_ = FALSE;
	}
	if (_tmp47_) {
		ValaMethod* _tmp50_;
		ValaSourceReference* _tmp51_;
		ValaSourceReference* _tmp52_;
		_tmp50_ = method;
		_tmp51_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp50_);
		_tmp52_ = _tmp51_;
		vala_report_error (_tmp52_, "only one of `static' or `class' may be specified");
	} else {
		ValaParserModifierFlags _tmp53_;
		_tmp53_ = flags;
		if ((_tmp53_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
			ValaMethod* _tmp54_;
			_tmp54_ = method;
			vala_method_set_binding (_tmp54_, VALA_MEMBER_BINDING_STATIC);
		} else {
			ValaParserModifierFlags _tmp55_;
			_tmp55_ = flags;
			if ((_tmp55_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS) {
				ValaMethod* _tmp56_;
				_tmp56_ = method;
				vala_method_set_binding (_tmp56_, VALA_MEMBER_BINDING_CLASS);
			}
		}
	}
	_tmp57_ = flags;
	if ((_tmp57_ & VALA_PARSER_MODIFIER_FLAGS_ASYNC) == VALA_PARSER_MODIFIER_FLAGS_ASYNC) {
		ValaMethod* _tmp58_;
		_tmp58_ = method;
		vala_method_set_coroutine (_tmp58_, TRUE);
	}
	_tmp59_ = flags;
	if ((_tmp59_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		ValaMethod* _tmp60_;
		_tmp60_ = method;
		vala_symbol_set_hides ((ValaSymbol*) _tmp60_, TRUE);
	}
	_tmp61_ = method;
	_tmp62_ = vala_method_get_binding (_tmp61_);
	_tmp63_ = _tmp62_;
	if (_tmp63_ == VALA_MEMBER_BINDING_INSTANCE) {
		ValaParserModifierFlags _tmp64_;
		ValaParserModifierFlags _tmp66_;
		ValaParserModifierFlags _tmp68_;
		gboolean _tmp70_ = FALSE;
		gboolean _tmp71_ = FALSE;
		gboolean _tmp72_ = FALSE;
		ValaMethod* _tmp73_;
		gboolean _tmp74_;
		gboolean _tmp75_;
		_tmp64_ = flags;
		if ((_tmp64_ & VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) == VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) {
			ValaMethod* _tmp65_;
			_tmp65_ = method;
			vala_method_set_is_abstract (_tmp65_, TRUE);
		}
		_tmp66_ = flags;
		if ((_tmp66_ & VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) == VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) {
			ValaMethod* _tmp67_;
			_tmp67_ = method;
			vala_method_set_is_virtual (_tmp67_, TRUE);
		}
		_tmp68_ = flags;
		if ((_tmp68_ & VALA_PARSER_MODIFIER_FLAGS_OVERRIDE) == VALA_PARSER_MODIFIER_FLAGS_OVERRIDE) {
			ValaMethod* _tmp69_;
			_tmp69_ = method;
			vala_method_set_overrides (_tmp69_, TRUE);
		}
		_tmp73_ = method;
		_tmp74_ = vala_method_get_is_abstract (_tmp73_);
		_tmp75_ = _tmp74_;
		if (_tmp75_) {
			ValaMethod* _tmp76_;
			gboolean _tmp77_;
			gboolean _tmp78_;
			_tmp76_ = method;
			_tmp77_ = vala_method_get_is_virtual (_tmp76_);
			_tmp78_ = _tmp77_;
			_tmp72_ = _tmp78_;
		} else {
			_tmp72_ = FALSE;
		}
		if (_tmp72_) {
			_tmp71_ = TRUE;
		} else {
			gboolean _tmp79_ = FALSE;
			ValaMethod* _tmp80_;
			gboolean _tmp81_;
			gboolean _tmp82_;
			_tmp80_ = method;
			_tmp81_ = vala_method_get_is_abstract (_tmp80_);
			_tmp82_ = _tmp81_;
			if (_tmp82_) {
				ValaMethod* _tmp83_;
				gboolean _tmp84_;
				gboolean _tmp85_;
				_tmp83_ = method;
				_tmp84_ = vala_method_get_overrides (_tmp83_);
				_tmp85_ = _tmp84_;
				_tmp79_ = _tmp85_;
			} else {
				_tmp79_ = FALSE;
			}
			_tmp71_ = _tmp79_;
		}
		if (_tmp71_) {
			_tmp70_ = TRUE;
		} else {
			gboolean _tmp86_ = FALSE;
			ValaMethod* _tmp87_;
			gboolean _tmp88_;
			gboolean _tmp89_;
			_tmp87_ = method;
			_tmp88_ = vala_method_get_is_virtual (_tmp87_);
			_tmp89_ = _tmp88_;
			if (_tmp89_) {
				ValaMethod* _tmp90_;
				gboolean _tmp91_;
				gboolean _tmp92_;
				_tmp90_ = method;
				_tmp91_ = vala_method_get_overrides (_tmp90_);
				_tmp92_ = _tmp91_;
				_tmp86_ = _tmp92_;
			} else {
				_tmp86_ = FALSE;
			}
			_tmp70_ = _tmp86_;
		}
		if (_tmp70_) {
			GError* _tmp93_;
			_tmp93_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "only one of `abstract', `virtual', or `override' may be specified");
			_inner_error_ = _tmp93_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
	} else {
		gboolean _tmp94_ = FALSE;
		gboolean _tmp95_ = FALSE;
		ValaParserModifierFlags _tmp96_;
		_tmp96_ = flags;
		if ((_tmp96_ & VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) == VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) {
			_tmp95_ = TRUE;
		} else {
			ValaParserModifierFlags _tmp97_;
			_tmp97_ = flags;
			_tmp95_ = (_tmp97_ & VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) == VALA_PARSER_MODIFIER_FLAGS_VIRTUAL;
		}
		if (_tmp95_) {
			_tmp94_ = TRUE;
		} else {
			ValaParserModifierFlags _tmp98_;
			_tmp98_ = flags;
			_tmp94_ = (_tmp98_ & VALA_PARSER_MODIFIER_FLAGS_OVERRIDE) == VALA_PARSER_MODIFIER_FLAGS_OVERRIDE;
		}
		if (_tmp94_) {
			const gchar* _tmp99_ = NULL;
			ValaParserModifierFlags _tmp100_;
			GError* _tmp101_;
			_tmp100_ = flags;
			if ((_tmp100_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS) {
				_tmp99_ = "class";
			} else {
				_tmp99_ = "static";
			}
			_tmp101_ = g_error_new (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "the modifiers `abstract', `virtual', and `override' are not valid for " \
"%s methods", _tmp99_);
			_inner_error_ = _tmp101_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
	}
	_tmp102_ = flags;
	if ((_tmp102_ & VALA_PARSER_MODIFIER_FLAGS_INLINE) == VALA_PARSER_MODIFIER_FLAGS_INLINE) {
		ValaMethod* _tmp103_;
		_tmp103_ = method;
		vala_method_set_is_inline (_tmp103_, TRUE);
	}
	_tmp104_ = flags;
	if ((_tmp104_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		ValaMethod* _tmp105_;
		_tmp105_ = method;
		vala_symbol_set_external ((ValaSymbol*) _tmp105_, TRUE);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (method);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (method);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp106_ = vala_parser_current (self);
	if (_tmp106_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
		{
			gboolean _tmp107_ = FALSE;
			_tmp107_ = TRUE;
			while (TRUE) {
				ValaParameter* param = NULL;
				ValaParameter* _tmp109_;
				ValaMethod* _tmp110_;
				ValaParameter* _tmp111_;
				if (!_tmp107_) {
					gboolean _tmp108_;
					_tmp108_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp108_) {
						break;
					}
				}
				_tmp107_ = FALSE;
				_tmp109_ = vala_parser_parse_parameter (self, &_inner_error_);
				param = _tmp109_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (method);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						_vala_code_node_unref0 (type);
						return;
					} else {
						_vala_code_node_unref0 (method);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						_vala_code_node_unref0 (type);
						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;
					}
				}
				_tmp110_ = method;
				_tmp111_ = param;
				vala_callable_add_parameter ((ValaCallable*) _tmp110_, _tmp111_);
				_vala_code_node_unref0 (param);
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (method);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (method);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp112_ = vala_parser_accept (self, VALA_TOKEN_TYPE_THROWS);
	if (_tmp112_) {
		{
			gboolean _tmp113_ = FALSE;
			_tmp113_ = TRUE;
			while (TRUE) {
				ValaDataType* _tmp115_ = NULL;
				ValaDataType* _tmp116_;
				ValaMethod* _tmp117_;
				if (!_tmp113_) {
					gboolean _tmp114_;
					_tmp114_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp114_) {
						break;
					}
				}
				_tmp113_ = FALSE;
				_tmp116_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
				_tmp115_ = _tmp116_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (method);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						_vala_code_node_unref0 (type);
						return;
					} else {
						_vala_code_node_unref0 (method);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						_vala_code_node_unref0 (type);
						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;
					}
				}
				_tmp117_ = method;
				vala_code_node_add_error_type ((ValaCodeNode*) _tmp117_, _tmp115_);
				_vala_code_node_unref0 (_tmp115_);
			}
		}
	}
	while (TRUE) {
		gboolean _tmp118_;
		ValaExpression* _tmp119_ = NULL;
		ValaExpression* _tmp120_;
		ValaMethod* _tmp121_;
		_tmp118_ = vala_parser_accept (self, VALA_TOKEN_TYPE_REQUIRES);
		if (!_tmp118_) {
			break;
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp120_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp119_ = _tmp120_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp121_ = method;
		vala_method_add_precondition (_tmp121_, _tmp119_);
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (_tmp119_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (_tmp119_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_vala_code_node_unref0 (_tmp119_);
	}
	while (TRUE) {
		gboolean _tmp122_;
		ValaExpression* _tmp123_ = NULL;
		ValaExpression* _tmp124_;
		ValaMethod* _tmp125_;
		_tmp122_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ENSURES);
		if (!_tmp122_) {
			break;
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp124_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp123_ = _tmp124_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp125_ = method;
		vala_method_add_postcondition (_tmp125_, _tmp123_);
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (_tmp123_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (_tmp123_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_vala_code_node_unref0 (_tmp123_);
	}
	_tmp126_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SEMICOLON);
	if (!_tmp126_) {
		ValaBlock* _tmp127_ = NULL;
		ValaBlock* _tmp128_;
		ValaMethod* _tmp129_;
		_tmp128_ = vala_parser_parse_block (self, &_inner_error_);
		_tmp127_ = _tmp128_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp129_ = method;
		vala_subroutine_set_body ((ValaSubroutine*) _tmp129_, _tmp127_);
		_vala_code_node_unref0 (_tmp127_);
	} else {
		ValaScanner* _tmp130_;
		ValaSourceFile* _tmp131_;
		ValaSourceFile* _tmp132_;
		ValaSourceFileType _tmp133_;
		ValaSourceFileType _tmp134_;
		_tmp130_ = self->priv->scanner;
		_tmp131_ = vala_scanner_get_source_file (_tmp130_);
		_tmp132_ = _tmp131_;
		_tmp133_ = vala_source_file_get_file_type (_tmp132_);
		_tmp134_ = _tmp133_;
		if (_tmp134_ == VALA_SOURCE_FILE_TYPE_PACKAGE) {
			ValaMethod* _tmp135_;
			_tmp135_ = method;
			vala_symbol_set_external ((ValaSymbol*) _tmp135_, TRUE);
		}
	}
	_tmp136_ = parent;
	_tmp137_ = method;
	vala_symbol_add_method (_tmp136_, _tmp137_);
	_vala_code_node_unref0 (method);
	_vala_iterable_unref0 (type_param_list);
	_vala_code_node_unref0 (sym);
	_vala_code_node_unref0 (type);
}


static void vala_parser_parse_property_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaDataType* type = NULL;
	ValaDataType* _tmp3_;
	gboolean getter_owned = FALSE;
	gboolean _tmp4_;
	gchar* id = NULL;
	gchar* _tmp10_;
	ValaProperty* prop = NULL;
	const gchar* _tmp11_;
	ValaDataType* _tmp12_;
	ValaSourceLocation _tmp13_;
	ValaSourceReference* _tmp14_;
	ValaSourceReference* _tmp15_;
	ValaComment* _tmp16_;
	ValaProperty* _tmp17_;
	ValaProperty* _tmp18_;
	ValaProperty* _tmp19_;
	ValaSymbolAccessibility _tmp20_;
	ValaProperty* _tmp21_;
	ValaList* _tmp22_;
	gboolean _tmp23_ = FALSE;
	ValaParserModifierFlags _tmp24_;
	ValaParserModifierFlags _tmp33_;
	ValaParserModifierFlags _tmp35_;
	ValaParserModifierFlags _tmp37_;
	ValaParserModifierFlags _tmp39_;
	ValaParserModifierFlags _tmp41_;
	gboolean _tmp45_ = FALSE;
	ValaParserModifierFlags _tmp46_;
	gboolean _tmp53_ = FALSE;
	gboolean _tmp54_ = FALSE;
	gboolean _tmp55_ = FALSE;
	ValaProperty* _tmp56_;
	gboolean _tmp57_;
	gboolean _tmp58_;
	gboolean _tmp77_;
	gboolean _tmp166_ = FALSE;
	ValaProperty* _tmp167_;
	gboolean _tmp168_;
	gboolean _tmp169_;
	ValaSymbol* _tmp233_;
	ValaProperty* _tmp234_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp2_;
	_tmp3_ = vala_parser_parse_type (self, TRUE, TRUE, FALSE, &_inner_error_);
	type = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	getter_owned = FALSE;
	_tmp4_ = vala_parser_accept (self, VALA_TOKEN_TYPE_HASH);
	if (_tmp4_) {
		ValaCodeContext* _tmp5_;
		gboolean _tmp6_;
		gboolean _tmp7_;
		_tmp5_ = self->priv->context;
		_tmp6_ = vala_code_context_get_deprecated (_tmp5_);
		_tmp7_ = _tmp6_;
		if (!_tmp7_) {
			ValaSourceReference* _tmp8_;
			ValaSourceReference* _tmp9_;
			_tmp8_ = vala_parser_get_last_src (self);
			_tmp9_ = _tmp8_;
			vala_report_warning (_tmp9_, "deprecated syntax, use `owned` modifier before `get'");
			_vala_source_reference_unref0 (_tmp9_);
		}
		getter_owned = TRUE;
	}
	_tmp10_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp10_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp11_ = id;
	_tmp12_ = type;
	_tmp13_ = begin;
	_tmp14_ = vala_parser_get_src (self, &_tmp13_);
	_tmp15_ = _tmp14_;
	_tmp16_ = self->priv->comment;
	_tmp17_ = vala_property_new (_tmp11_, _tmp12_, NULL, NULL, _tmp15_, _tmp16_);
	_tmp18_ = _tmp17_;
	_vala_source_reference_unref0 (_tmp15_);
	prop = _tmp18_;
	_tmp19_ = prop;
	_tmp20_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp19_, _tmp20_);
	_tmp21_ = prop;
	_tmp22_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp21_, _tmp22_);
	_tmp24_ = flags;
	if ((_tmp24_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
		ValaParserModifierFlags _tmp25_;
		_tmp25_ = flags;
		_tmp23_ = (_tmp25_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS;
	} else {
		_tmp23_ = FALSE;
	}
	if (_tmp23_) {
		ValaProperty* _tmp26_;
		ValaSourceReference* _tmp27_;
		ValaSourceReference* _tmp28_;
		_tmp26_ = prop;
		_tmp27_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp26_);
		_tmp28_ = _tmp27_;
		vala_report_error (_tmp28_, "only one of `static' or `class' may be specified");
	} else {
		ValaParserModifierFlags _tmp29_;
		_tmp29_ = flags;
		if ((_tmp29_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
			ValaProperty* _tmp30_;
			_tmp30_ = prop;
			vala_property_set_binding (_tmp30_, VALA_MEMBER_BINDING_STATIC);
		} else {
			ValaParserModifierFlags _tmp31_;
			_tmp31_ = flags;
			if ((_tmp31_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS) {
				ValaProperty* _tmp32_;
				_tmp32_ = prop;
				vala_property_set_binding (_tmp32_, VALA_MEMBER_BINDING_CLASS);
			}
		}
	}
	_tmp33_ = flags;
	if ((_tmp33_ & VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) == VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) {
		ValaProperty* _tmp34_;
		_tmp34_ = prop;
		vala_property_set_is_abstract (_tmp34_, TRUE);
	}
	_tmp35_ = flags;
	if ((_tmp35_ & VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) == VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) {
		ValaProperty* _tmp36_;
		_tmp36_ = prop;
		vala_property_set_is_virtual (_tmp36_, TRUE);
	}
	_tmp37_ = flags;
	if ((_tmp37_ & VALA_PARSER_MODIFIER_FLAGS_OVERRIDE) == VALA_PARSER_MODIFIER_FLAGS_OVERRIDE) {
		ValaProperty* _tmp38_;
		_tmp38_ = prop;
		vala_property_set_overrides (_tmp38_, TRUE);
	}
	_tmp39_ = flags;
	if ((_tmp39_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		ValaProperty* _tmp40_;
		_tmp40_ = prop;
		vala_symbol_set_hides ((ValaSymbol*) _tmp40_, TRUE);
	}
	_tmp41_ = flags;
	if ((_tmp41_ & VALA_PARSER_MODIFIER_FLAGS_ASYNC) == VALA_PARSER_MODIFIER_FLAGS_ASYNC) {
		ValaProperty* _tmp42_;
		ValaSourceReference* _tmp43_;
		ValaSourceReference* _tmp44_;
		_tmp42_ = prop;
		_tmp43_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp42_);
		_tmp44_ = _tmp43_;
		vala_report_error (_tmp44_, "async properties are not supported yet");
	}
	_tmp46_ = flags;
	if ((_tmp46_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp45_ = TRUE;
	} else {
		ValaScanner* _tmp47_;
		ValaSourceFile* _tmp48_;
		ValaSourceFile* _tmp49_;
		ValaSourceFileType _tmp50_;
		ValaSourceFileType _tmp51_;
		_tmp47_ = self->priv->scanner;
		_tmp48_ = vala_scanner_get_source_file (_tmp47_);
		_tmp49_ = _tmp48_;
		_tmp50_ = vala_source_file_get_file_type (_tmp49_);
		_tmp51_ = _tmp50_;
		_tmp45_ = _tmp51_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp45_) {
		ValaProperty* _tmp52_;
		_tmp52_ = prop;
		vala_symbol_set_external ((ValaSymbol*) _tmp52_, TRUE);
	}
	_tmp56_ = prop;
	_tmp57_ = vala_property_get_is_abstract (_tmp56_);
	_tmp58_ = _tmp57_;
	if (_tmp58_) {
		ValaProperty* _tmp59_;
		gboolean _tmp60_;
		gboolean _tmp61_;
		_tmp59_ = prop;
		_tmp60_ = vala_property_get_is_virtual (_tmp59_);
		_tmp61_ = _tmp60_;
		_tmp55_ = _tmp61_;
	} else {
		_tmp55_ = FALSE;
	}
	if (_tmp55_) {
		_tmp54_ = TRUE;
	} else {
		gboolean _tmp62_ = FALSE;
		ValaProperty* _tmp63_;
		gboolean _tmp64_;
		gboolean _tmp65_;
		_tmp63_ = prop;
		_tmp64_ = vala_property_get_is_abstract (_tmp63_);
		_tmp65_ = _tmp64_;
		if (_tmp65_) {
			ValaProperty* _tmp66_;
			gboolean _tmp67_;
			gboolean _tmp68_;
			_tmp66_ = prop;
			_tmp67_ = vala_property_get_overrides (_tmp66_);
			_tmp68_ = _tmp67_;
			_tmp62_ = _tmp68_;
		} else {
			_tmp62_ = FALSE;
		}
		_tmp54_ = _tmp62_;
	}
	if (_tmp54_) {
		_tmp53_ = TRUE;
	} else {
		gboolean _tmp69_ = FALSE;
		ValaProperty* _tmp70_;
		gboolean _tmp71_;
		gboolean _tmp72_;
		_tmp70_ = prop;
		_tmp71_ = vala_property_get_is_virtual (_tmp70_);
		_tmp72_ = _tmp71_;
		if (_tmp72_) {
			ValaProperty* _tmp73_;
			gboolean _tmp74_;
			gboolean _tmp75_;
			_tmp73_ = prop;
			_tmp74_ = vala_property_get_overrides (_tmp73_);
			_tmp75_ = _tmp74_;
			_tmp69_ = _tmp75_;
		} else {
			_tmp69_ = FALSE;
		}
		_tmp53_ = _tmp69_;
	}
	if (_tmp53_) {
		GError* _tmp76_;
		_tmp76_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "only one of `abstract', `virtual', or `override' may be specified");
		_inner_error_ = _tmp76_;
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (prop);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (prop);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp77_ = vala_parser_accept (self, VALA_TOKEN_TYPE_THROWS);
	if (_tmp77_) {
		ValaProperty* _tmp83_;
		ValaSourceReference* _tmp84_;
		ValaSourceReference* _tmp85_;
		{
			gboolean _tmp78_ = FALSE;
			_tmp78_ = TRUE;
			while (TRUE) {
				ValaDataType* _tmp80_ = NULL;
				ValaDataType* _tmp81_;
				ValaProperty* _tmp82_;
				if (!_tmp78_) {
					gboolean _tmp79_;
					_tmp79_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp79_) {
						break;
					}
				}
				_tmp78_ = FALSE;
				_tmp81_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
				_tmp80_ = _tmp81_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (prop);
						_g_free0 (id);
						_vala_code_node_unref0 (type);
						return;
					} else {
						_vala_code_node_unref0 (prop);
						_g_free0 (id);
						_vala_code_node_unref0 (type);
						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;
					}
				}
				_tmp82_ = prop;
				vala_code_node_add_error_type ((ValaCodeNode*) _tmp82_, _tmp80_);
				_vala_code_node_unref0 (_tmp80_);
			}
		}
		_tmp83_ = prop;
		_tmp84_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp83_);
		_tmp85_ = _tmp84_;
		vala_report_error (_tmp85_, "properties throwing errors are not supported yet");
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (prop);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (prop);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	while (TRUE) {
		ValaTokenType _tmp86_;
		gboolean _tmp87_;
		_tmp86_ = vala_parser_current (self);
		if (!(_tmp86_ != VALA_TOKEN_TYPE_CLOSE_BRACE)) {
			break;
		}
		_tmp87_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DEFAULT);
		if (_tmp87_) {
			ValaProperty* _tmp88_;
			ValaExpression* _tmp89_;
			ValaExpression* _tmp90_;
			ValaExpression* _tmp92_ = NULL;
			ValaExpression* _tmp93_;
			ValaProperty* _tmp94_;
			_tmp88_ = prop;
			_tmp89_ = vala_property_get_initializer (_tmp88_);
			_tmp90_ = _tmp89_;
			if (_tmp90_ != NULL) {
				GError* _tmp91_;
				_tmp91_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "property default value already defined");
				_inner_error_ = _tmp91_;
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					return;
				} else {
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					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;
				}
			}
			vala_parser_expect (self, VALA_TOKEN_TYPE_ASSIGN, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					return;
				} else {
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					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;
				}
			}
			_tmp93_ = vala_parser_parse_expression (self, &_inner_error_);
			_tmp92_ = _tmp93_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					return;
				} else {
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					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;
				}
			}
			_tmp94_ = prop;
			vala_property_set_initializer (_tmp94_, _tmp92_);
			vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (_tmp92_);
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					return;
				} else {
					_vala_code_node_unref0 (_tmp92_);
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					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;
				}
			}
			_vala_code_node_unref0 (_tmp92_);
		} else {
			ValaScanner* _tmp95_;
			ValaComment* _tmp96_;
			ValaSourceLocation accessor_begin = {0};
			ValaSourceLocation _tmp97_ = {0};
			ValaList* accessor_attrs = NULL;
			ValaList* _tmp98_;
			ValaSymbolAccessibility accessor_access = 0;
			ValaSymbolAccessibility _tmp99_;
			ValaDataType* value_type = NULL;
			ValaDataType* _tmp100_;
			ValaDataType* _tmp101_;
			ValaDataType* _tmp102_;
			gboolean _tmp103_;
			gboolean _tmp104_;
			_tmp95_ = self->priv->scanner;
			_tmp96_ = vala_scanner_pop_comment (_tmp95_);
			_vala_comment_unref0 (self->priv->comment);
			self->priv->comment = _tmp96_;
			vala_parser_get_location (self, &_tmp97_);
			accessor_begin = _tmp97_;
			_tmp98_ = vala_parser_parse_attributes (self, &_inner_error_);
			accessor_attrs = _tmp98_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					return;
				} else {
					_vala_code_node_unref0 (prop);
					_g_free0 (id);
					_vala_code_node_unref0 (type);
					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;
				}
			}
			_tmp99_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
			accessor_access = _tmp99_;
			_tmp100_ = type;
			_tmp101_ = vala_data_type_copy (_tmp100_);
			value_type = _tmp101_;
			_tmp102_ = value_type;
			_tmp103_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OWNED);
			vala_data_type_set_value_owned (_tmp102_, _tmp103_);
			_tmp104_ = vala_parser_accept (self, VALA_TOKEN_TYPE_GET);
			if (_tmp104_) {
				ValaProperty* _tmp105_;
				ValaPropertyAccessor* _tmp106_;
				ValaPropertyAccessor* _tmp107_;
				gboolean _tmp109_;
				ValaBlock* block = NULL;
				gboolean _tmp111_;
				ValaProperty* _tmp116_;
				ValaDataType* _tmp117_;
				ValaBlock* _tmp118_;
				ValaSourceLocation _tmp119_;
				ValaSourceReference* _tmp120_;
				ValaSourceReference* _tmp121_;
				ValaComment* _tmp122_;
				ValaPropertyAccessor* _tmp123_;
				ValaPropertyAccessor* _tmp124_;
				ValaProperty* _tmp125_;
				ValaPropertyAccessor* _tmp126_;
				ValaPropertyAccessor* _tmp127_;
				ValaList* _tmp128_;
				ValaProperty* _tmp129_;
				ValaPropertyAccessor* _tmp130_;
				ValaPropertyAccessor* _tmp131_;
				ValaSymbolAccessibility _tmp132_;
				_tmp105_ = prop;
				_tmp106_ = vala_property_get_get_accessor (_tmp105_);
				_tmp107_ = _tmp106_;
				if (_tmp107_ != NULL) {
					GError* _tmp108_;
					_tmp108_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "property get accessor already defined");
					_inner_error_ = _tmp108_;
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (value_type);
						_vala_iterable_unref0 (accessor_attrs);
						_vala_code_node_unref0 (prop);
						_g_free0 (id);
						_vala_code_node_unref0 (type);
						return;
					} else {
						_vala_code_node_unref0 (value_type);
						_vala_iterable_unref0 (accessor_attrs);
						_vala_code_node_unref0 (prop);
						_g_free0 (id);
						_vala_code_node_unref0 (type);
						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;
					}
				}
				_tmp109_ = getter_owned;
				if (_tmp109_) {
					ValaDataType* _tmp110_;
					_tmp110_ = value_type;
					vala_data_type_set_value_owned (_tmp110_, TRUE);
				}
				block = NULL;
				_tmp111_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SEMICOLON);
				if (!_tmp111_) {
					ValaBlock* _tmp112_ = NULL;
					ValaBlock* _tmp113_;
					ValaBlock* _tmp114_;
					ValaProperty* _tmp115_;
					_tmp113_ = vala_parser_parse_block (self, &_inner_error_);
					_tmp112_ = _tmp113_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (block);
							_vala_code_node_unref0 (value_type);
							_vala_iterable_unref0 (accessor_attrs);
							_vala_code_node_unref0 (prop);
							_g_free0 (id);
							_vala_code_node_unref0 (type);
							return;
						} else {
							_vala_code_node_unref0 (block);
							_vala_code_node_unref0 (value_type);
							_vala_iterable_unref0 (accessor_attrs);
							_vala_code_node_unref0 (prop);
							_g_free0 (id);
							_vala_code_node_unref0 (type);
							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;
						}
					}
					_tmp114_ = _tmp112_;
					_tmp112_ = NULL;
					_vala_code_node_unref0 (block);
					block = _tmp114_;
					_tmp115_ = prop;
					vala_symbol_set_external ((ValaSymbol*) _tmp115_, FALSE);
					_vala_code_node_unref0 (_tmp112_);
				}
				_tmp116_ = prop;
				_tmp117_ = value_type;
				_tmp118_ = block;
				_tmp119_ = accessor_begin;
				_tmp120_ = vala_parser_get_src (self, &_tmp119_);
				_tmp121_ = _tmp120_;
				_tmp122_ = self->priv->comment;
				_tmp123_ = vala_property_accessor_new (TRUE, FALSE, FALSE, _tmp117_, _tmp118_, _tmp121_, _tmp122_);
				_tmp124_ = _tmp123_;
				vala_property_set_get_accessor (_tmp116_, _tmp124_);
				_vala_code_node_unref0 (_tmp124_);
				_vala_source_reference_unref0 (_tmp121_);
				_tmp125_ = prop;
				_tmp126_ = vala_property_get_get_accessor (_tmp125_);
				_tmp127_ = _tmp126_;
				_tmp128_ = accessor_attrs;
				vala_parser_set_attributes (self, (ValaCodeNode*) _tmp127_, _tmp128_);
				_tmp129_ = prop;
				_tmp130_ = vala_property_get_get_accessor (_tmp129_);
				_tmp131_ = _tmp130_;
				_tmp132_ = accessor_access;
				vala_symbol_set_access ((ValaSymbol*) _tmp131_, _tmp132_);
				_vala_code_node_unref0 (block);
			} else {
				gboolean writable = FALSE;
				gboolean _construct = FALSE;
				gboolean _tmp133_;
				ValaProperty* _tmp138_;
				ValaPropertyAccessor* _tmp139_;
				ValaPropertyAccessor* _tmp140_;
				ValaBlock* block = NULL;
				gboolean _tmp142_;
				ValaProperty* _tmp147_;
				gboolean _tmp148_;
				gboolean _tmp149_;
				ValaDataType* _tmp150_;
				ValaBlock* _tmp151_;
				ValaSourceLocation _tmp152_;
				ValaSourceReference* _tmp153_;
				ValaSourceReference* _tmp154_;
				ValaComment* _tmp155_;
				ValaPropertyAccessor* _tmp156_;
				ValaPropertyAccessor* _tmp157_;
				ValaProperty* _tmp158_;
				ValaPropertyAccessor* _tmp159_;
				ValaPropertyAccessor* _tmp160_;
				ValaList* _tmp161_;
				ValaProperty* _tmp162_;
				ValaPropertyAccessor* _tmp163_;
				ValaPropertyAccessor* _tmp164_;
				ValaSymbolAccessibility _tmp165_;
				_tmp133_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SET);
				if (_tmp133_) {
					gboolean _tmp134_;
					writable = TRUE;
					_tmp134_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CONSTRUCT);
					_construct = _tmp134_;
				} else {
					gboolean _tmp135_;
					_tmp135_ = vala_parser_accept (self, VALA_TOKEN_TYPE_CONSTRUCT);
					if (_tmp135_) {
						gboolean _tmp136_;
						_construct = TRUE;
						_tmp136_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SET);
						writable = _tmp136_;
					} else {
						GError* _tmp137_;
						_tmp137_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "expected get, set, or construct");
						_inner_error_ = _tmp137_;
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (value_type);
							_vala_iterable_unref0 (accessor_attrs);
							_vala_code_node_unref0 (prop);
							_g_free0 (id);
							_vala_code_node_unref0 (type);
							return;
						} else {
							_vala_code_node_unref0 (value_type);
							_vala_iterable_unref0 (accessor_attrs);
							_vala_code_node_unref0 (prop);
							_g_free0 (id);
							_vala_code_node_unref0 (type);
							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;
						}
					}
				}
				_tmp138_ = prop;
				_tmp139_ = vala_property_get_set_accessor (_tmp138_);
				_tmp140_ = _tmp139_;
				if (_tmp140_ != NULL) {
					GError* _tmp141_;
					_tmp141_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "property set accessor already defined");
					_inner_error_ = _tmp141_;
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (value_type);
						_vala_iterable_unref0 (accessor_attrs);
						_vala_code_node_unref0 (prop);
						_g_free0 (id);
						_vala_code_node_unref0 (type);
						return;
					} else {
						_vala_code_node_unref0 (value_type);
						_vala_iterable_unref0 (accessor_attrs);
						_vala_code_node_unref0 (prop);
						_g_free0 (id);
						_vala_code_node_unref0 (type);
						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;
					}
				}
				block = NULL;
				_tmp142_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SEMICOLON);
				if (!_tmp142_) {
					ValaBlock* _tmp143_ = NULL;
					ValaBlock* _tmp144_;
					ValaBlock* _tmp145_;
					ValaProperty* _tmp146_;
					_tmp144_ = vala_parser_parse_block (self, &_inner_error_);
					_tmp143_ = _tmp144_;
					if (G_UNLIKELY (_inner_error_ != NULL)) {
						if (_inner_error_->domain == VALA_PARSE_ERROR) {
							g_propagate_error (error, _inner_error_);
							_vala_code_node_unref0 (block);
							_vala_code_node_unref0 (value_type);
							_vala_iterable_unref0 (accessor_attrs);
							_vala_code_node_unref0 (prop);
							_g_free0 (id);
							_vala_code_node_unref0 (type);
							return;
						} else {
							_vala_code_node_unref0 (block);
							_vala_code_node_unref0 (value_type);
							_vala_iterable_unref0 (accessor_attrs);
							_vala_code_node_unref0 (prop);
							_g_free0 (id);
							_vala_code_node_unref0 (type);
							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;
						}
					}
					_tmp145_ = _tmp143_;
					_tmp143_ = NULL;
					_vala_code_node_unref0 (block);
					block = _tmp145_;
					_tmp146_ = prop;
					vala_symbol_set_external ((ValaSymbol*) _tmp146_, FALSE);
					_vala_code_node_unref0 (_tmp143_);
				}
				_tmp147_ = prop;
				_tmp148_ = writable;
				_tmp149_ = _construct;
				_tmp150_ = value_type;
				_tmp151_ = block;
				_tmp152_ = accessor_begin;
				_tmp153_ = vala_parser_get_src (self, &_tmp152_);
				_tmp154_ = _tmp153_;
				_tmp155_ = self->priv->comment;
				_tmp156_ = vala_property_accessor_new (FALSE, _tmp148_, _tmp149_, _tmp150_, _tmp151_, _tmp154_, _tmp155_);
				_tmp157_ = _tmp156_;
				vala_property_set_set_accessor (_tmp147_, _tmp157_);
				_vala_code_node_unref0 (_tmp157_);
				_vala_source_reference_unref0 (_tmp154_);
				_tmp158_ = prop;
				_tmp159_ = vala_property_get_set_accessor (_tmp158_);
				_tmp160_ = _tmp159_;
				_tmp161_ = accessor_attrs;
				vala_parser_set_attributes (self, (ValaCodeNode*) _tmp160_, _tmp161_);
				_tmp162_ = prop;
				_tmp163_ = vala_property_get_set_accessor (_tmp162_);
				_tmp164_ = _tmp163_;
				_tmp165_ = accessor_access;
				vala_symbol_set_access ((ValaSymbol*) _tmp164_, _tmp165_);
				_vala_code_node_unref0 (block);
			}
			_vala_code_node_unref0 (value_type);
			_vala_iterable_unref0 (accessor_attrs);
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (prop);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (prop);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp167_ = prop;
	_tmp168_ = vala_property_get_is_abstract (_tmp167_);
	_tmp169_ = _tmp168_;
	if (!_tmp169_) {
		ValaProperty* _tmp170_;
		ValaSourceFileType _tmp171_;
		ValaSourceFileType _tmp172_;
		_tmp170_ = prop;
		_tmp171_ = vala_symbol_get_source_type ((ValaSymbol*) _tmp170_);
		_tmp172_ = _tmp171_;
		_tmp166_ = _tmp172_ == VALA_SOURCE_FILE_TYPE_SOURCE;
	} else {
		_tmp166_ = FALSE;
	}
	if (_tmp166_) {
		gboolean _tmp173_ = FALSE;
		ValaProperty* _tmp174_;
		ValaPropertyAccessor* _tmp175_;
		ValaPropertyAccessor* _tmp176_;
		gboolean empty_get = FALSE;
		gboolean _tmp182_ = FALSE;
		ValaProperty* _tmp183_;
		ValaPropertyAccessor* _tmp184_;
		ValaPropertyAccessor* _tmp185_;
		gboolean empty_set = FALSE;
		gboolean _tmp191_;
		gboolean _tmp192_;
		gboolean _tmp202_ = FALSE;
		gboolean _tmp203_;
		_tmp174_ = prop;
		_tmp175_ = vala_property_get_get_accessor (_tmp174_);
		_tmp176_ = _tmp175_;
		if (_tmp176_ != NULL) {
			ValaProperty* _tmp177_;
			ValaPropertyAccessor* _tmp178_;
			ValaPropertyAccessor* _tmp179_;
			ValaBlock* _tmp180_;
			ValaBlock* _tmp181_;
			_tmp177_ = prop;
			_tmp178_ = vala_property_get_get_accessor (_tmp177_);
			_tmp179_ = _tmp178_;
			_tmp180_ = vala_subroutine_get_body ((ValaSubroutine*) _tmp179_);
			_tmp181_ = _tmp180_;
			_tmp173_ = _tmp181_ == NULL;
		} else {
			_tmp173_ = FALSE;
		}
		empty_get = _tmp173_;
		_tmp183_ = prop;
		_tmp184_ = vala_property_get_set_accessor (_tmp183_);
		_tmp185_ = _tmp184_;
		if (_tmp185_ != NULL) {
			ValaProperty* _tmp186_;
			ValaPropertyAccessor* _tmp187_;
			ValaPropertyAccessor* _tmp188_;
			ValaBlock* _tmp189_;
			ValaBlock* _tmp190_;
			_tmp186_ = prop;
			_tmp187_ = vala_property_get_set_accessor (_tmp186_);
			_tmp188_ = _tmp187_;
			_tmp189_ = vala_subroutine_get_body ((ValaSubroutine*) _tmp188_);
			_tmp190_ = _tmp189_;
			_tmp182_ = _tmp190_ == NULL;
		} else {
			_tmp182_ = FALSE;
		}
		empty_set = _tmp182_;
		_tmp191_ = empty_get;
		_tmp192_ = empty_set;
		if (_tmp191_ != _tmp192_) {
			gboolean _tmp193_;
			ValaProperty* _tmp201_;
			_tmp193_ = empty_get;
			if (_tmp193_) {
				ValaProperty* _tmp194_;
				ValaSourceReference* _tmp195_;
				ValaSourceReference* _tmp196_;
				_tmp194_ = prop;
				_tmp195_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp194_);
				_tmp196_ = _tmp195_;
				vala_report_error (_tmp196_, "property getter must have a body");
			} else {
				gboolean _tmp197_;
				_tmp197_ = empty_set;
				if (_tmp197_) {
					ValaProperty* _tmp198_;
					ValaSourceReference* _tmp199_;
					ValaSourceReference* _tmp200_;
					_tmp198_ = prop;
					_tmp199_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp198_);
					_tmp200_ = _tmp199_;
					vala_report_error (_tmp200_, "property setter must have a body");
				}
			}
			_tmp201_ = prop;
			vala_code_node_set_error ((ValaCodeNode*) _tmp201_, TRUE);
		}
		_tmp203_ = empty_get;
		if (_tmp203_) {
			gboolean _tmp204_;
			_tmp204_ = empty_set;
			_tmp202_ = _tmp204_;
		} else {
			_tmp202_ = FALSE;
		}
		if (_tmp202_) {
			ValaDataType* variable_type = NULL;
			ValaProperty* _tmp205_;
			ValaDataType* _tmp206_;
			ValaDataType* _tmp207_;
			ValaDataType* _tmp208_;
			ValaProperty* _tmp209_;
			ValaProperty* _tmp210_;
			const gchar* _tmp211_;
			const gchar* _tmp212_;
			gchar* _tmp213_;
			gchar* _tmp214_;
			ValaDataType* _tmp215_;
			ValaProperty* _tmp216_;
			ValaExpression* _tmp217_;
			ValaExpression* _tmp218_;
			ValaProperty* _tmp219_;
			ValaSourceReference* _tmp220_;
			ValaSourceReference* _tmp221_;
			ValaField* _tmp222_;
			ValaField* _tmp223_;
			ValaProperty* _tmp224_;
			ValaField* _tmp225_;
			ValaField* _tmp226_;
			ValaProperty* _tmp227_;
			ValaField* _tmp228_;
			ValaField* _tmp229_;
			ValaProperty* _tmp230_;
			ValaMemberBinding _tmp231_;
			ValaMemberBinding _tmp232_;
			_tmp205_ = prop;
			_tmp206_ = vala_property_get_property_type (_tmp205_);
			_tmp207_ = _tmp206_;
			_tmp208_ = vala_data_type_copy (_tmp207_);
			variable_type = _tmp208_;
			_tmp209_ = prop;
			_tmp210_ = prop;
			_tmp211_ = vala_symbol_get_name ((ValaSymbol*) _tmp210_);
			_tmp212_ = _tmp211_;
			_tmp213_ = g_strdup_printf ("_%s", _tmp212_);
			_tmp214_ = _tmp213_;
			_tmp215_ = variable_type;
			_tmp216_ = prop;
			_tmp217_ = vala_property_get_initializer (_tmp216_);
			_tmp218_ = _tmp217_;
			_tmp219_ = prop;
			_tmp220_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp219_);
			_tmp221_ = _tmp220_;
			_tmp222_ = vala_field_new (_tmp214_, _tmp215_, _tmp218_, _tmp221_, NULL);
			_tmp223_ = _tmp222_;
			vala_property_set_field (_tmp209_, _tmp223_);
			_vala_code_node_unref0 (_tmp223_);
			_g_free0 (_tmp214_);
			_tmp224_ = prop;
			_tmp225_ = vala_property_get_field (_tmp224_);
			_tmp226_ = _tmp225_;
			vala_symbol_set_access ((ValaSymbol*) _tmp226_, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
			_tmp227_ = prop;
			_tmp228_ = vala_property_get_field (_tmp227_);
			_tmp229_ = _tmp228_;
			_tmp230_ = prop;
			_tmp231_ = vala_property_get_binding (_tmp230_);
			_tmp232_ = _tmp231_;
			vala_field_set_binding (_tmp229_, _tmp232_);
			_vala_code_node_unref0 (variable_type);
		}
	}
	_tmp233_ = parent;
	_tmp234_ = prop;
	vala_symbol_add_property (_tmp233_, _tmp234_);
	_vala_code_node_unref0 (prop);
	_g_free0 (id);
	_vala_code_node_unref0 (type);
}


static void vala_parser_parse_signal_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaDataType* type = NULL;
	ValaDataType* _tmp3_;
	gchar* id = NULL;
	gchar* _tmp4_;
	ValaSignal* sig = NULL;
	const gchar* _tmp5_;
	ValaDataType* _tmp6_;
	ValaSourceLocation _tmp7_;
	ValaSourceReference* _tmp8_;
	ValaSourceReference* _tmp9_;
	ValaComment* _tmp10_;
	ValaSignal* _tmp11_;
	ValaSignal* _tmp12_;
	ValaSignal* _tmp13_;
	ValaSymbolAccessibility _tmp14_;
	ValaSignal* _tmp15_;
	ValaList* _tmp16_;
	ValaParserModifierFlags _tmp17_;
	ValaParserModifierFlags _tmp21_;
	ValaParserModifierFlags _tmp23_;
	ValaTokenType _tmp25_;
	gboolean _tmp31_;
	ValaSymbol* _tmp35_;
	ValaSignal* _tmp36_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp2_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_SIGNAL, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp3_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
	type = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp5_ = id;
	_tmp6_ = type;
	_tmp7_ = begin;
	_tmp8_ = vala_parser_get_src (self, &_tmp7_);
	_tmp9_ = _tmp8_;
	_tmp10_ = self->priv->comment;
	_tmp11_ = vala_signal_new (_tmp5_, _tmp6_, _tmp9_, _tmp10_);
	_tmp12_ = _tmp11_;
	_vala_source_reference_unref0 (_tmp9_);
	sig = _tmp12_;
	_tmp13_ = sig;
	_tmp14_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp13_, _tmp14_);
	_tmp15_ = sig;
	_tmp16_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp15_, _tmp16_);
	_tmp17_ = flags;
	if ((_tmp17_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
		GError* _tmp18_;
		_tmp18_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "`static' modifier not allowed on signals");
		_inner_error_ = _tmp18_;
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sig);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (sig);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	} else {
		ValaParserModifierFlags _tmp19_;
		_tmp19_ = flags;
		if ((_tmp19_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS) {
			GError* _tmp20_;
			_tmp20_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "`class' modifier not allowed on signals");
			_inner_error_ = _tmp20_;
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (sig);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (sig);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				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;
			}
		}
	}
	_tmp21_ = flags;
	if ((_tmp21_ & VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) == VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) {
		ValaSignal* _tmp22_;
		_tmp22_ = sig;
		vala_signal_set_is_virtual (_tmp22_, TRUE);
	}
	_tmp23_ = flags;
	if ((_tmp23_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		ValaSignal* _tmp24_;
		_tmp24_ = sig;
		vala_symbol_set_hides ((ValaSymbol*) _tmp24_, TRUE);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sig);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (sig);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp25_ = vala_parser_current (self);
	if (_tmp25_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
		{
			gboolean _tmp26_ = FALSE;
			_tmp26_ = TRUE;
			while (TRUE) {
				ValaParameter* param = NULL;
				ValaParameter* _tmp28_;
				ValaSignal* _tmp29_;
				ValaParameter* _tmp30_;
				if (!_tmp26_) {
					gboolean _tmp27_;
					_tmp27_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp27_) {
						break;
					}
				}
				_tmp26_ = FALSE;
				_tmp28_ = vala_parser_parse_parameter (self, &_inner_error_);
				param = _tmp28_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (sig);
						_g_free0 (id);
						_vala_code_node_unref0 (type);
						return;
					} else {
						_vala_code_node_unref0 (sig);
						_g_free0 (id);
						_vala_code_node_unref0 (type);
						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;
					}
				}
				_tmp29_ = sig;
				_tmp30_ = param;
				vala_callable_add_parameter ((ValaCallable*) _tmp29_, _tmp30_);
				_vala_code_node_unref0 (param);
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sig);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (sig);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp31_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SEMICOLON);
	if (!_tmp31_) {
		ValaBlock* _tmp32_ = NULL;
		ValaBlock* _tmp33_;
		ValaSignal* _tmp34_;
		_tmp33_ = vala_parser_parse_block (self, &_inner_error_);
		_tmp32_ = _tmp33_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (sig);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				return;
			} else {
				_vala_code_node_unref0 (sig);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				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;
			}
		}
		_tmp34_ = sig;
		vala_signal_set_body (_tmp34_, _tmp32_);
		_vala_code_node_unref0 (_tmp32_);
	}
	_tmp35_ = parent;
	_tmp36_ = sig;
	vala_symbol_add_signal (_tmp35_, _tmp36_);
	_vala_code_node_unref0 (sig);
	_g_free0 (id);
	_vala_code_node_unref0 (type);
}


static void vala_parser_parse_constructor_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp1_;
	ValaParserModifierFlags _tmp2_;
	ValaConstructor* c = NULL;
	ValaSourceLocation _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaConstructor* _tmp7_;
	ValaConstructor* _tmp8_;
	gboolean _tmp9_ = FALSE;
	ValaParserModifierFlags _tmp10_;
	ValaBlock* _tmp19_ = NULL;
	ValaBlock* _tmp20_;
	ValaConstructor* _tmp21_;
	ValaSymbol* _tmp22_;
	ValaConstructor* _tmp23_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp1_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_CONSTRUCT, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp2_ = flags;
	if ((_tmp2_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		GError* _tmp3_;
		_tmp3_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "`new' modifier not allowed on constructor");
		_inner_error_ = _tmp3_;
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = begin;
	_tmp5_ = vala_parser_get_src (self, &_tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = vala_constructor_new (_tmp6_);
	_tmp8_ = _tmp7_;
	_vala_source_reference_unref0 (_tmp6_);
	c = _tmp8_;
	_tmp10_ = flags;
	if ((_tmp10_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
		ValaParserModifierFlags _tmp11_;
		_tmp11_ = flags;
		_tmp9_ = (_tmp11_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS;
	} else {
		_tmp9_ = FALSE;
	}
	if (_tmp9_) {
		ValaConstructor* _tmp12_;
		ValaSourceReference* _tmp13_;
		ValaSourceReference* _tmp14_;
		_tmp12_ = c;
		_tmp13_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp12_);
		_tmp14_ = _tmp13_;
		vala_report_error (_tmp14_, "only one of `static' or `class' may be specified");
	} else {
		ValaParserModifierFlags _tmp15_;
		_tmp15_ = flags;
		if ((_tmp15_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
			ValaConstructor* _tmp16_;
			_tmp16_ = c;
			vala_constructor_set_binding (_tmp16_, VALA_MEMBER_BINDING_STATIC);
		} else {
			ValaParserModifierFlags _tmp17_;
			_tmp17_ = flags;
			if ((_tmp17_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS) {
				ValaConstructor* _tmp18_;
				_tmp18_ = c;
				vala_constructor_set_binding (_tmp18_, VALA_MEMBER_BINDING_CLASS);
			}
		}
	}
	_tmp20_ = vala_parser_parse_block (self, &_inner_error_);
	_tmp19_ = _tmp20_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (c);
			return;
		} else {
			_vala_code_node_unref0 (c);
			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;
		}
	}
	_tmp21_ = c;
	vala_subroutine_set_body ((ValaSubroutine*) _tmp21_, _tmp19_);
	_tmp22_ = parent;
	_tmp23_ = c;
	vala_symbol_add_constructor (_tmp22_, _tmp23_);
	_vala_code_node_unref0 (_tmp19_);
	_vala_code_node_unref0 (c);
}


static void vala_parser_parse_destructor_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp1_;
	gchar* identifier = NULL;
	gchar* _tmp2_;
	ValaParserModifierFlags _tmp3_;
	ValaDestructor* d = NULL;
	ValaSourceLocation _tmp5_;
	ValaSourceReference* _tmp6_;
	ValaSourceReference* _tmp7_;
	ValaDestructor* _tmp8_;
	ValaDestructor* _tmp9_;
	const gchar* _tmp10_;
	ValaSymbol* _tmp11_;
	const gchar* _tmp12_;
	const gchar* _tmp13_;
	gboolean _tmp17_ = FALSE;
	ValaParserModifierFlags _tmp18_;
	ValaBlock* _tmp27_ = NULL;
	ValaBlock* _tmp28_;
	ValaDestructor* _tmp29_;
	ValaSymbol* _tmp30_;
	ValaDestructor* _tmp31_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp1_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_TILDE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp2_ = vala_parser_parse_identifier (self, &_inner_error_);
	identifier = _tmp2_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (identifier);
			return;
		} else {
			_g_free0 (identifier);
			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;
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (identifier);
			return;
		} else {
			_g_free0 (identifier);
			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;
		}
	}
	_tmp3_ = flags;
	if ((_tmp3_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		GError* _tmp4_;
		_tmp4_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "`new' modifier not allowed on destructor");
		_inner_error_ = _tmp4_;
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (identifier);
			return;
		} else {
			_g_free0 (identifier);
			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;
		}
	}
	_tmp5_ = begin;
	_tmp6_ = vala_parser_get_src (self, &_tmp5_);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_destructor_new (_tmp7_);
	_tmp9_ = _tmp8_;
	_vala_source_reference_unref0 (_tmp7_);
	d = _tmp9_;
	_tmp10_ = identifier;
	_tmp11_ = parent;
	_tmp12_ = vala_symbol_get_name (_tmp11_);
	_tmp13_ = _tmp12_;
	if (g_strcmp0 (_tmp10_, _tmp13_) != 0) {
		ValaDestructor* _tmp14_;
		ValaSourceReference* _tmp15_;
		ValaSourceReference* _tmp16_;
		_tmp14_ = d;
		_tmp15_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp14_);
		_tmp16_ = _tmp15_;
		vala_report_error (_tmp16_, "destructor and parent symbol name do not match");
	}
	_tmp18_ = flags;
	if ((_tmp18_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
		ValaParserModifierFlags _tmp19_;
		_tmp19_ = flags;
		_tmp17_ = (_tmp19_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS;
	} else {
		_tmp17_ = FALSE;
	}
	if (_tmp17_) {
		ValaDestructor* _tmp20_;
		ValaSourceReference* _tmp21_;
		ValaSourceReference* _tmp22_;
		_tmp20_ = d;
		_tmp21_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp20_);
		_tmp22_ = _tmp21_;
		vala_report_error (_tmp22_, "only one of `static' or `class' may be specified");
	} else {
		ValaParserModifierFlags _tmp23_;
		_tmp23_ = flags;
		if ((_tmp23_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
			ValaDestructor* _tmp24_;
			_tmp24_ = d;
			vala_destructor_set_binding (_tmp24_, VALA_MEMBER_BINDING_STATIC);
		} else {
			ValaParserModifierFlags _tmp25_;
			_tmp25_ = flags;
			if ((_tmp25_ & VALA_PARSER_MODIFIER_FLAGS_CLASS) == VALA_PARSER_MODIFIER_FLAGS_CLASS) {
				ValaDestructor* _tmp26_;
				_tmp26_ = d;
				vala_destructor_set_binding (_tmp26_, VALA_MEMBER_BINDING_CLASS);
			}
		}
	}
	_tmp28_ = vala_parser_parse_block (self, &_inner_error_);
	_tmp27_ = _tmp28_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (d);
			_g_free0 (identifier);
			return;
		} else {
			_vala_code_node_unref0 (d);
			_g_free0 (identifier);
			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;
		}
	}
	_tmp29_ = d;
	vala_subroutine_set_body ((ValaSubroutine*) _tmp29_, _tmp27_);
	_tmp30_ = parent;
	_tmp31_ = d;
	vala_symbol_add_destructor (_tmp30_, _tmp31_);
	_vala_code_node_unref0 (_tmp27_);
	_vala_code_node_unref0 (d);
	_g_free0 (identifier);
}


static void vala_parser_parse_struct_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp3_;
	ValaList* type_param_list = NULL;
	ValaList* _tmp4_;
	ValaDataType* base_type = NULL;
	gboolean _tmp5_;
	ValaStruct* st = NULL;
	ValaUnresolvedSymbol* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	ValaSourceLocation _tmp12_;
	ValaSourceReference* _tmp13_;
	ValaSourceReference* _tmp14_;
	ValaComment* _tmp15_;
	ValaStruct* _tmp16_;
	ValaStruct* _tmp17_;
	ValaStruct* _tmp18_;
	ValaSymbolAccessibility _tmp19_;
	gboolean _tmp20_ = FALSE;
	ValaParserModifierFlags _tmp21_;
	ValaStruct* _tmp28_;
	ValaList* _tmp29_;
	ValaDataType* _tmp43_;
	ValaStruct* _tmp46_;
	ValaSymbol* _result_ = NULL;
	ValaStruct* _tmp47_;
	ValaSymbol* _tmp48_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_type_declaration_modifiers (self);
	flags = _tmp2_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_STRUCT, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp3_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = vala_parser_parse_type_parameter_list (self, &_inner_error_);
	type_param_list = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	base_type = NULL;
	_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COLON);
	if (_tmp5_) {
		ValaDataType* _tmp6_ = NULL;
		ValaDataType* _tmp7_;
		ValaDataType* _tmp8_;
		_tmp7_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
		_tmp6_ = _tmp7_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (base_type);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				return;
			} else {
				_vala_code_node_unref0 (base_type);
				_vala_iterable_unref0 (type_param_list);
				_vala_code_node_unref0 (sym);
				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;
			}
		}
		_tmp8_ = _tmp6_;
		_tmp6_ = NULL;
		_vala_code_node_unref0 (base_type);
		base_type = _tmp8_;
		_vala_code_node_unref0 (_tmp6_);
	}
	_tmp9_ = sym;
	_tmp10_ = vala_symbol_get_name ((ValaSymbol*) _tmp9_);
	_tmp11_ = _tmp10_;
	_tmp12_ = begin;
	_tmp13_ = vala_parser_get_src (self, &_tmp12_);
	_tmp14_ = _tmp13_;
	_tmp15_ = self->priv->comment;
	_tmp16_ = vala_struct_new (_tmp11_, _tmp14_, _tmp15_);
	_tmp17_ = _tmp16_;
	_vala_source_reference_unref0 (_tmp14_);
	st = _tmp17_;
	_tmp18_ = st;
	_tmp19_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp18_, _tmp19_);
	_tmp21_ = flags;
	if ((_tmp21_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp20_ = TRUE;
	} else {
		ValaScanner* _tmp22_;
		ValaSourceFile* _tmp23_;
		ValaSourceFile* _tmp24_;
		ValaSourceFileType _tmp25_;
		ValaSourceFileType _tmp26_;
		_tmp22_ = self->priv->scanner;
		_tmp23_ = vala_scanner_get_source_file (_tmp22_);
		_tmp24_ = _tmp23_;
		_tmp25_ = vala_source_file_get_file_type (_tmp24_);
		_tmp26_ = _tmp25_;
		_tmp20_ = _tmp26_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp20_) {
		ValaStruct* _tmp27_;
		_tmp27_ = st;
		vala_symbol_set_external ((ValaSymbol*) _tmp27_, TRUE);
	}
	_tmp28_ = st;
	_tmp29_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp28_, _tmp29_);
	{
		ValaList* _type_param_list = NULL;
		ValaList* _tmp30_;
		ValaList* _tmp31_;
		gint _type_param_size = 0;
		ValaList* _tmp32_;
		gint _tmp33_;
		gint _tmp34_;
		gint _type_param_index = 0;
		_tmp30_ = type_param_list;
		_tmp31_ = _vala_iterable_ref0 (_tmp30_);
		_type_param_list = _tmp31_;
		_tmp32_ = _type_param_list;
		_tmp33_ = vala_collection_get_size ((ValaCollection*) _tmp32_);
		_tmp34_ = _tmp33_;
		_type_param_size = _tmp34_;
		_type_param_index = -1;
		while (TRUE) {
			gint _tmp35_;
			gint _tmp36_;
			gint _tmp37_;
			ValaTypeParameter* type_param = NULL;
			ValaList* _tmp38_;
			gint _tmp39_;
			gpointer _tmp40_;
			ValaStruct* _tmp41_;
			ValaTypeParameter* _tmp42_;
			_tmp35_ = _type_param_index;
			_type_param_index = _tmp35_ + 1;
			_tmp36_ = _type_param_index;
			_tmp37_ = _type_param_size;
			if (!(_tmp36_ < _tmp37_)) {
				break;
			}
			_tmp38_ = _type_param_list;
			_tmp39_ = _type_param_index;
			_tmp40_ = vala_list_get (_tmp38_, _tmp39_);
			type_param = (ValaTypeParameter*) _tmp40_;
			_tmp41_ = st;
			_tmp42_ = type_param;
			vala_struct_add_type_parameter (_tmp41_, _tmp42_);
			_vala_code_node_unref0 (type_param);
		}
		_vala_iterable_unref0 (_type_param_list);
	}
	_tmp43_ = base_type;
	if (_tmp43_ != NULL) {
		ValaStruct* _tmp44_;
		ValaDataType* _tmp45_;
		_tmp44_ = st;
		_tmp45_ = base_type;
		vala_struct_set_base_type (_tmp44_, _tmp45_);
	}
	_tmp46_ = st;
	vala_parser_parse_declarations (self, (ValaSymbol*) _tmp46_, FALSE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (st);
			_vala_code_node_unref0 (base_type);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (st);
			_vala_code_node_unref0 (base_type);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp47_ = st;
	_tmp48_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp47_);
	_result_ = _tmp48_;
	while (TRUE) {
		ValaUnresolvedSymbol* _tmp49_;
		ValaUnresolvedSymbol* _tmp50_;
		ValaUnresolvedSymbol* _tmp51_;
		ValaUnresolvedSymbol* _tmp52_;
		ValaUnresolvedSymbol* _tmp53_;
		ValaSymbol* _tmp54_ = NULL;
		ValaUnresolvedSymbol* _tmp55_;
		ValaSymbol* next = NULL;
		ValaSymbol* _tmp65_;
		ValaSymbol* _tmp66_;
		ValaSymbol* _tmp71_;
		ValaSymbol* _tmp72_;
		_tmp49_ = sym;
		if (!(_tmp49_ != NULL)) {
			break;
		}
		_tmp50_ = sym;
		_tmp51_ = vala_unresolved_symbol_get_inner (_tmp50_);
		_tmp52_ = _tmp51_;
		_tmp53_ = _vala_code_node_ref0 (_tmp52_);
		_vala_code_node_unref0 (sym);
		sym = _tmp53_;
		_tmp55_ = sym;
		if (_tmp55_ != NULL) {
			ValaUnresolvedSymbol* _tmp56_;
			const gchar* _tmp57_;
			const gchar* _tmp58_;
			ValaStruct* _tmp59_;
			ValaSourceReference* _tmp60_;
			ValaSourceReference* _tmp61_;
			ValaNamespace* _tmp62_;
			_tmp56_ = sym;
			_tmp57_ = vala_symbol_get_name ((ValaSymbol*) _tmp56_);
			_tmp58_ = _tmp57_;
			_tmp59_ = st;
			_tmp60_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp59_);
			_tmp61_ = _tmp60_;
			_tmp62_ = vala_namespace_new (_tmp58_, _tmp61_);
			_vala_code_node_unref0 (_tmp54_);
			_tmp54_ = (ValaSymbol*) _tmp62_;
		} else {
			ValaSymbol* _tmp63_;
			ValaSymbol* _tmp64_;
			_tmp63_ = parent;
			_tmp64_ = _vala_code_node_ref0 (_tmp63_);
			_vala_code_node_unref0 (_tmp54_);
			_tmp54_ = _tmp64_;
		}
		_tmp65_ = _vala_code_node_ref0 (_tmp54_);
		next = _tmp65_;
		_tmp66_ = _result_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp66_, VALA_TYPE_NAMESPACE)) {
			ValaSymbol* _tmp67_;
			ValaSymbol* _tmp68_;
			_tmp67_ = next;
			_tmp68_ = _result_;
			vala_symbol_add_namespace (_tmp67_, G_TYPE_CHECK_INSTANCE_CAST (_tmp68_, VALA_TYPE_NAMESPACE, ValaNamespace));
		} else {
			ValaSymbol* _tmp69_;
			ValaSymbol* _tmp70_;
			_tmp69_ = next;
			_tmp70_ = _result_;
			vala_symbol_add_struct (_tmp69_, G_TYPE_CHECK_INSTANCE_CAST (_tmp70_, VALA_TYPE_STRUCT, ValaStruct));
		}
		_tmp71_ = next;
		_tmp72_ = _vala_code_node_ref0 (_tmp71_);
		_vala_code_node_unref0 (_result_);
		_result_ = _tmp72_;
		_vala_code_node_unref0 (next);
		_vala_code_node_unref0 (_tmp54_);
	}
	_vala_code_node_unref0 (_result_);
	_vala_code_node_unref0 (st);
	_vala_code_node_unref0 (base_type);
	_vala_iterable_unref0 (type_param_list);
	_vala_code_node_unref0 (sym);
}


static void vala_parser_parse_interface_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp3_;
	ValaList* type_param_list = NULL;
	ValaList* _tmp4_;
	ValaArrayList* base_types = NULL;
	GEqualFunc _tmp5_;
	ValaArrayList* _tmp6_;
	gboolean _tmp7_;
	ValaInterface* iface = NULL;
	ValaUnresolvedSymbol* _tmp13_;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	ValaSourceLocation _tmp16_;
	ValaSourceReference* _tmp17_;
	ValaSourceReference* _tmp18_;
	ValaComment* _tmp19_;
	ValaInterface* _tmp20_;
	ValaInterface* _tmp21_;
	ValaInterface* _tmp22_;
	ValaSymbolAccessibility _tmp23_;
	gboolean _tmp24_ = FALSE;
	ValaParserModifierFlags _tmp25_;
	ValaInterface* _tmp32_;
	ValaList* _tmp33_;
	ValaInterface* _tmp60_;
	ValaSymbol* _result_ = NULL;
	ValaInterface* _tmp61_;
	ValaSymbol* _tmp62_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_type_declaration_modifiers (self);
	flags = _tmp2_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_INTERFACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp3_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = vala_parser_parse_type_parameter_list (self, &_inner_error_);
	type_param_list = _tmp4_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp5_ = g_direct_equal;
	_tmp6_ = vala_array_list_new (VALA_TYPE_DATA_TYPE, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp5_);
	base_types = _tmp6_;
	_tmp7_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COLON);
	if (_tmp7_) {
		{
			gboolean _tmp8_ = FALSE;
			_tmp8_ = TRUE;
			while (TRUE) {
				ValaDataType* type = NULL;
				ValaDataType* _tmp10_;
				ValaArrayList* _tmp11_;
				ValaDataType* _tmp12_;
				if (!_tmp8_) {
					gboolean _tmp9_;
					_tmp9_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp9_) {
						break;
					}
				}
				_tmp8_ = FALSE;
				_tmp10_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
				type = _tmp10_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (base_types);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						return;
					} else {
						_vala_iterable_unref0 (base_types);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						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;
					}
				}
				_tmp11_ = base_types;
				_tmp12_ = type;
				vala_collection_add ((ValaCollection*) _tmp11_, _tmp12_);
				_vala_code_node_unref0 (type);
			}
		}
	}
	_tmp13_ = sym;
	_tmp14_ = vala_symbol_get_name ((ValaSymbol*) _tmp13_);
	_tmp15_ = _tmp14_;
	_tmp16_ = begin;
	_tmp17_ = vala_parser_get_src (self, &_tmp16_);
	_tmp18_ = _tmp17_;
	_tmp19_ = self->priv->comment;
	_tmp20_ = vala_interface_new (_tmp15_, _tmp18_, _tmp19_);
	_tmp21_ = _tmp20_;
	_vala_source_reference_unref0 (_tmp18_);
	iface = _tmp21_;
	_tmp22_ = iface;
	_tmp23_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp22_, _tmp23_);
	_tmp25_ = flags;
	if ((_tmp25_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp24_ = TRUE;
	} else {
		ValaScanner* _tmp26_;
		ValaSourceFile* _tmp27_;
		ValaSourceFile* _tmp28_;
		ValaSourceFileType _tmp29_;
		ValaSourceFileType _tmp30_;
		_tmp26_ = self->priv->scanner;
		_tmp27_ = vala_scanner_get_source_file (_tmp26_);
		_tmp28_ = _tmp27_;
		_tmp29_ = vala_source_file_get_file_type (_tmp28_);
		_tmp30_ = _tmp29_;
		_tmp24_ = _tmp30_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp24_) {
		ValaInterface* _tmp31_;
		_tmp31_ = iface;
		vala_symbol_set_external ((ValaSymbol*) _tmp31_, TRUE);
	}
	_tmp32_ = iface;
	_tmp33_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp32_, _tmp33_);
	{
		ValaList* _type_param_list = NULL;
		ValaList* _tmp34_;
		ValaList* _tmp35_;
		gint _type_param_size = 0;
		ValaList* _tmp36_;
		gint _tmp37_;
		gint _tmp38_;
		gint _type_param_index = 0;
		_tmp34_ = type_param_list;
		_tmp35_ = _vala_iterable_ref0 (_tmp34_);
		_type_param_list = _tmp35_;
		_tmp36_ = _type_param_list;
		_tmp37_ = vala_collection_get_size ((ValaCollection*) _tmp36_);
		_tmp38_ = _tmp37_;
		_type_param_size = _tmp38_;
		_type_param_index = -1;
		while (TRUE) {
			gint _tmp39_;
			gint _tmp40_;
			gint _tmp41_;
			ValaTypeParameter* type_param = NULL;
			ValaList* _tmp42_;
			gint _tmp43_;
			gpointer _tmp44_;
			ValaInterface* _tmp45_;
			ValaTypeParameter* _tmp46_;
			_tmp39_ = _type_param_index;
			_type_param_index = _tmp39_ + 1;
			_tmp40_ = _type_param_index;
			_tmp41_ = _type_param_size;
			if (!(_tmp40_ < _tmp41_)) {
				break;
			}
			_tmp42_ = _type_param_list;
			_tmp43_ = _type_param_index;
			_tmp44_ = vala_list_get (_tmp42_, _tmp43_);
			type_param = (ValaTypeParameter*) _tmp44_;
			_tmp45_ = iface;
			_tmp46_ = type_param;
			vala_object_type_symbol_add_type_parameter ((ValaObjectTypeSymbol*) _tmp45_, _tmp46_);
			_vala_code_node_unref0 (type_param);
		}
		_vala_iterable_unref0 (_type_param_list);
	}
	{
		ValaArrayList* _base_type_list = NULL;
		ValaArrayList* _tmp47_;
		ValaArrayList* _tmp48_;
		gint _base_type_size = 0;
		ValaArrayList* _tmp49_;
		gint _tmp50_;
		gint _tmp51_;
		gint _base_type_index = 0;
		_tmp47_ = base_types;
		_tmp48_ = _vala_iterable_ref0 (_tmp47_);
		_base_type_list = _tmp48_;
		_tmp49_ = _base_type_list;
		_tmp50_ = vala_collection_get_size ((ValaCollection*) _tmp49_);
		_tmp51_ = _tmp50_;
		_base_type_size = _tmp51_;
		_base_type_index = -1;
		while (TRUE) {
			gint _tmp52_;
			gint _tmp53_;
			gint _tmp54_;
			ValaDataType* base_type = NULL;
			ValaArrayList* _tmp55_;
			gint _tmp56_;
			gpointer _tmp57_;
			ValaInterface* _tmp58_;
			ValaDataType* _tmp59_;
			_tmp52_ = _base_type_index;
			_base_type_index = _tmp52_ + 1;
			_tmp53_ = _base_type_index;
			_tmp54_ = _base_type_size;
			if (!(_tmp53_ < _tmp54_)) {
				break;
			}
			_tmp55_ = _base_type_list;
			_tmp56_ = _base_type_index;
			_tmp57_ = vala_list_get ((ValaList*) _tmp55_, _tmp56_);
			base_type = (ValaDataType*) _tmp57_;
			_tmp58_ = iface;
			_tmp59_ = base_type;
			vala_interface_add_prerequisite (_tmp58_, _tmp59_);
			_vala_code_node_unref0 (base_type);
		}
		_vala_iterable_unref0 (_base_type_list);
	}
	_tmp60_ = iface;
	vala_parser_parse_declarations (self, (ValaSymbol*) _tmp60_, FALSE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (iface);
			_vala_iterable_unref0 (base_types);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (iface);
			_vala_iterable_unref0 (base_types);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp61_ = iface;
	_tmp62_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp61_);
	_result_ = _tmp62_;
	while (TRUE) {
		ValaUnresolvedSymbol* _tmp63_;
		ValaUnresolvedSymbol* _tmp64_;
		ValaUnresolvedSymbol* _tmp65_;
		ValaUnresolvedSymbol* _tmp66_;
		ValaUnresolvedSymbol* _tmp67_;
		ValaSymbol* _tmp68_ = NULL;
		ValaUnresolvedSymbol* _tmp69_;
		ValaSymbol* next = NULL;
		ValaSymbol* _tmp79_;
		ValaSymbol* _tmp80_;
		ValaSymbol* _tmp85_;
		ValaSymbol* _tmp86_;
		_tmp63_ = sym;
		if (!(_tmp63_ != NULL)) {
			break;
		}
		_tmp64_ = sym;
		_tmp65_ = vala_unresolved_symbol_get_inner (_tmp64_);
		_tmp66_ = _tmp65_;
		_tmp67_ = _vala_code_node_ref0 (_tmp66_);
		_vala_code_node_unref0 (sym);
		sym = _tmp67_;
		_tmp69_ = sym;
		if (_tmp69_ != NULL) {
			ValaUnresolvedSymbol* _tmp70_;
			const gchar* _tmp71_;
			const gchar* _tmp72_;
			ValaInterface* _tmp73_;
			ValaSourceReference* _tmp74_;
			ValaSourceReference* _tmp75_;
			ValaNamespace* _tmp76_;
			_tmp70_ = sym;
			_tmp71_ = vala_symbol_get_name ((ValaSymbol*) _tmp70_);
			_tmp72_ = _tmp71_;
			_tmp73_ = iface;
			_tmp74_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp73_);
			_tmp75_ = _tmp74_;
			_tmp76_ = vala_namespace_new (_tmp72_, _tmp75_);
			_vala_code_node_unref0 (_tmp68_);
			_tmp68_ = (ValaSymbol*) _tmp76_;
		} else {
			ValaSymbol* _tmp77_;
			ValaSymbol* _tmp78_;
			_tmp77_ = parent;
			_tmp78_ = _vala_code_node_ref0 (_tmp77_);
			_vala_code_node_unref0 (_tmp68_);
			_tmp68_ = _tmp78_;
		}
		_tmp79_ = _vala_code_node_ref0 (_tmp68_);
		next = _tmp79_;
		_tmp80_ = _result_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp80_, VALA_TYPE_NAMESPACE)) {
			ValaSymbol* _tmp81_;
			ValaSymbol* _tmp82_;
			_tmp81_ = next;
			_tmp82_ = _result_;
			vala_symbol_add_namespace (_tmp81_, G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, VALA_TYPE_NAMESPACE, ValaNamespace));
		} else {
			ValaSymbol* _tmp83_;
			ValaSymbol* _tmp84_;
			_tmp83_ = next;
			_tmp84_ = _result_;
			vala_symbol_add_interface (_tmp83_, G_TYPE_CHECK_INSTANCE_CAST (_tmp84_, VALA_TYPE_INTERFACE, ValaInterface));
		}
		_tmp85_ = next;
		_tmp86_ = _vala_code_node_ref0 (_tmp85_);
		_vala_code_node_unref0 (_result_);
		_result_ = _tmp86_;
		_vala_code_node_unref0 (next);
		_vala_code_node_unref0 (_tmp68_);
	}
	_vala_code_node_unref0 (_result_);
	_vala_code_node_unref0 (iface);
	_vala_iterable_unref0 (base_types);
	_vala_iterable_unref0 (type_param_list);
	_vala_code_node_unref0 (sym);
}


static void vala_parser_parse_enum_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp3_;
	ValaEnum* en = NULL;
	ValaUnresolvedSymbol* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	ValaSourceLocation _tmp7_;
	ValaSourceReference* _tmp8_;
	ValaSourceReference* _tmp9_;
	ValaComment* _tmp10_;
	ValaEnum* _tmp11_;
	ValaEnum* _tmp12_;
	ValaEnum* _tmp13_;
	ValaSymbolAccessibility _tmp14_;
	gboolean _tmp15_ = FALSE;
	ValaParserModifierFlags _tmp16_;
	ValaEnum* _tmp23_;
	ValaList* _tmp24_;
	gboolean _tmp56_;
	ValaSymbol* _result_ = NULL;
	ValaEnum* _tmp59_;
	ValaSymbol* _tmp60_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_type_declaration_modifiers (self);
	flags = _tmp2_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_ENUM, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp3_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = sym;
	_tmp5_ = vala_symbol_get_name ((ValaSymbol*) _tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = begin;
	_tmp8_ = vala_parser_get_src (self, &_tmp7_);
	_tmp9_ = _tmp8_;
	_tmp10_ = self->priv->comment;
	_tmp11_ = vala_enum_new (_tmp6_, _tmp9_, _tmp10_);
	_tmp12_ = _tmp11_;
	_vala_source_reference_unref0 (_tmp9_);
	en = _tmp12_;
	_tmp13_ = en;
	_tmp14_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp13_, _tmp14_);
	_tmp16_ = flags;
	if ((_tmp16_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp15_ = TRUE;
	} else {
		ValaScanner* _tmp17_;
		ValaSourceFile* _tmp18_;
		ValaSourceFile* _tmp19_;
		ValaSourceFileType _tmp20_;
		ValaSourceFileType _tmp21_;
		_tmp17_ = self->priv->scanner;
		_tmp18_ = vala_scanner_get_source_file (_tmp17_);
		_tmp19_ = _tmp18_;
		_tmp20_ = vala_source_file_get_file_type (_tmp19_);
		_tmp21_ = _tmp20_;
		_tmp15_ = _tmp21_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp15_) {
		ValaEnum* _tmp22_;
		_tmp22_ = en;
		vala_symbol_set_external ((ValaSymbol*) _tmp22_, TRUE);
	}
	_tmp23_ = en;
	_tmp24_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp23_, _tmp24_);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (en);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (en);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	{
		gboolean _tmp25_ = FALSE;
		_tmp25_ = TRUE;
		while (TRUE) {
			gboolean _tmp27_ = FALSE;
			ValaTokenType _tmp28_;
			ValaList* value_attrs = NULL;
			ValaList* _tmp34_;
			ValaSourceLocation value_begin = {0};
			ValaSourceLocation _tmp35_ = {0};
			gchar* id = NULL;
			gchar* _tmp36_;
			ValaScanner* _tmp37_;
			ValaComment* _tmp38_;
			ValaExpression* value = NULL;
			gboolean _tmp39_;
			ValaEnumValue* ev = NULL;
			const gchar* _tmp43_;
			ValaExpression* _tmp44_;
			ValaSourceLocation _tmp45_;
			ValaSourceReference* _tmp46_;
			ValaSourceReference* _tmp47_;
			ValaComment* _tmp48_;
			ValaEnumValue* _tmp49_;
			ValaEnumValue* _tmp50_;
			ValaEnumValue* _tmp51_;
			ValaEnumValue* _tmp52_;
			ValaList* _tmp53_;
			ValaEnum* _tmp54_;
			ValaEnumValue* _tmp55_;
			if (!_tmp25_) {
				gboolean _tmp26_;
				_tmp26_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
				if (!_tmp26_) {
					break;
				}
			}
			_tmp25_ = FALSE;
			_tmp28_ = vala_parser_current (self);
			if (_tmp28_ == VALA_TOKEN_TYPE_CLOSE_BRACE) {
				ValaEnum* _tmp29_;
				ValaList* _tmp30_;
				ValaList* _tmp31_;
				gint _tmp32_;
				gint _tmp33_;
				_tmp29_ = en;
				_tmp30_ = vala_enum_get_values (_tmp29_);
				_tmp31_ = _tmp30_;
				_tmp32_ = vala_collection_get_size ((ValaCollection*) _tmp31_);
				_tmp33_ = _tmp32_;
				_tmp27_ = _tmp33_ > 0;
				_vala_iterable_unref0 (_tmp31_);
			} else {
				_tmp27_ = FALSE;
			}
			if (_tmp27_) {
				break;
			}
			_tmp34_ = vala_parser_parse_attributes (self, &_inner_error_);
			value_attrs = _tmp34_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (en);
					_vala_code_node_unref0 (sym);
					return;
				} else {
					_vala_code_node_unref0 (en);
					_vala_code_node_unref0 (sym);
					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;
				}
			}
			vala_parser_get_location (self, &_tmp35_);
			value_begin = _tmp35_;
			_tmp36_ = vala_parser_parse_identifier (self, &_inner_error_);
			id = _tmp36_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (value_attrs);
					_vala_code_node_unref0 (en);
					_vala_code_node_unref0 (sym);
					return;
				} else {
					_vala_iterable_unref0 (value_attrs);
					_vala_code_node_unref0 (en);
					_vala_code_node_unref0 (sym);
					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;
				}
			}
			_tmp37_ = self->priv->scanner;
			_tmp38_ = vala_scanner_pop_comment (_tmp37_);
			_vala_comment_unref0 (self->priv->comment);
			self->priv->comment = _tmp38_;
			value = NULL;
			_tmp39_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ASSIGN);
			if (_tmp39_) {
				ValaExpression* _tmp40_ = NULL;
				ValaExpression* _tmp41_;
				ValaExpression* _tmp42_;
				_tmp41_ = vala_parser_parse_expression (self, &_inner_error_);
				_tmp40_ = _tmp41_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (value);
						_g_free0 (id);
						_vala_iterable_unref0 (value_attrs);
						_vala_code_node_unref0 (en);
						_vala_code_node_unref0 (sym);
						return;
					} else {
						_vala_code_node_unref0 (value);
						_g_free0 (id);
						_vala_iterable_unref0 (value_attrs);
						_vala_code_node_unref0 (en);
						_vala_code_node_unref0 (sym);
						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;
					}
				}
				_tmp42_ = _tmp40_;
				_tmp40_ = NULL;
				_vala_code_node_unref0 (value);
				value = _tmp42_;
				_vala_code_node_unref0 (_tmp40_);
			}
			_tmp43_ = id;
			_tmp44_ = value;
			_tmp45_ = value_begin;
			_tmp46_ = vala_parser_get_src (self, &_tmp45_);
			_tmp47_ = _tmp46_;
			_tmp48_ = self->priv->comment;
			_tmp49_ = vala_enum_value_new (_tmp43_, _tmp44_, _tmp47_, _tmp48_);
			_tmp50_ = _tmp49_;
			_vala_source_reference_unref0 (_tmp47_);
			ev = _tmp50_;
			_tmp51_ = ev;
			vala_symbol_set_access ((ValaSymbol*) _tmp51_, VALA_SYMBOL_ACCESSIBILITY_PUBLIC);
			_tmp52_ = ev;
			_tmp53_ = value_attrs;
			vala_parser_set_attributes (self, (ValaCodeNode*) _tmp52_, _tmp53_);
			_tmp54_ = en;
			_tmp55_ = ev;
			vala_enum_add_value (_tmp54_, _tmp55_);
			_vala_code_node_unref0 (ev);
			_vala_code_node_unref0 (value);
			_g_free0 (id);
			_vala_iterable_unref0 (value_attrs);
		}
	}
	_tmp56_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SEMICOLON);
	if (_tmp56_) {
		while (TRUE) {
			ValaTokenType _tmp57_;
			ValaEnum* _tmp58_;
			_tmp57_ = vala_parser_current (self);
			if (!(_tmp57_ != VALA_TOKEN_TYPE_CLOSE_BRACE)) {
				break;
			}
			_tmp58_ = en;
			vala_parser_parse_declaration (self, (ValaSymbol*) _tmp58_, FALSE, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (en);
					_vala_code_node_unref0 (sym);
					return;
				} else {
					_vala_code_node_unref0 (en);
					_vala_code_node_unref0 (sym);
					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;
				}
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (en);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (en);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp59_ = en;
	_tmp60_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp59_);
	_result_ = _tmp60_;
	while (TRUE) {
		ValaUnresolvedSymbol* _tmp61_;
		ValaUnresolvedSymbol* _tmp62_;
		ValaUnresolvedSymbol* _tmp63_;
		ValaUnresolvedSymbol* _tmp64_;
		ValaUnresolvedSymbol* _tmp65_;
		ValaSymbol* _tmp66_ = NULL;
		ValaUnresolvedSymbol* _tmp67_;
		ValaSymbol* next = NULL;
		ValaSymbol* _tmp77_;
		ValaSymbol* _tmp78_;
		ValaSymbol* _tmp83_;
		ValaSymbol* _tmp84_;
		_tmp61_ = sym;
		if (!(_tmp61_ != NULL)) {
			break;
		}
		_tmp62_ = sym;
		_tmp63_ = vala_unresolved_symbol_get_inner (_tmp62_);
		_tmp64_ = _tmp63_;
		_tmp65_ = _vala_code_node_ref0 (_tmp64_);
		_vala_code_node_unref0 (sym);
		sym = _tmp65_;
		_tmp67_ = sym;
		if (_tmp67_ != NULL) {
			ValaUnresolvedSymbol* _tmp68_;
			const gchar* _tmp69_;
			const gchar* _tmp70_;
			ValaEnum* _tmp71_;
			ValaSourceReference* _tmp72_;
			ValaSourceReference* _tmp73_;
			ValaNamespace* _tmp74_;
			_tmp68_ = sym;
			_tmp69_ = vala_symbol_get_name ((ValaSymbol*) _tmp68_);
			_tmp70_ = _tmp69_;
			_tmp71_ = en;
			_tmp72_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp71_);
			_tmp73_ = _tmp72_;
			_tmp74_ = vala_namespace_new (_tmp70_, _tmp73_);
			_vala_code_node_unref0 (_tmp66_);
			_tmp66_ = (ValaSymbol*) _tmp74_;
		} else {
			ValaSymbol* _tmp75_;
			ValaSymbol* _tmp76_;
			_tmp75_ = parent;
			_tmp76_ = _vala_code_node_ref0 (_tmp75_);
			_vala_code_node_unref0 (_tmp66_);
			_tmp66_ = _tmp76_;
		}
		_tmp77_ = _vala_code_node_ref0 (_tmp66_);
		next = _tmp77_;
		_tmp78_ = _result_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp78_, VALA_TYPE_NAMESPACE)) {
			ValaSymbol* _tmp79_;
			ValaSymbol* _tmp80_;
			_tmp79_ = next;
			_tmp80_ = _result_;
			vala_symbol_add_namespace (_tmp79_, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, VALA_TYPE_NAMESPACE, ValaNamespace));
		} else {
			ValaSymbol* _tmp81_;
			ValaSymbol* _tmp82_;
			_tmp81_ = next;
			_tmp82_ = _result_;
			vala_symbol_add_enum (_tmp81_, G_TYPE_CHECK_INSTANCE_CAST (_tmp82_, VALA_TYPE_ENUM, ValaEnum));
		}
		_tmp83_ = next;
		_tmp84_ = _vala_code_node_ref0 (_tmp83_);
		_vala_code_node_unref0 (_result_);
		_result_ = _tmp84_;
		_vala_code_node_unref0 (next);
		_vala_code_node_unref0 (_tmp66_);
	}
	_vala_code_node_unref0 (_result_);
	_vala_code_node_unref0 (en);
	_vala_code_node_unref0 (sym);
}


static void vala_parser_parse_errordomain_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp3_;
	ValaErrorDomain* ed = NULL;
	ValaUnresolvedSymbol* _tmp4_;
	const gchar* _tmp5_;
	const gchar* _tmp6_;
	ValaSourceLocation _tmp7_;
	ValaSourceReference* _tmp8_;
	ValaSourceReference* _tmp9_;
	ValaComment* _tmp10_;
	ValaErrorDomain* _tmp11_;
	ValaErrorDomain* _tmp12_;
	ValaErrorDomain* _tmp13_;
	ValaSymbolAccessibility _tmp14_;
	gboolean _tmp15_ = FALSE;
	ValaParserModifierFlags _tmp16_;
	ValaErrorDomain* _tmp23_;
	ValaList* _tmp24_;
	gboolean _tmp54_;
	ValaSymbol* _result_ = NULL;
	ValaErrorDomain* _tmp57_;
	ValaSymbol* _tmp58_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_type_declaration_modifiers (self);
	flags = _tmp2_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_ERRORDOMAIN, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp3_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = sym;
	_tmp5_ = vala_symbol_get_name ((ValaSymbol*) _tmp4_);
	_tmp6_ = _tmp5_;
	_tmp7_ = begin;
	_tmp8_ = vala_parser_get_src (self, &_tmp7_);
	_tmp9_ = _tmp8_;
	_tmp10_ = self->priv->comment;
	_tmp11_ = vala_error_domain_new (_tmp6_, _tmp9_, _tmp10_);
	_tmp12_ = _tmp11_;
	_vala_source_reference_unref0 (_tmp9_);
	ed = _tmp12_;
	_tmp13_ = ed;
	_tmp14_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp13_, _tmp14_);
	_tmp16_ = flags;
	if ((_tmp16_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp15_ = TRUE;
	} else {
		ValaScanner* _tmp17_;
		ValaSourceFile* _tmp18_;
		ValaSourceFile* _tmp19_;
		ValaSourceFileType _tmp20_;
		ValaSourceFileType _tmp21_;
		_tmp17_ = self->priv->scanner;
		_tmp18_ = vala_scanner_get_source_file (_tmp17_);
		_tmp19_ = _tmp18_;
		_tmp20_ = vala_source_file_get_file_type (_tmp19_);
		_tmp21_ = _tmp20_;
		_tmp15_ = _tmp21_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp15_) {
		ValaErrorDomain* _tmp22_;
		_tmp22_ = ed;
		vala_symbol_set_external ((ValaSymbol*) _tmp22_, TRUE);
	}
	_tmp23_ = ed;
	_tmp24_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp23_, _tmp24_);
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (ed);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (ed);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	{
		gboolean _tmp25_ = FALSE;
		_tmp25_ = TRUE;
		while (TRUE) {
			gboolean _tmp27_ = FALSE;
			ValaTokenType _tmp28_;
			ValaList* code_attrs = NULL;
			ValaList* _tmp34_;
			ValaSourceLocation code_begin = {0};
			ValaSourceLocation _tmp35_ = {0};
			gchar* id = NULL;
			gchar* _tmp36_;
			ValaScanner* _tmp37_;
			ValaComment* _tmp38_;
			ValaErrorCode* ec = NULL;
			const gchar* _tmp39_;
			ValaSourceLocation _tmp40_;
			ValaSourceReference* _tmp41_;
			ValaSourceReference* _tmp42_;
			ValaComment* _tmp43_;
			ValaErrorCode* _tmp44_;
			ValaErrorCode* _tmp45_;
			ValaErrorCode* _tmp46_;
			ValaList* _tmp47_;
			gboolean _tmp48_;
			ValaErrorDomain* _tmp52_;
			ValaErrorCode* _tmp53_;
			if (!_tmp25_) {
				gboolean _tmp26_;
				_tmp26_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
				if (!_tmp26_) {
					break;
				}
			}
			_tmp25_ = FALSE;
			_tmp28_ = vala_parser_current (self);
			if (_tmp28_ == VALA_TOKEN_TYPE_CLOSE_BRACE) {
				ValaErrorDomain* _tmp29_;
				ValaList* _tmp30_;
				ValaList* _tmp31_;
				gint _tmp32_;
				gint _tmp33_;
				_tmp29_ = ed;
				_tmp30_ = vala_error_domain_get_codes (_tmp29_);
				_tmp31_ = _tmp30_;
				_tmp32_ = vala_collection_get_size ((ValaCollection*) _tmp31_);
				_tmp33_ = _tmp32_;
				_tmp27_ = _tmp33_ > 0;
				_vala_iterable_unref0 (_tmp31_);
			} else {
				_tmp27_ = FALSE;
			}
			if (_tmp27_) {
				break;
			}
			_tmp34_ = vala_parser_parse_attributes (self, &_inner_error_);
			code_attrs = _tmp34_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (ed);
					_vala_code_node_unref0 (sym);
					return;
				} else {
					_vala_code_node_unref0 (ed);
					_vala_code_node_unref0 (sym);
					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;
				}
			}
			vala_parser_get_location (self, &_tmp35_);
			code_begin = _tmp35_;
			_tmp36_ = vala_parser_parse_identifier (self, &_inner_error_);
			id = _tmp36_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_iterable_unref0 (code_attrs);
					_vala_code_node_unref0 (ed);
					_vala_code_node_unref0 (sym);
					return;
				} else {
					_vala_iterable_unref0 (code_attrs);
					_vala_code_node_unref0 (ed);
					_vala_code_node_unref0 (sym);
					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;
				}
			}
			_tmp37_ = self->priv->scanner;
			_tmp38_ = vala_scanner_pop_comment (_tmp37_);
			_vala_comment_unref0 (self->priv->comment);
			self->priv->comment = _tmp38_;
			_tmp39_ = id;
			_tmp40_ = code_begin;
			_tmp41_ = vala_parser_get_src (self, &_tmp40_);
			_tmp42_ = _tmp41_;
			_tmp43_ = self->priv->comment;
			_tmp44_ = vala_error_code_new (_tmp39_, _tmp42_, _tmp43_);
			_tmp45_ = _tmp44_;
			_vala_source_reference_unref0 (_tmp42_);
			ec = _tmp45_;
			_tmp46_ = ec;
			_tmp47_ = code_attrs;
			vala_parser_set_attributes (self, (ValaCodeNode*) _tmp46_, _tmp47_);
			_tmp48_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ASSIGN);
			if (_tmp48_) {
				ValaExpression* _tmp49_ = NULL;
				ValaExpression* _tmp50_;
				ValaErrorCode* _tmp51_;
				_tmp50_ = vala_parser_parse_expression (self, &_inner_error_);
				_tmp49_ = _tmp50_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (ec);
						_g_free0 (id);
						_vala_iterable_unref0 (code_attrs);
						_vala_code_node_unref0 (ed);
						_vala_code_node_unref0 (sym);
						return;
					} else {
						_vala_code_node_unref0 (ec);
						_g_free0 (id);
						_vala_iterable_unref0 (code_attrs);
						_vala_code_node_unref0 (ed);
						_vala_code_node_unref0 (sym);
						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;
					}
				}
				_tmp51_ = ec;
				vala_error_code_set_value (_tmp51_, _tmp49_);
				_vala_code_node_unref0 (_tmp49_);
			}
			_tmp52_ = ed;
			_tmp53_ = ec;
			vala_error_domain_add_code (_tmp52_, _tmp53_);
			_vala_code_node_unref0 (ec);
			_g_free0 (id);
			_vala_iterable_unref0 (code_attrs);
		}
	}
	_tmp54_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SEMICOLON);
	if (_tmp54_) {
		while (TRUE) {
			ValaTokenType _tmp55_;
			ValaErrorDomain* _tmp56_;
			_tmp55_ = vala_parser_current (self);
			if (!(_tmp55_ != VALA_TOKEN_TYPE_CLOSE_BRACE)) {
				break;
			}
			_tmp56_ = ed;
			vala_parser_parse_declaration (self, (ValaSymbol*) _tmp56_, FALSE, &_inner_error_);
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (ed);
					_vala_code_node_unref0 (sym);
					return;
				} else {
					_vala_code_node_unref0 (ed);
					_vala_code_node_unref0 (sym);
					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;
				}
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_BRACE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (ed);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (ed);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp57_ = ed;
	_tmp58_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp57_);
	_result_ = _tmp58_;
	while (TRUE) {
		ValaUnresolvedSymbol* _tmp59_;
		ValaUnresolvedSymbol* _tmp60_;
		ValaUnresolvedSymbol* _tmp61_;
		ValaUnresolvedSymbol* _tmp62_;
		ValaUnresolvedSymbol* _tmp63_;
		ValaSymbol* _tmp64_ = NULL;
		ValaUnresolvedSymbol* _tmp65_;
		ValaSymbol* next = NULL;
		ValaSymbol* _tmp75_;
		ValaSymbol* _tmp76_;
		ValaSymbol* _tmp81_;
		ValaSymbol* _tmp82_;
		_tmp59_ = sym;
		if (!(_tmp59_ != NULL)) {
			break;
		}
		_tmp60_ = sym;
		_tmp61_ = vala_unresolved_symbol_get_inner (_tmp60_);
		_tmp62_ = _tmp61_;
		_tmp63_ = _vala_code_node_ref0 (_tmp62_);
		_vala_code_node_unref0 (sym);
		sym = _tmp63_;
		_tmp65_ = sym;
		if (_tmp65_ != NULL) {
			ValaUnresolvedSymbol* _tmp66_;
			const gchar* _tmp67_;
			const gchar* _tmp68_;
			ValaErrorDomain* _tmp69_;
			ValaSourceReference* _tmp70_;
			ValaSourceReference* _tmp71_;
			ValaNamespace* _tmp72_;
			_tmp66_ = sym;
			_tmp67_ = vala_symbol_get_name ((ValaSymbol*) _tmp66_);
			_tmp68_ = _tmp67_;
			_tmp69_ = ed;
			_tmp70_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp69_);
			_tmp71_ = _tmp70_;
			_tmp72_ = vala_namespace_new (_tmp68_, _tmp71_);
			_vala_code_node_unref0 (_tmp64_);
			_tmp64_ = (ValaSymbol*) _tmp72_;
		} else {
			ValaSymbol* _tmp73_;
			ValaSymbol* _tmp74_;
			_tmp73_ = parent;
			_tmp74_ = _vala_code_node_ref0 (_tmp73_);
			_vala_code_node_unref0 (_tmp64_);
			_tmp64_ = _tmp74_;
		}
		_tmp75_ = _vala_code_node_ref0 (_tmp64_);
		next = _tmp75_;
		_tmp76_ = _result_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp76_, VALA_TYPE_NAMESPACE)) {
			ValaSymbol* _tmp77_;
			ValaSymbol* _tmp78_;
			_tmp77_ = next;
			_tmp78_ = _result_;
			vala_symbol_add_namespace (_tmp77_, G_TYPE_CHECK_INSTANCE_CAST (_tmp78_, VALA_TYPE_NAMESPACE, ValaNamespace));
		} else {
			ValaSymbol* _tmp79_;
			ValaSymbol* _tmp80_;
			_tmp79_ = next;
			_tmp80_ = _result_;
			vala_symbol_add_error_domain (_tmp79_, G_TYPE_CHECK_INSTANCE_CAST (_tmp80_, VALA_TYPE_ERROR_DOMAIN, ValaErrorDomain));
		}
		_tmp81_ = next;
		_tmp82_ = _vala_code_node_ref0 (_tmp81_);
		_vala_code_node_unref0 (_result_);
		_result_ = _tmp82_;
		_vala_code_node_unref0 (next);
		_vala_code_node_unref0 (_tmp64_);
	}
	_vala_code_node_unref0 (_result_);
	_vala_code_node_unref0 (ed);
	_vala_code_node_unref0 (sym);
}


static ValaSymbolAccessibility vala_parser_parse_access_modifier (ValaParser* self, ValaSymbolAccessibility default_access) {
	ValaSymbolAccessibility result = 0;
	ValaTokenType _tmp0_;
	g_return_val_if_fail (self != NULL, 0);
	_tmp0_ = vala_parser_current (self);
	switch (_tmp0_) {
		case VALA_TOKEN_TYPE_PRIVATE:
		{
			vala_parser_next (self);
			result = VALA_SYMBOL_ACCESSIBILITY_PRIVATE;
			return result;
		}
		case VALA_TOKEN_TYPE_PROTECTED:
		{
			vala_parser_next (self);
			result = VALA_SYMBOL_ACCESSIBILITY_PROTECTED;
			return result;
		}
		case VALA_TOKEN_TYPE_INTERNAL:
		{
			vala_parser_next (self);
			result = VALA_SYMBOL_ACCESSIBILITY_INTERNAL;
			return result;
		}
		case VALA_TOKEN_TYPE_PUBLIC:
		{
			vala_parser_next (self);
			result = VALA_SYMBOL_ACCESSIBILITY_PUBLIC;
			return result;
		}
		default:
		{
			ValaSymbolAccessibility _tmp1_;
			_tmp1_ = default_access;
			result = _tmp1_;
			return result;
		}
	}
}


static ValaParserModifierFlags vala_parser_parse_type_declaration_modifiers (ValaParser* self) {
	ValaParserModifierFlags result = 0;
	ValaParserModifierFlags flags = 0;
	g_return_val_if_fail (self != NULL, 0);
	flags = 0;
	while (TRUE) {
		ValaTokenType _tmp0_;
		_tmp0_ = vala_parser_current (self);
		switch (_tmp0_) {
			case VALA_TOKEN_TYPE_ABSTRACT:
			{
				ValaParserModifierFlags _tmp1_;
				vala_parser_next (self);
				_tmp1_ = flags;
				flags = _tmp1_ | VALA_PARSER_MODIFIER_FLAGS_ABSTRACT;
				break;
			}
			case VALA_TOKEN_TYPE_EXTERN:
			{
				ValaParserModifierFlags _tmp2_;
				vala_parser_next (self);
				_tmp2_ = flags;
				flags = _tmp2_ | VALA_PARSER_MODIFIER_FLAGS_EXTERN;
				break;
			}
			case VALA_TOKEN_TYPE_SEALED:
			{
				ValaParserModifierFlags _tmp3_;
				vala_parser_next (self);
				_tmp3_ = flags;
				flags = _tmp3_ | VALA_PARSER_MODIFIER_FLAGS_SEALED;
				break;
			}
			default:
			{
				result = flags;
				return result;
			}
		}
	}
}


static ValaParserModifierFlags vala_parser_parse_member_declaration_modifiers (ValaParser* self) {
	ValaParserModifierFlags result = 0;
	ValaParserModifierFlags flags = 0;
	g_return_val_if_fail (self != NULL, 0);
	flags = 0;
	while (TRUE) {
		ValaTokenType _tmp0_;
		_tmp0_ = vala_parser_current (self);
		switch (_tmp0_) {
			case VALA_TOKEN_TYPE_ABSTRACT:
			{
				ValaParserModifierFlags _tmp1_;
				vala_parser_next (self);
				_tmp1_ = flags;
				flags = _tmp1_ | VALA_PARSER_MODIFIER_FLAGS_ABSTRACT;
				break;
			}
			case VALA_TOKEN_TYPE_ASYNC:
			{
				ValaParserModifierFlags _tmp2_;
				vala_parser_next (self);
				_tmp2_ = flags;
				flags = _tmp2_ | VALA_PARSER_MODIFIER_FLAGS_ASYNC;
				break;
			}
			case VALA_TOKEN_TYPE_CLASS:
			{
				ValaParserModifierFlags _tmp3_;
				vala_parser_next (self);
				_tmp3_ = flags;
				flags = _tmp3_ | VALA_PARSER_MODIFIER_FLAGS_CLASS;
				break;
			}
			case VALA_TOKEN_TYPE_EXTERN:
			{
				ValaParserModifierFlags _tmp4_;
				vala_parser_next (self);
				_tmp4_ = flags;
				flags = _tmp4_ | VALA_PARSER_MODIFIER_FLAGS_EXTERN;
				break;
			}
			case VALA_TOKEN_TYPE_INLINE:
			{
				ValaParserModifierFlags _tmp5_;
				vala_parser_next (self);
				_tmp5_ = flags;
				flags = _tmp5_ | VALA_PARSER_MODIFIER_FLAGS_INLINE;
				break;
			}
			case VALA_TOKEN_TYPE_NEW:
			{
				ValaParserModifierFlags _tmp6_;
				vala_parser_next (self);
				_tmp6_ = flags;
				flags = _tmp6_ | VALA_PARSER_MODIFIER_FLAGS_NEW;
				break;
			}
			case VALA_TOKEN_TYPE_OVERRIDE:
			{
				ValaParserModifierFlags _tmp7_;
				vala_parser_next (self);
				_tmp7_ = flags;
				flags = _tmp7_ | VALA_PARSER_MODIFIER_FLAGS_OVERRIDE;
				break;
			}
			case VALA_TOKEN_TYPE_SEALED:
			{
				ValaParserModifierFlags _tmp8_;
				vala_parser_next (self);
				_tmp8_ = flags;
				flags = _tmp8_ | VALA_PARSER_MODIFIER_FLAGS_SEALED;
				break;
			}
			case VALA_TOKEN_TYPE_STATIC:
			{
				ValaParserModifierFlags _tmp9_;
				vala_parser_next (self);
				_tmp9_ = flags;
				flags = _tmp9_ | VALA_PARSER_MODIFIER_FLAGS_STATIC;
				break;
			}
			case VALA_TOKEN_TYPE_VIRTUAL:
			{
				ValaParserModifierFlags _tmp10_;
				vala_parser_next (self);
				_tmp10_ = flags;
				flags = _tmp10_ | VALA_PARSER_MODIFIER_FLAGS_VIRTUAL;
				break;
			}
			default:
			{
				result = flags;
				return result;
			}
		}
	}
}


static ValaParameter* vala_parser_parse_parameter (ValaParser* self, GError** error) {
	ValaParameter* result = NULL;
	ValaList* attrs = NULL;
	ValaList* _tmp0_;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp1_ = {0};
	gboolean _tmp2_;
	gboolean params_array = FALSE;
	gboolean _tmp8_;
	ValaParameterDirection direction = 0;
	gboolean _tmp9_;
	ValaDataType* type = NULL;
	ValaParameterDirection _tmp11_;
	gchar* id = NULL;
	gchar* _tmp22_;
	ValaDataType* _tmp23_ = NULL;
	ValaDataType* _tmp24_;
	ValaDataType* _tmp25_;
	ValaDataType* _tmp26_;
	ValaParameter* param = NULL;
	const gchar* _tmp27_;
	ValaDataType* _tmp28_;
	ValaSourceLocation _tmp29_;
	ValaSourceReference* _tmp30_;
	ValaSourceReference* _tmp31_;
	ValaParameter* _tmp32_;
	ValaParameter* _tmp33_;
	ValaParameter* _tmp34_;
	ValaList* _tmp35_;
	ValaParameter* _tmp36_;
	ValaParameterDirection _tmp37_;
	ValaParameter* _tmp38_;
	gboolean _tmp39_;
	gboolean _tmp40_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_parser_parse_attributes (self, &_inner_error_);
	attrs = _tmp0_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return NULL;
		} else {
			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 NULL;
		}
	}
	vala_parser_get_location (self, &_tmp1_);
	begin = _tmp1_;
	_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ELLIPSIS);
	if (_tmp2_) {
		ValaSourceLocation _tmp3_;
		ValaSourceReference* _tmp4_;
		ValaSourceReference* _tmp5_;
		ValaParameter* _tmp6_;
		ValaParameter* _tmp7_;
		_tmp3_ = begin;
		_tmp4_ = vala_parser_get_src (self, &_tmp3_);
		_tmp5_ = _tmp4_;
		_tmp6_ = vala_parameter_new_with_ellipsis (_tmp5_);
		_tmp7_ = _tmp6_;
		_vala_source_reference_unref0 (_tmp5_);
		result = _tmp7_;
		_vala_iterable_unref0 (attrs);
		return result;
	}
	_tmp8_ = vala_parser_accept (self, VALA_TOKEN_TYPE_PARAMS);
	params_array = _tmp8_;
	direction = VALA_PARAMETER_DIRECTION_IN;
	_tmp9_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OUT);
	if (_tmp9_) {
		direction = VALA_PARAMETER_DIRECTION_OUT;
	} else {
		gboolean _tmp10_;
		_tmp10_ = vala_parser_accept (self, VALA_TOKEN_TYPE_REF);
		if (_tmp10_) {
			direction = VALA_PARAMETER_DIRECTION_REF;
		}
	}
	_tmp11_ = direction;
	if (_tmp11_ == VALA_PARAMETER_DIRECTION_IN) {
		ValaDataType* _tmp12_ = NULL;
		ValaDataType* _tmp13_;
		ValaDataType* _tmp14_;
		_tmp13_ = vala_parser_parse_type (self, FALSE, FALSE, FALSE, &_inner_error_);
		_tmp12_ = _tmp13_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (type);
				_vala_iterable_unref0 (attrs);
				return NULL;
			} else {
				_vala_code_node_unref0 (type);
				_vala_iterable_unref0 (attrs);
				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 NULL;
			}
		}
		_tmp14_ = _tmp12_;
		_tmp12_ = NULL;
		_vala_code_node_unref0 (type);
		type = _tmp14_;
		_vala_code_node_unref0 (_tmp12_);
	} else {
		ValaParameterDirection _tmp15_;
		_tmp15_ = direction;
		if (_tmp15_ == VALA_PARAMETER_DIRECTION_REF) {
			ValaDataType* _tmp16_ = NULL;
			ValaDataType* _tmp17_;
			ValaDataType* _tmp18_;
			_tmp17_ = vala_parser_parse_type (self, TRUE, TRUE, FALSE, &_inner_error_);
			_tmp16_ = _tmp17_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (type);
					_vala_iterable_unref0 (attrs);
					return NULL;
				} else {
					_vala_code_node_unref0 (type);
					_vala_iterable_unref0 (attrs);
					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 NULL;
				}
			}
			_tmp18_ = _tmp16_;
			_tmp16_ = NULL;
			_vala_code_node_unref0 (type);
			type = _tmp18_;
			_vala_code_node_unref0 (_tmp16_);
		} else {
			ValaDataType* _tmp19_ = NULL;
			ValaDataType* _tmp20_;
			ValaDataType* _tmp21_;
			_tmp20_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
			_tmp19_ = _tmp20_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (type);
					_vala_iterable_unref0 (attrs);
					return NULL;
				} else {
					_vala_code_node_unref0 (type);
					_vala_iterable_unref0 (attrs);
					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 NULL;
				}
			}
			_tmp21_ = _tmp19_;
			_tmp19_ = NULL;
			_vala_code_node_unref0 (type);
			type = _tmp21_;
			_vala_code_node_unref0 (_tmp19_);
		}
	}
	_tmp22_ = vala_parser_parse_identifier (self, &_inner_error_);
	id = _tmp22_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			_vala_iterable_unref0 (attrs);
			return NULL;
		} else {
			_vala_code_node_unref0 (type);
			_vala_iterable_unref0 (attrs);
			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 NULL;
		}
	}
	_tmp24_ = type;
	_tmp25_ = vala_parser_parse_inline_array_type (self, _tmp24_, &_inner_error_);
	_tmp23_ = _tmp25_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			_vala_iterable_unref0 (attrs);
			return NULL;
		} else {
			_g_free0 (id);
			_vala_code_node_unref0 (type);
			_vala_iterable_unref0 (attrs);
			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 NULL;
		}
	}
	_tmp26_ = _tmp23_;
	_tmp23_ = NULL;
	_vala_code_node_unref0 (type);
	type = _tmp26_;
	_tmp27_ = id;
	_tmp28_ = type;
	_tmp29_ = begin;
	_tmp30_ = vala_parser_get_src (self, &_tmp29_);
	_tmp31_ = _tmp30_;
	_tmp32_ = vala_parameter_new (_tmp27_, _tmp28_, _tmp31_);
	_tmp33_ = _tmp32_;
	_vala_source_reference_unref0 (_tmp31_);
	param = _tmp33_;
	_tmp34_ = param;
	_tmp35_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp34_, _tmp35_);
	_tmp36_ = param;
	_tmp37_ = direction;
	vala_parameter_set_direction (_tmp36_, _tmp37_);
	_tmp38_ = param;
	_tmp39_ = params_array;
	vala_parameter_set_params_array (_tmp38_, _tmp39_);
	_tmp40_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ASSIGN);
	if (_tmp40_) {
		ValaExpression* _tmp41_ = NULL;
		ValaExpression* _tmp42_;
		ValaParameter* _tmp43_;
		_tmp42_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp41_ = _tmp42_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (param);
				_vala_code_node_unref0 (_tmp23_);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				_vala_iterable_unref0 (attrs);
				return NULL;
			} else {
				_vala_code_node_unref0 (param);
				_vala_code_node_unref0 (_tmp23_);
				_g_free0 (id);
				_vala_code_node_unref0 (type);
				_vala_iterable_unref0 (attrs);
				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 NULL;
			}
		}
		_tmp43_ = param;
		vala_variable_set_initializer ((ValaVariable*) _tmp43_, _tmp41_);
		_vala_code_node_unref0 (_tmp41_);
	}
	result = param;
	_vala_code_node_unref0 (_tmp23_);
	_g_free0 (id);
	_vala_code_node_unref0 (type);
	_vala_iterable_unref0 (attrs);
	return result;
}


static void vala_parser_parse_creation_method_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp3_;
	ValaParserModifierFlags _tmp4_;
	ValaCreationMethod* method = NULL;
	ValaUnresolvedSymbol* _tmp6_;
	ValaUnresolvedSymbol* _tmp7_;
	ValaUnresolvedSymbol* _tmp8_;
	ValaParserModifierFlags _tmp30_;
	gboolean _tmp32_ = FALSE;
	gboolean _tmp33_ = FALSE;
	ValaParserModifierFlags _tmp34_;
	ValaParserModifierFlags _tmp40_;
	ValaTokenType _tmp42_;
	gboolean _tmp48_;
	ValaCreationMethod* _tmp62_;
	ValaSymbolAccessibility _tmp63_;
	ValaCreationMethod* _tmp64_;
	ValaList* _tmp65_;
	gboolean _tmp66_;
	ValaSymbol* _tmp76_;
	ValaCreationMethod* _tmp77_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp2_;
	_tmp3_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp3_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp4_ = flags;
	if ((_tmp4_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		GError* _tmp5_;
		_tmp5_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "`new' modifier not allowed on creation method");
		_inner_error_ = _tmp5_;
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp6_ = sym;
	_tmp7_ = vala_unresolved_symbol_get_inner (_tmp6_);
	_tmp8_ = _tmp7_;
	if (_tmp8_ == NULL) {
		ValaUnresolvedSymbol* _tmp9_;
		const gchar* _tmp10_;
		const gchar* _tmp11_;
		ValaSourceLocation _tmp12_;
		ValaSourceReference* _tmp13_;
		ValaSourceReference* _tmp14_;
		ValaComment* _tmp15_;
		ValaCreationMethod* _tmp16_;
		_tmp9_ = sym;
		_tmp10_ = vala_symbol_get_name ((ValaSymbol*) _tmp9_);
		_tmp11_ = _tmp10_;
		_tmp12_ = begin;
		_tmp13_ = vala_parser_get_src (self, &_tmp12_);
		_tmp14_ = _tmp13_;
		_tmp15_ = self->priv->comment;
		_tmp16_ = vala_creation_method_new (_tmp11_, NULL, _tmp14_, _tmp15_);
		_vala_code_node_unref0 (method);
		method = _tmp16_;
		_vala_source_reference_unref0 (_tmp14_);
	} else {
		ValaUnresolvedSymbol* _tmp17_;
		ValaUnresolvedSymbol* _tmp18_;
		ValaUnresolvedSymbol* _tmp19_;
		const gchar* _tmp20_;
		const gchar* _tmp21_;
		ValaUnresolvedSymbol* _tmp22_;
		const gchar* _tmp23_;
		const gchar* _tmp24_;
		ValaSourceLocation _tmp25_;
		ValaSourceReference* _tmp26_;
		ValaSourceReference* _tmp27_;
		ValaComment* _tmp28_;
		ValaCreationMethod* _tmp29_;
		_tmp17_ = sym;
		_tmp18_ = vala_unresolved_symbol_get_inner (_tmp17_);
		_tmp19_ = _tmp18_;
		_tmp20_ = vala_symbol_get_name ((ValaSymbol*) _tmp19_);
		_tmp21_ = _tmp20_;
		_tmp22_ = sym;
		_tmp23_ = vala_symbol_get_name ((ValaSymbol*) _tmp22_);
		_tmp24_ = _tmp23_;
		_tmp25_ = begin;
		_tmp26_ = vala_parser_get_src (self, &_tmp25_);
		_tmp27_ = _tmp26_;
		_tmp28_ = self->priv->comment;
		_tmp29_ = vala_creation_method_new (_tmp21_, _tmp24_, _tmp27_, _tmp28_);
		_vala_code_node_unref0 (method);
		method = _tmp29_;
		_vala_source_reference_unref0 (_tmp27_);
	}
	_tmp30_ = flags;
	if ((_tmp30_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		ValaCreationMethod* _tmp31_;
		_tmp31_ = method;
		vala_symbol_set_external ((ValaSymbol*) _tmp31_, TRUE);
	}
	_tmp34_ = flags;
	if ((_tmp34_ & VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) == VALA_PARSER_MODIFIER_FLAGS_ABSTRACT) {
		_tmp33_ = TRUE;
	} else {
		ValaParserModifierFlags _tmp35_;
		_tmp35_ = flags;
		_tmp33_ = (_tmp35_ & VALA_PARSER_MODIFIER_FLAGS_VIRTUAL) == VALA_PARSER_MODIFIER_FLAGS_VIRTUAL;
	}
	if (_tmp33_) {
		_tmp32_ = TRUE;
	} else {
		ValaParserModifierFlags _tmp36_;
		_tmp36_ = flags;
		_tmp32_ = (_tmp36_ & VALA_PARSER_MODIFIER_FLAGS_OVERRIDE) == VALA_PARSER_MODIFIER_FLAGS_OVERRIDE;
	}
	if (_tmp32_) {
		ValaCreationMethod* _tmp37_;
		ValaSourceReference* _tmp38_;
		ValaSourceReference* _tmp39_;
		_tmp37_ = method;
		_tmp38_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp37_);
		_tmp39_ = _tmp38_;
		vala_report_error (_tmp39_, "abstract, virtual, and override modifiers are not applicable to creati" \
"on methods");
	}
	_tmp40_ = flags;
	if ((_tmp40_ & VALA_PARSER_MODIFIER_FLAGS_ASYNC) == VALA_PARSER_MODIFIER_FLAGS_ASYNC) {
		ValaCreationMethod* _tmp41_;
		_tmp41_ = method;
		vala_method_set_coroutine ((ValaMethod*) _tmp41_, TRUE);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (method);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (method);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp42_ = vala_parser_current (self);
	if (_tmp42_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
		{
			gboolean _tmp43_ = FALSE;
			_tmp43_ = TRUE;
			while (TRUE) {
				ValaParameter* param = NULL;
				ValaParameter* _tmp45_;
				ValaCreationMethod* _tmp46_;
				ValaParameter* _tmp47_;
				if (!_tmp43_) {
					gboolean _tmp44_;
					_tmp44_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp44_) {
						break;
					}
				}
				_tmp43_ = FALSE;
				_tmp45_ = vala_parser_parse_parameter (self, &_inner_error_);
				param = _tmp45_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (method);
						_vala_code_node_unref0 (sym);
						return;
					} else {
						_vala_code_node_unref0 (method);
						_vala_code_node_unref0 (sym);
						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;
					}
				}
				_tmp46_ = method;
				_tmp47_ = param;
				vala_callable_add_parameter ((ValaCallable*) _tmp46_, _tmp47_);
				_vala_code_node_unref0 (param);
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (method);
			_vala_code_node_unref0 (sym);
			return;
		} else {
			_vala_code_node_unref0 (method);
			_vala_code_node_unref0 (sym);
			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;
		}
	}
	_tmp48_ = vala_parser_accept (self, VALA_TOKEN_TYPE_THROWS);
	if (_tmp48_) {
		{
			gboolean _tmp49_ = FALSE;
			_tmp49_ = TRUE;
			while (TRUE) {
				ValaDataType* _tmp51_ = NULL;
				ValaDataType* _tmp52_;
				ValaCreationMethod* _tmp53_;
				if (!_tmp49_) {
					gboolean _tmp50_;
					_tmp50_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp50_) {
						break;
					}
				}
				_tmp49_ = FALSE;
				_tmp52_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
				_tmp51_ = _tmp52_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (method);
						_vala_code_node_unref0 (sym);
						return;
					} else {
						_vala_code_node_unref0 (method);
						_vala_code_node_unref0 (sym);
						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;
					}
				}
				_tmp53_ = method;
				vala_code_node_add_error_type ((ValaCodeNode*) _tmp53_, _tmp51_);
				_vala_code_node_unref0 (_tmp51_);
			}
		}
	}
	while (TRUE) {
		gboolean _tmp54_;
		ValaExpression* _tmp55_ = NULL;
		ValaExpression* _tmp56_;
		ValaCreationMethod* _tmp57_;
		_tmp54_ = vala_parser_accept (self, VALA_TOKEN_TYPE_REQUIRES);
		if (!_tmp54_) {
			break;
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				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;
			}
		}
		_tmp56_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp55_ = _tmp56_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				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;
			}
		}
		_tmp57_ = method;
		vala_method_add_precondition ((ValaMethod*) _tmp57_, _tmp55_);
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (_tmp55_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				return;
			} else {
				_vala_code_node_unref0 (_tmp55_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				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;
			}
		}
		_vala_code_node_unref0 (_tmp55_);
	}
	while (TRUE) {
		gboolean _tmp58_;
		ValaExpression* _tmp59_ = NULL;
		ValaExpression* _tmp60_;
		ValaCreationMethod* _tmp61_;
		_tmp58_ = vala_parser_accept (self, VALA_TOKEN_TYPE_ENSURES);
		if (!_tmp58_) {
			break;
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				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;
			}
		}
		_tmp60_ = vala_parser_parse_expression (self, &_inner_error_);
		_tmp59_ = _tmp60_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				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;
			}
		}
		_tmp61_ = method;
		vala_method_add_postcondition ((ValaMethod*) _tmp61_, _tmp59_);
		vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (_tmp59_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				return;
			} else {
				_vala_code_node_unref0 (_tmp59_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				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;
			}
		}
		_vala_code_node_unref0 (_tmp59_);
	}
	_tmp62_ = method;
	_tmp63_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp62_, _tmp63_);
	_tmp64_ = method;
	_tmp65_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp64_, _tmp65_);
	_tmp66_ = vala_parser_accept (self, VALA_TOKEN_TYPE_SEMICOLON);
	if (!_tmp66_) {
		ValaBlock* _tmp67_ = NULL;
		ValaBlock* _tmp68_;
		ValaCreationMethod* _tmp69_;
		_tmp68_ = vala_parser_parse_block (self, &_inner_error_);
		_tmp67_ = _tmp68_;
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				return;
			} else {
				_vala_code_node_unref0 (method);
				_vala_code_node_unref0 (sym);
				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;
			}
		}
		_tmp69_ = method;
		vala_subroutine_set_body ((ValaSubroutine*) _tmp69_, _tmp67_);
		_vala_code_node_unref0 (_tmp67_);
	} else {
		ValaScanner* _tmp70_;
		ValaSourceFile* _tmp71_;
		ValaSourceFile* _tmp72_;
		ValaSourceFileType _tmp73_;
		ValaSourceFileType _tmp74_;
		_tmp70_ = self->priv->scanner;
		_tmp71_ = vala_scanner_get_source_file (_tmp70_);
		_tmp72_ = _tmp71_;
		_tmp73_ = vala_source_file_get_file_type (_tmp72_);
		_tmp74_ = _tmp73_;
		if (_tmp74_ == VALA_SOURCE_FILE_TYPE_PACKAGE) {
			ValaCreationMethod* _tmp75_;
			_tmp75_ = method;
			vala_symbol_set_external ((ValaSymbol*) _tmp75_, TRUE);
		}
	}
	_tmp76_ = parent;
	_tmp77_ = method;
	vala_symbol_add_method (_tmp76_, (ValaMethod*) _tmp77_);
	_vala_code_node_unref0 (method);
	_vala_code_node_unref0 (sym);
}


static void vala_parser_parse_delegate_declaration (ValaParser* self, ValaSymbol* parent, ValaList* attrs, GError** error) {
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaSymbolAccessibility access = 0;
	ValaSymbolAccessibility _tmp1_;
	ValaParserModifierFlags flags = 0;
	ValaParserModifierFlags _tmp2_;
	ValaParserModifierFlags _tmp3_;
	ValaDataType* type = NULL;
	ValaDataType* _tmp5_;
	ValaUnresolvedSymbol* sym = NULL;
	ValaUnresolvedSymbol* _tmp6_;
	ValaList* type_param_list = NULL;
	ValaList* _tmp7_;
	ValaDelegate* d = NULL;
	ValaUnresolvedSymbol* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	ValaDataType* _tmp11_;
	ValaSourceLocation _tmp12_;
	ValaSourceReference* _tmp13_;
	ValaSourceReference* _tmp14_;
	ValaComment* _tmp15_;
	ValaDelegate* _tmp16_;
	ValaDelegate* _tmp17_;
	ValaDelegate* _tmp18_;
	ValaSymbolAccessibility _tmp19_;
	ValaDelegate* _tmp20_;
	ValaList* _tmp21_;
	ValaParserModifierFlags _tmp22_;
	gboolean _tmp29_ = FALSE;
	ValaParserModifierFlags _tmp30_;
	ValaTokenType _tmp50_;
	gboolean _tmp56_;
	ValaSymbol* _result_ = NULL;
	ValaDelegate* _tmp62_;
	ValaSymbol* _tmp63_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	g_return_if_fail (parent != NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_parse_access_modifier (self, VALA_SYMBOL_ACCESSIBILITY_PRIVATE);
	access = _tmp1_;
	_tmp2_ = vala_parser_parse_member_declaration_modifiers (self);
	flags = _tmp2_;
	vala_parser_expect (self, VALA_TOKEN_TYPE_DELEGATE, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp3_ = flags;
	if ((_tmp3_ & VALA_PARSER_MODIFIER_FLAGS_NEW) == VALA_PARSER_MODIFIER_FLAGS_NEW) {
		GError* _tmp4_;
		_tmp4_ = g_error_new_literal (VALA_PARSE_ERROR, VALA_PARSE_ERROR_SYNTAX, "`new' modifier not allowed on delegates");
		_inner_error_ = _tmp4_;
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp5_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
	type = _tmp5_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			return;
		} else {
			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;
		}
	}
	_tmp6_ = vala_parser_parse_symbol_name (self, &_inner_error_);
	sym = _tmp6_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp7_ = vala_parser_parse_type_parameter_list (self, &_inner_error_);
	type_param_list = _tmp7_;
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp8_ = sym;
	_tmp9_ = vala_symbol_get_name ((ValaSymbol*) _tmp8_);
	_tmp10_ = _tmp9_;
	_tmp11_ = type;
	_tmp12_ = begin;
	_tmp13_ = vala_parser_get_src (self, &_tmp12_);
	_tmp14_ = _tmp13_;
	_tmp15_ = self->priv->comment;
	_tmp16_ = vala_delegate_new (_tmp10_, _tmp11_, _tmp14_, _tmp15_);
	_tmp17_ = _tmp16_;
	_vala_source_reference_unref0 (_tmp14_);
	d = _tmp17_;
	_tmp18_ = d;
	_tmp19_ = access;
	vala_symbol_set_access ((ValaSymbol*) _tmp18_, _tmp19_);
	_tmp20_ = d;
	_tmp21_ = attrs;
	vala_parser_set_attributes (self, (ValaCodeNode*) _tmp20_, _tmp21_);
	_tmp22_ = flags;
	if ((_tmp22_ & VALA_PARSER_MODIFIER_FLAGS_STATIC) == VALA_PARSER_MODIFIER_FLAGS_STATIC) {
		ValaCodeContext* _tmp23_;
		gboolean _tmp24_;
		gboolean _tmp25_;
		ValaDelegate* _tmp28_;
		_tmp23_ = self->priv->context;
		_tmp24_ = vala_code_context_get_deprecated (_tmp23_);
		_tmp25_ = _tmp24_;
		if (!_tmp25_) {
			ValaSourceReference* _tmp26_;
			ValaSourceReference* _tmp27_;
			_tmp26_ = vala_parser_get_last_src (self);
			_tmp27_ = _tmp26_;
			vala_report_warning (_tmp27_, "deprecated syntax, use [CCode (has_target = false)]");
			_vala_source_reference_unref0 (_tmp27_);
		}
		_tmp28_ = d;
		vala_delegate_set_has_target (_tmp28_, FALSE);
	}
	_tmp30_ = flags;
	if ((_tmp30_ & VALA_PARSER_MODIFIER_FLAGS_EXTERN) == VALA_PARSER_MODIFIER_FLAGS_EXTERN) {
		_tmp29_ = TRUE;
	} else {
		ValaScanner* _tmp31_;
		ValaSourceFile* _tmp32_;
		ValaSourceFile* _tmp33_;
		ValaSourceFileType _tmp34_;
		ValaSourceFileType _tmp35_;
		_tmp31_ = self->priv->scanner;
		_tmp32_ = vala_scanner_get_source_file (_tmp31_);
		_tmp33_ = _tmp32_;
		_tmp34_ = vala_source_file_get_file_type (_tmp33_);
		_tmp35_ = _tmp34_;
		_tmp29_ = _tmp35_ == VALA_SOURCE_FILE_TYPE_PACKAGE;
	}
	if (_tmp29_) {
		ValaDelegate* _tmp36_;
		_tmp36_ = d;
		vala_symbol_set_external ((ValaSymbol*) _tmp36_, TRUE);
	}
	{
		ValaList* _type_param_list = NULL;
		ValaList* _tmp37_;
		ValaList* _tmp38_;
		gint _type_param_size = 0;
		ValaList* _tmp39_;
		gint _tmp40_;
		gint _tmp41_;
		gint _type_param_index = 0;
		_tmp37_ = type_param_list;
		_tmp38_ = _vala_iterable_ref0 (_tmp37_);
		_type_param_list = _tmp38_;
		_tmp39_ = _type_param_list;
		_tmp40_ = vala_collection_get_size ((ValaCollection*) _tmp39_);
		_tmp41_ = _tmp40_;
		_type_param_size = _tmp41_;
		_type_param_index = -1;
		while (TRUE) {
			gint _tmp42_;
			gint _tmp43_;
			gint _tmp44_;
			ValaTypeParameter* type_param = NULL;
			ValaList* _tmp45_;
			gint _tmp46_;
			gpointer _tmp47_;
			ValaDelegate* _tmp48_;
			ValaTypeParameter* _tmp49_;
			_tmp42_ = _type_param_index;
			_type_param_index = _tmp42_ + 1;
			_tmp43_ = _type_param_index;
			_tmp44_ = _type_param_size;
			if (!(_tmp43_ < _tmp44_)) {
				break;
			}
			_tmp45_ = _type_param_list;
			_tmp46_ = _type_param_index;
			_tmp47_ = vala_list_get (_tmp45_, _tmp46_);
			type_param = (ValaTypeParameter*) _tmp47_;
			_tmp48_ = d;
			_tmp49_ = type_param;
			vala_delegate_add_type_parameter (_tmp48_, _tmp49_);
			_vala_code_node_unref0 (type_param);
		}
		_vala_iterable_unref0 (_type_param_list);
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_OPEN_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (d);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (d);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp50_ = vala_parser_current (self);
	if (_tmp50_ != VALA_TOKEN_TYPE_CLOSE_PARENS) {
		{
			gboolean _tmp51_ = FALSE;
			_tmp51_ = TRUE;
			while (TRUE) {
				ValaParameter* param = NULL;
				ValaParameter* _tmp53_;
				ValaDelegate* _tmp54_;
				ValaParameter* _tmp55_;
				if (!_tmp51_) {
					gboolean _tmp52_;
					_tmp52_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp52_) {
						break;
					}
				}
				_tmp51_ = FALSE;
				_tmp53_ = vala_parser_parse_parameter (self, &_inner_error_);
				param = _tmp53_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (d);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						_vala_code_node_unref0 (type);
						return;
					} else {
						_vala_code_node_unref0 (d);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						_vala_code_node_unref0 (type);
						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;
					}
				}
				_tmp54_ = d;
				_tmp55_ = param;
				vala_callable_add_parameter ((ValaCallable*) _tmp54_, _tmp55_);
				_vala_code_node_unref0 (param);
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_CLOSE_PARENS, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (d);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (d);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp56_ = vala_parser_accept (self, VALA_TOKEN_TYPE_THROWS);
	if (_tmp56_) {
		{
			gboolean _tmp57_ = FALSE;
			_tmp57_ = TRUE;
			while (TRUE) {
				ValaDataType* _tmp59_ = NULL;
				ValaDataType* _tmp60_;
				ValaDelegate* _tmp61_;
				if (!_tmp57_) {
					gboolean _tmp58_;
					_tmp58_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp58_) {
						break;
					}
				}
				_tmp57_ = FALSE;
				_tmp60_ = vala_parser_parse_type (self, TRUE, FALSE, FALSE, &_inner_error_);
				_tmp59_ = _tmp60_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_code_node_unref0 (d);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						_vala_code_node_unref0 (type);
						return;
					} else {
						_vala_code_node_unref0 (d);
						_vala_iterable_unref0 (type_param_list);
						_vala_code_node_unref0 (sym);
						_vala_code_node_unref0 (type);
						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;
					}
				}
				_tmp61_ = d;
				vala_code_node_add_error_type ((ValaCodeNode*) _tmp61_, _tmp59_);
				_vala_code_node_unref0 (_tmp59_);
			}
		}
	}
	vala_parser_expect (self, VALA_TOKEN_TYPE_SEMICOLON, &_inner_error_);
	if (G_UNLIKELY (_inner_error_ != NULL)) {
		if (_inner_error_->domain == VALA_PARSE_ERROR) {
			g_propagate_error (error, _inner_error_);
			_vala_code_node_unref0 (d);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			return;
		} else {
			_vala_code_node_unref0 (d);
			_vala_iterable_unref0 (type_param_list);
			_vala_code_node_unref0 (sym);
			_vala_code_node_unref0 (type);
			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;
		}
	}
	_tmp62_ = d;
	_tmp63_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp62_);
	_result_ = _tmp63_;
	while (TRUE) {
		ValaUnresolvedSymbol* _tmp64_;
		ValaUnresolvedSymbol* _tmp65_;
		ValaUnresolvedSymbol* _tmp66_;
		ValaUnresolvedSymbol* _tmp67_;
		ValaUnresolvedSymbol* _tmp68_;
		ValaSymbol* _tmp69_ = NULL;
		ValaUnresolvedSymbol* _tmp70_;
		ValaSymbol* next = NULL;
		ValaSymbol* _tmp80_;
		ValaSymbol* _tmp81_;
		ValaSymbol* _tmp86_;
		ValaSymbol* _tmp87_;
		_tmp64_ = sym;
		if (!(_tmp64_ != NULL)) {
			break;
		}
		_tmp65_ = sym;
		_tmp66_ = vala_unresolved_symbol_get_inner (_tmp65_);
		_tmp67_ = _tmp66_;
		_tmp68_ = _vala_code_node_ref0 (_tmp67_);
		_vala_code_node_unref0 (sym);
		sym = _tmp68_;
		_tmp70_ = sym;
		if (_tmp70_ != NULL) {
			ValaUnresolvedSymbol* _tmp71_;
			const gchar* _tmp72_;
			const gchar* _tmp73_;
			ValaDelegate* _tmp74_;
			ValaSourceReference* _tmp75_;
			ValaSourceReference* _tmp76_;
			ValaNamespace* _tmp77_;
			_tmp71_ = sym;
			_tmp72_ = vala_symbol_get_name ((ValaSymbol*) _tmp71_);
			_tmp73_ = _tmp72_;
			_tmp74_ = d;
			_tmp75_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp74_);
			_tmp76_ = _tmp75_;
			_tmp77_ = vala_namespace_new (_tmp73_, _tmp76_);
			_vala_code_node_unref0 (_tmp69_);
			_tmp69_ = (ValaSymbol*) _tmp77_;
		} else {
			ValaSymbol* _tmp78_;
			ValaSymbol* _tmp79_;
			_tmp78_ = parent;
			_tmp79_ = _vala_code_node_ref0 (_tmp78_);
			_vala_code_node_unref0 (_tmp69_);
			_tmp69_ = _tmp79_;
		}
		_tmp80_ = _vala_code_node_ref0 (_tmp69_);
		next = _tmp80_;
		_tmp81_ = _result_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp81_, VALA_TYPE_NAMESPACE)) {
			ValaSymbol* _tmp82_;
			ValaSymbol* _tmp83_;
			_tmp82_ = next;
			_tmp83_ = _result_;
			vala_symbol_add_namespace (_tmp82_, G_TYPE_CHECK_INSTANCE_CAST (_tmp83_, VALA_TYPE_NAMESPACE, ValaNamespace));
		} else {
			ValaSymbol* _tmp84_;
			ValaSymbol* _tmp85_;
			_tmp84_ = next;
			_tmp85_ = _result_;
			vala_symbol_add_delegate (_tmp84_, G_TYPE_CHECK_INSTANCE_CAST (_tmp85_, VALA_TYPE_DELEGATE, ValaDelegate));
		}
		_tmp86_ = next;
		_tmp87_ = _vala_code_node_ref0 (_tmp86_);
		_vala_code_node_unref0 (_result_);
		_result_ = _tmp87_;
		_vala_code_node_unref0 (next);
		_vala_code_node_unref0 (_tmp69_);
	}
	_vala_code_node_unref0 (_result_);
	_vala_code_node_unref0 (d);
	_vala_iterable_unref0 (type_param_list);
	_vala_code_node_unref0 (sym);
	_vala_code_node_unref0 (type);
}


static ValaList* vala_parser_parse_type_parameter_list (ValaParser* self, GError** error) {
	ValaList* result = NULL;
	gboolean _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OP_LT);
	if (_tmp0_) {
		ValaArrayList* list = NULL;
		GEqualFunc _tmp1_;
		ValaArrayList* _tmp2_;
		_tmp1_ = g_direct_equal;
		_tmp2_ = vala_array_list_new (VALA_TYPE_TYPEPARAMETER, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp1_);
		list = _tmp2_;
		{
			gboolean _tmp3_ = FALSE;
			_tmp3_ = TRUE;
			while (TRUE) {
				ValaSourceLocation begin = {0};
				ValaSourceLocation _tmp5_ = {0};
				gchar* id = NULL;
				gchar* _tmp6_;
				ValaArrayList* _tmp7_;
				const gchar* _tmp8_;
				ValaSourceLocation _tmp9_;
				ValaSourceReference* _tmp10_;
				ValaSourceReference* _tmp11_;
				ValaTypeParameter* _tmp12_;
				ValaTypeParameter* _tmp13_;
				if (!_tmp3_) {
					gboolean _tmp4_;
					_tmp4_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp4_) {
						break;
					}
				}
				_tmp3_ = FALSE;
				vala_parser_get_location (self, &_tmp5_);
				begin = _tmp5_;
				_tmp6_ = vala_parser_parse_identifier (self, &_inner_error_);
				id = _tmp6_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_vala_iterable_unref0 (list);
						return NULL;
					} else {
						_vala_iterable_unref0 (list);
						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 NULL;
					}
				}
				_tmp7_ = list;
				_tmp8_ = id;
				_tmp9_ = begin;
				_tmp10_ = vala_parser_get_src (self, &_tmp9_);
				_tmp11_ = _tmp10_;
				_tmp12_ = vala_typeparameter_new (_tmp8_, _tmp11_);
				_tmp13_ = _tmp12_;
				vala_collection_add ((ValaCollection*) _tmp7_, _tmp13_);
				_vala_code_node_unref0 (_tmp13_);
				_vala_source_reference_unref0 (_tmp11_);
				_g_free0 (id);
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_OP_GT, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				_vala_iterable_unref0 (list);
				return NULL;
			} else {
				_vala_iterable_unref0 (list);
				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 NULL;
			}
		}
		result = (ValaList*) list;
		return result;
	} else {
		ValaList* _tmp14_;
		ValaList* _tmp17_;
		ValaList* _tmp18_;
		_tmp14_ = vala_parser__empty_type_parameter_list;
		if (_tmp14_ == NULL) {
			GEqualFunc _tmp15_;
			ValaArrayList* _tmp16_;
			_tmp15_ = g_direct_equal;
			_tmp16_ = vala_array_list_new (VALA_TYPE_TYPEPARAMETER, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp15_);
			_vala_iterable_unref0 (vala_parser__empty_type_parameter_list);
			vala_parser__empty_type_parameter_list = (ValaList*) _tmp16_;
		}
		_tmp17_ = vala_parser__empty_type_parameter_list;
		_tmp18_ = _vala_iterable_ref0 (_tmp17_);
		result = _tmp18_;
		return result;
	}
}


static void vala_parser_skip_type_argument_list (ValaParser* self, GError** error) {
	gboolean _tmp0_;
	GError * _inner_error_ = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OP_LT);
	if (_tmp0_) {
		{
			gboolean _tmp1_ = FALSE;
			_tmp1_ = TRUE;
			while (TRUE) {
				if (!_tmp1_) {
					gboolean _tmp2_;
					_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp2_) {
						break;
					}
				}
				_tmp1_ = FALSE;
				vala_parser_skip_type (self, &_inner_error_);
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						return;
					} else {
						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;
					}
				}
			}
		}
		vala_parser_expect (self, VALA_TOKEN_TYPE_OP_GT, &_inner_error_);
		if (G_UNLIKELY (_inner_error_ != NULL)) {
			if (_inner_error_->domain == VALA_PARSE_ERROR) {
				g_propagate_error (error, _inner_error_);
				return;
			} else {
				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;
			}
		}
	}
}


static ValaList* vala_parser_parse_type_argument_list (ValaParser* self, gboolean maybe_expression, GError** error) {
	ValaList* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	gboolean _tmp1_;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	_tmp1_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OP_LT);
	if (_tmp1_) {
		ValaArrayList* list = NULL;
		GEqualFunc _tmp2_;
		ValaArrayList* _tmp3_;
		gboolean _tmp11_;
		gboolean _tmp13_;
		_tmp2_ = g_direct_equal;
		_tmp3_ = vala_array_list_new (VALA_TYPE_DATA_TYPE, (GBoxedCopyFunc) vala_code_node_ref, (GDestroyNotify) vala_code_node_unref, _tmp2_);
		list = _tmp3_;
		{
			gboolean _tmp4_ = FALSE;
			_tmp4_ = TRUE;
			while (TRUE) {
				ValaTokenType _tmp6_;
				if (!_tmp4_) {
					gboolean _tmp5_;
					_tmp5_ = vala_parser_accept (self, VALA_TOKEN_TYPE_COMMA);
					if (!_tmp5_) {
						break;
					}
				}
				_tmp4_ = FALSE;
				_tmp6_ = vala_parser_current (self);
				switch (_tmp6_) {
					case VALA_TOKEN_TYPE_VOID:
					case VALA_TOKEN_TYPE_DYNAMIC:
					case VALA_TOKEN_TYPE_UNOWNED:
					case VALA_TOKEN_TYPE_WEAK:
					case VALA_TOKEN_TYPE_IDENTIFIER:
					{
						ValaDataType* type = NULL;
						ValaDataType* _tmp7_;
						ValaArrayList* _tmp8_;
						ValaDataType* _tmp9_;
						_tmp7_ = vala_parser_parse_type (self, TRUE, TRUE, FALSE, &_inner_error_);
						type = _tmp7_;
						if (G_UNLIKELY (_inner_error_ != NULL)) {
							if (_inner_error_->domain == VALA_PARSE_ERROR) {
								g_propagate_error (error, _inner_error_);
								_vala_iterable_unref0 (list);
								return NULL;
							} else {
								_vala_iterable_unref0 (list);
								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 NULL;
							}
						}
						_tmp8_ = list;
						_tmp9_ = type;
						vala_collection_add ((ValaCollection*) _tmp8_, _tmp9_);
						_vala_code_node_unref0 (type);
						break;
					}
					default:
					{
						ValaSourceLocation _tmp10_;
						_tmp10_ = begin;
						vala_parser_rollback (self, &_tmp10_);
						result = NULL;
						_vala_iterable_unref0 (list);
						return result;
					}
				}
			}
		}
		_tmp11_ = vala_parser_accept (self, VALA_TOKEN_TYPE_OP_GT);
		if (!_tmp11_) {
			ValaSourceLocation _tmp12_;
			_tmp12_ = begin;
			vala_parser_rollback (self, &_tmp12_);
			result = NULL;
			_vala_iterable_unref0 (list);
			return result;
		}
		_tmp13_ = maybe_expression;
		if (_tmp13_) {
			ValaTokenType _tmp14_;
			_tmp14_ = vala_parser_current (self);
			switch (_tmp14_) {
				case VALA_TOKEN_TYPE_OPEN_PARENS:
				case VALA_TOKEN_TYPE_CLOSE_PARENS:
				case VALA_TOKEN_TYPE_CLOSE_BRACKET:
				case VALA_TOKEN_TYPE_OPEN_BRACE:
				case VALA_TOKEN_TYPE_COLON:
				case VALA_TOKEN_TYPE_SEMICOLON:
				case VALA_TOKEN_TYPE_COMMA:
				case VALA_TOKEN_TYPE_DOT:
				case VALA_TOKEN_TYPE_INTERR:
				case VALA_TOKEN_TYPE_OP_EQ:
				case VALA_TOKEN_TYPE_OP_NE:
				{
					break;
				}
				default:
				{
					ValaSourceLocation _tmp15_;
					_tmp15_ = begin;
					vala_parser_rollback (self, &_tmp15_);
					result = NULL;
					_vala_iterable_unref0 (list);
					return result;
				}
			}
		}
		result = (ValaList*) list;
		return result;
	}
	result = NULL;
	return result;
}


static ValaMemberAccess* vala_parser_parse_member_name (ValaParser* self, ValaExpression* base_expr, GError** error) {
	ValaMemberAccess* result = NULL;
	ValaSourceLocation begin = {0};
	ValaSourceLocation _tmp0_ = {0};
	ValaMemberAccess* expr = NULL;
	gboolean first = FALSE;
	GError * _inner_error_ = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	vala_parser_get_location (self, &_tmp0_);
	begin = _tmp0_;
	expr = NULL;
	first = TRUE;
	{
		gboolean _tmp1_ = FALSE;
		_tmp1_ = TRUE;
		while (TRUE) {
			gchar* id = NULL;
			gchar* _tmp3_;
			gboolean qualified = FALSE;
			gboolean _tmp4_ = FALSE;
			gboolean _tmp5_ = FALSE;
			gboolean _tmp6_;
			ValaList* type_arg_list = NULL;
			ValaList* _tmp12_;
			ValaExpression* _tmp13_ = NULL;
			ValaMemberAccess* _tmp14_;
			const gchar* _tmp17_;
			ValaSourceLocation _tmp18_;
			ValaSourceReference* _tmp19_;
			ValaSourceReference* _tmp20_;
			ValaMemberAccess* _tmp21_;
			ValaMemberAccess* _tmp22_;
			gboolean _tmp23_;
			ValaList* _tmp24_;
			if (!_tmp1_) {
				gboolean _tmp2_;
				_tmp2_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DOT);
				if (!_tmp2_) {
					break;
				}
			}
			_tmp1_ = FALSE;
			_tmp3_ = vala_parser_parse_identifier (self, &_inner_error_);
			id = _tmp3_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			qualified = FALSE;
			_tmp6_ = first;
			if (_tmp6_) {
				const gchar* _tmp7_;
				_tmp7_ = id;
				_tmp5_ = g_strcmp0 (_tmp7_, "global") == 0;
			} else {
				_tmp5_ = FALSE;
			}
			if (_tmp5_) {
				gboolean _tmp8_;
				_tmp8_ = vala_parser_accept (self, VALA_TOKEN_TYPE_DOUBLE_COLON);
				_tmp4_ = _tmp8_;
			} else {
				_tmp4_ = FALSE;
			}
			if (_tmp4_) {
				gchar* _tmp9_ = NULL;
				gchar* _tmp10_;
				gchar* _tmp11_;
				_tmp10_ = vala_parser_parse_identifier (self, &_inner_error_);
				_tmp9_ = _tmp10_;
				if (G_UNLIKELY (_inner_error_ != NULL)) {
					if (_inner_error_->domain == VALA_PARSE_ERROR) {
						g_propagate_error (error, _inner_error_);
						_g_free0 (id);
						_vala_code_node_unref0 (expr);
						return NULL;
					} else {
						_g_free0 (id);
						_vala_code_node_unref0 (expr);
						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 NULL;
					}
				}
				_tmp11_ = _tmp9_;
				_tmp9_ = NULL;
				_g_free0 (id);
				id = _tmp11_;
				qualified = TRUE;
				_g_free0 (_tmp9_);
			}
			_tmp12_ = vala_parser_parse_type_argument_list (self, FALSE, &_inner_error_);
			type_arg_list = _tmp12_;
			if (G_UNLIKELY (_inner_error_ != NULL)) {
				if (_inner_error_->domain == VALA_PARSE_ERROR) {
					g_propagate_error (error, _inner_error_);
					_g_free0 (id);
					_vala_code_node_unref0 (expr);
					return NULL;
				} else {
					_g_free0 (id);
					_vala_code_node_unref0 (expr);
					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 NULL;
				}
			}
			_tmp14_ = expr;
			if (_tmp14_ != NULL) {
				ValaMemberAccess* _tmp15_;
				_tmp15_ = expr;
				_tmp13_ = (ValaExpression*) _tmp15_;
			} else {
				ValaExpression* _tmp16_;
				_tmp16_ = base_expr;
				_tmp13_ = _tmp16_;
			}
			_tmp17_ = id;
			_tmp18_ = begin;
			_tmp19_ = vala_parser_get_src (self, &_tmp18_);
			_tmp20_ = _tmp19_;
			_tmp21_ = vala_member_access_new (_tmp13_, _tmp17_, _tmp20_);
			_vala_code_node_unref0 (expr);
			expr = _tmp21_;
			_vala_source_reference_unref0 (_tmp20_);
			_tmp22_ = expr;
			_tmp23_ = qualified;
			vala_member_access_set_qualified (_tmp22_, _tmp23_);
			_tmp24_ = type_arg_list;
			if (_tmp24_ != NULL) {
				{
					ValaList* _type_arg_list = NULL;
					ValaList* _tmp25_;
					ValaList* _tmp26_;
					gint _type_arg_size = 0;
					ValaList* _tmp27_;
					gint _tmp28_;
					gint _tmp29_;
					gint _type_arg_index = 0;
					_tmp25_ = type_arg_list;
					_tmp26_ = _vala_iterable_ref0 (_tmp25_);
					_type_arg_list = _tmp26_;
					_tmp27_ = _type_arg_list;
					_tmp28_ = vala_collection_get_size ((ValaCollection*) _tmp27_);
					_tmp29_ = _tmp28_;
					_type_arg_size = _tmp29_;
					_type_arg_index = -1;
					while (TRUE) {
						gint _tmp30_;
						gint _tmp31_;
						gint _tmp32_;
						ValaDataType* type_arg = NULL;
						ValaList* _tmp33_;
						gint _tmp34_;
						gpointer _tmp35_;
						ValaMemberAccess* _tmp36_;
						ValaDataType* _tmp37_;
						_tmp30_ = _type_arg_index;
						_type_arg_index = _tmp30_ + 1;
						_tmp31_ = _type_arg_index;
						_tmp32_ = _type_arg_size;
						if (!(_tmp31_ < _tmp32_)) {
							break;
						}
						_tmp33_ = _type_arg_list;
						_tmp34_ = _type_arg_index;
						_tmp35_ = vala_list_get (_tmp33_, _tmp34_);
						type_arg = (ValaDataType*) _tmp35_;
						_tmp36_ = expr;
						_tmp37_ = type_arg;
						vala_member_access_add_type_argument (_tmp36_, _tmp37_);
						_vala_code_node_unref0 (type_arg);
					}
					_vala_iterable_unref0 (_type_arg_list);
				}
			}
			first = FALSE;
			_vala_iterable_unref0 (type_arg_list);
			_g_free0 (id);
		}
	}
	result = expr;
	return result;
}


static gboolean vala_parser_is_declaration_keyword (ValaParser* self, ValaTokenType type) {
	gboolean result = FALSE;
	ValaTokenType _tmp0_;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = type;
	switch (_tmp0_) {
		case VALA_TOKEN_TYPE_ABSTRACT:
		case VALA_TOKEN_TYPE_ASYNC:
		case VALA_TOKEN_TYPE_CLASS:
		case VALA_TOKEN_TYPE_CONST:
		case VALA_TOKEN_TYPE_DELEGATE:
		case VALA_TOKEN_TYPE_ENUM:
		case VALA_TOKEN_TYPE_ERRORDOMAIN:
		case VALA_TOKEN_TYPE_EXTERN:
		case VALA_TOKEN_TYPE_INLINE:
		case VALA_TOKEN_TYPE_INTERFACE:
		case VALA_TOKEN_TYPE_INTERNAL:
		case VALA_TOKEN_TYPE_NAMESPACE:
		case VALA_TOKEN_TYPE_NEW:
		case VALA_TOKEN_TYPE_OVERRIDE:
		case VALA_TOKEN_TYPE_PRIVATE:
		case VALA_TOKEN_TYPE_PROTECTED:
		case VALA_TOKEN_TYPE_PUBLIC:
		case VALA_TOKEN_TYPE_SEALED:
		case VALA_TOKEN_TYPE_SIGNAL:
		case VALA_TOKEN_TYPE_STATIC:
		case VALA_TOKEN_TYPE_STRUCT:
		case VALA_TOKEN_TYPE_VIRTUAL:
		case VALA_TOKEN_TYPE_VOLATILE:
		{
			result = TRUE;
			return result;
		}
		default:
		{
			result = FALSE;
			return result;
		}
	}
}


static ValaParserTokenInfo* vala_parser_token_info_dup (const ValaParserTokenInfo* self) {
	ValaParserTokenInfo* dup;
	dup = g_new0 (ValaParserTokenInfo, 1);
	memcpy (dup, self, sizeof (ValaParserTokenInfo));
	return dup;
}


static void vala_parser_token_info_free (ValaParserTokenInfo* self) {
	g_free (self);
}


static GType vala_parser_token_info_get_type (void) {
	static volatile gsize vala_parser_token_info_type_id__volatile = 0;
	if (g_once_init_enter (&vala_parser_token_info_type_id__volatile)) {
		GType vala_parser_token_info_type_id;
		vala_parser_token_info_type_id = g_boxed_type_register_static ("ValaParserTokenInfo", (GBoxedCopyFunc) vala_parser_token_info_dup, (GBoxedFreeFunc) vala_parser_token_info_free);
		g_once_init_leave (&vala_parser_token_info_type_id__volatile, vala_parser_token_info_type_id);
	}
	return vala_parser_token_info_type_id__volatile;
}


static void vala_parser_class_init (ValaParserClass * klass) {
	vala_parser_parent_class = g_type_class_peek_parent (klass);
	((ValaCodeVisitorClass *) klass)->finalize = vala_parser_finalize;
	g_type_class_add_private (klass, sizeof (ValaParserPrivate));
	((ValaCodeVisitorClass *) klass)->visit_source_file = (void (*) (ValaCodeVisitor *, ValaSourceFile*)) vala_parser_real_visit_source_file;
}


static void vala_parser_instance_init (ValaParser * self) {
	self->priv = VALA_PARSER_GET_PRIVATE (self);
}


static void vala_parser_finalize (ValaCodeVisitor * obj) {
	ValaParser * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_PARSER, ValaParser);
	_vala_scanner_unref0 (self->priv->scanner);
	_vala_code_context_unref0 (self->priv->context);
	self->priv->tokens = (g_free (self->priv->tokens), NULL);
	_vala_comment_unref0 (self->priv->comment);
	VALA_CODE_VISITOR_CLASS (vala_parser_parent_class)->finalize (obj);
}


/**
 * Code visitor parsing all Vala source files.
 */
GType vala_parser_get_type (void) {
	static volatile gsize vala_parser_type_id__volatile = 0;
	if (g_once_init_enter (&vala_parser_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValaParserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_parser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaParser), 0, (GInstanceInitFunc) vala_parser_instance_init, NULL };
		GType vala_parser_type_id;
		vala_parser_type_id = g_type_register_static (VALA_TYPE_CODE_VISITOR, "ValaParser", &g_define_type_info, 0);
		g_once_init_leave (&vala_parser_type_id__volatile, vala_parser_type_id);
	}
	return vala_parser_type_id__volatile;
}


GQuark vala_parse_error_quark (void) {
	return g_quark_from_static_string ("vala_parse_error-quark");
}


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


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



