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

/* valapointertype.vala
 *
 * Copyright (C) 2007-2009  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 <stdlib.h>
#include <string.h>
#include <valagee.h>

#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
#define _vala_code_context_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_context_unref (var), NULL)))

struct _ValaPointerTypePrivate {
	ValaDataType* _base_type;
};


static gpointer vala_pointer_type_parent_class = NULL;

#define VALA_POINTER_TYPE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), VALA_TYPE_POINTER_TYPE, ValaPointerTypePrivate))
static gchar* vala_pointer_type_real_to_qualified_string (ValaDataType* base, ValaScope* scope);
static ValaDataType* vala_pointer_type_real_copy (ValaDataType* base);
static gboolean vala_pointer_type_real_compatible (ValaDataType* base, ValaDataType* target_type);
static ValaSymbol* vala_pointer_type_real_get_member (ValaDataType* base, const gchar* member_name);
static ValaSymbol* vala_pointer_type_real_get_pointer_member (ValaDataType* base, const gchar* member_name);
static gboolean vala_pointer_type_real_is_accessible (ValaDataType* base, ValaSymbol* sym);
static void vala_pointer_type_real_accept_children (ValaCodeNode* base, ValaCodeVisitor* visitor);
static void vala_pointer_type_real_replace_type (ValaCodeNode* base, ValaDataType* old_type, ValaDataType* new_type);
static gboolean vala_pointer_type_real_is_disposable (ValaDataType* base);
static ValaDataType* vala_pointer_type_real_get_actual_type (ValaDataType* base, ValaDataType* derived_instance_type, ValaList* method_type_arguments, ValaCodeNode* node_reference);
static ValaDataType* vala_pointer_type_real_infer_type_argument (ValaDataType* base, ValaTypeParameter* type_param, ValaDataType* value_type);
static gboolean vala_pointer_type_real_check (ValaCodeNode* base, ValaCodeContext* context);
static void vala_pointer_type_finalize (ValaCodeNode * obj);


ValaPointerType* vala_pointer_type_construct (GType object_type, ValaDataType* base_type, ValaSourceReference* source_reference) {
	ValaPointerType* self = NULL;
	ValaDataType* _tmp0_;
	ValaSourceReference* _tmp1_;
	g_return_val_if_fail (base_type != NULL, NULL);
	self = (ValaPointerType*) vala_data_type_construct (object_type);
	_tmp0_ = base_type;
	vala_pointer_type_set_base_type (self, _tmp0_);
	vala_data_type_set_nullable ((ValaDataType*) self, TRUE);
	_tmp1_ = source_reference;
	vala_code_node_set_source_reference ((ValaCodeNode*) self, _tmp1_);
	return self;
}


ValaPointerType* vala_pointer_type_new (ValaDataType* base_type, ValaSourceReference* source_reference) {
	return vala_pointer_type_construct (VALA_TYPE_POINTER_TYPE, base_type, source_reference);
}


static gchar* vala_pointer_type_real_to_qualified_string (ValaDataType* base, ValaScope* scope) {
	ValaPointerType * self;
	gchar* result = NULL;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	ValaScope* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	self = (ValaPointerType*) base;
	_tmp0_ = vala_pointer_type_get_base_type (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = scope;
	_tmp3_ = vala_data_type_to_qualified_string (_tmp1_, _tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = g_strconcat (_tmp4_, "*", NULL);
	_tmp6_ = _tmp5_;
	_g_free0 (_tmp4_);
	result = _tmp6_;
	return result;
}


static ValaDataType* vala_pointer_type_real_copy (ValaDataType* base) {
	ValaPointerType * self;
	ValaDataType* result = NULL;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	ValaDataType* _tmp2_;
	ValaDataType* _tmp3_;
	ValaPointerType* _tmp4_;
	ValaDataType* _tmp5_;
	self = (ValaPointerType*) base;
	_tmp0_ = vala_pointer_type_get_base_type (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = vala_data_type_copy (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_pointer_type_new (_tmp3_, NULL);
	_tmp5_ = (ValaDataType*) _tmp4_;
	_vala_code_node_unref0 (_tmp3_);
	result = _tmp5_;
	return result;
}


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


static gboolean vala_pointer_type_real_compatible (ValaDataType* base, ValaDataType* target_type) {
	ValaPointerType * self;
	gboolean result = FALSE;
	ValaDataType* _tmp0_;
	gboolean _tmp22_ = FALSE;
	ValaDataType* _tmp23_;
	ValaTypeSymbol* _tmp24_;
	ValaTypeSymbol* _tmp25_;
	ValaDataType* _tmp31_;
	ValaTypeParameter* _tmp32_;
	ValaTypeParameter* _tmp33_;
	ValaDataType* _tmp34_;
	ValaDataType* _tmp35_;
	gboolean _tmp36_;
	gboolean _tmp41_ = FALSE;
	ValaDataType* _tmp42_;
	ValaTypeSymbol* _tmp43_;
	ValaTypeSymbol* _tmp44_;
	self = (ValaPointerType*) base;
	g_return_val_if_fail (target_type != NULL, FALSE);
	_tmp0_ = target_type;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_POINTER_TYPE)) {
		ValaPointerType* tt = NULL;
		ValaDataType* _tmp1_;
		ValaPointerType* _tmp2_;
		gboolean _tmp3_ = FALSE;
		ValaPointerType* _tmp4_;
		ValaDataType* _tmp5_;
		ValaDataType* _tmp6_;
		ValaDataType* _tmp9_;
		ValaDataType* _tmp10_;
		gboolean _tmp11_;
		ValaPointerType* _tmp12_;
		ValaDataType* _tmp13_;
		ValaDataType* _tmp14_;
		gboolean _tmp15_;
		ValaDataType* _tmp16_;
		ValaDataType* _tmp17_;
		ValaPointerType* _tmp18_;
		ValaDataType* _tmp19_;
		ValaDataType* _tmp20_;
		gboolean _tmp21_;
		_tmp1_ = target_type;
		_tmp2_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, VALA_TYPE_POINTER_TYPE) ? ((ValaPointerType*) _tmp1_) : NULL);
		tt = _tmp2_;
		_tmp4_ = tt;
		_tmp5_ = vala_pointer_type_get_base_type (_tmp4_);
		_tmp6_ = _tmp5_;
		if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, VALA_TYPE_VOID_TYPE)) {
			_tmp3_ = TRUE;
		} else {
			ValaDataType* _tmp7_;
			ValaDataType* _tmp8_;
			_tmp7_ = vala_pointer_type_get_base_type (self);
			_tmp8_ = _tmp7_;
			_tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp8_, VALA_TYPE_VOID_TYPE);
		}
		if (_tmp3_) {
			result = TRUE;
			_vala_code_node_unref0 (tt);
			return result;
		}
		_tmp9_ = vala_pointer_type_get_base_type (self);
		_tmp10_ = _tmp9_;
		_tmp11_ = vala_data_type_is_reference_type_or_type_parameter (_tmp10_);
		_tmp12_ = tt;
		_tmp13_ = vala_pointer_type_get_base_type (_tmp12_);
		_tmp14_ = _tmp13_;
		_tmp15_ = vala_data_type_is_reference_type_or_type_parameter (_tmp14_);
		if (_tmp11_ != _tmp15_) {
			result = FALSE;
			_vala_code_node_unref0 (tt);
			return result;
		}
		_tmp16_ = vala_pointer_type_get_base_type (self);
		_tmp17_ = _tmp16_;
		_tmp18_ = tt;
		_tmp19_ = vala_pointer_type_get_base_type (_tmp18_);
		_tmp20_ = _tmp19_;
		_tmp21_ = vala_data_type_compatible (_tmp17_, _tmp20_);
		result = _tmp21_;
		_vala_code_node_unref0 (tt);
		return result;
	}
	_tmp23_ = target_type;
	_tmp24_ = vala_data_type_get_data_type (_tmp23_);
	_tmp25_ = _tmp24_;
	if (_tmp25_ != NULL) {
		ValaDataType* _tmp26_;
		ValaTypeSymbol* _tmp27_;
		ValaTypeSymbol* _tmp28_;
		ValaAttribute* _tmp29_;
		ValaAttribute* _tmp30_;
		_tmp26_ = target_type;
		_tmp27_ = vala_data_type_get_data_type (_tmp26_);
		_tmp28_ = _tmp27_;
		_tmp29_ = vala_code_node_get_attribute ((ValaCodeNode*) _tmp28_, "PointerType");
		_tmp30_ = _tmp29_;
		_tmp22_ = _tmp30_ != NULL;
		_vala_code_node_unref0 (_tmp30_);
	} else {
		_tmp22_ = FALSE;
	}
	if (_tmp22_) {
		result = TRUE;
		return result;
	}
	_tmp31_ = target_type;
	_tmp32_ = vala_data_type_get_type_parameter (_tmp31_);
	_tmp33_ = _tmp32_;
	if (_tmp33_ != NULL) {
		result = TRUE;
		return result;
	}
	_tmp34_ = vala_pointer_type_get_base_type (self);
	_tmp35_ = _tmp34_;
	_tmp36_ = vala_data_type_is_reference_type_or_type_parameter (_tmp35_);
	if (_tmp36_) {
		ValaDataType* _tmp37_;
		ValaDataType* _tmp38_;
		ValaDataType* _tmp39_;
		gboolean _tmp40_;
		_tmp37_ = vala_pointer_type_get_base_type (self);
		_tmp38_ = _tmp37_;
		_tmp39_ = target_type;
		_tmp40_ = vala_data_type_compatible (_tmp38_, _tmp39_);
		result = _tmp40_;
		return result;
	}
	_tmp42_ = target_type;
	_tmp43_ = vala_data_type_get_data_type (_tmp42_);
	_tmp44_ = _tmp43_;
	if (_tmp44_ != NULL) {
		ValaDataType* _tmp45_;
		ValaTypeSymbol* _tmp46_;
		ValaTypeSymbol* _tmp47_;
		ValaCodeContext* _tmp48_;
		ValaCodeContext* _tmp49_;
		ValaSemanticAnalyzer* _tmp50_;
		ValaSemanticAnalyzer* _tmp51_;
		ValaStructValueType* _tmp52_;
		ValaTypeSymbol* _tmp53_;
		ValaTypeSymbol* _tmp54_;
		gboolean _tmp55_;
		_tmp45_ = target_type;
		_tmp46_ = vala_data_type_get_data_type (_tmp45_);
		_tmp47_ = _tmp46_;
		_tmp48_ = vala_code_context_get ();
		_tmp49_ = _tmp48_;
		_tmp50_ = vala_code_context_get_analyzer (_tmp49_);
		_tmp51_ = _tmp50_;
		_tmp52_ = _tmp51_->gvalue_type;
		_tmp53_ = vala_data_type_get_data_type ((ValaDataType*) _tmp52_);
		_tmp54_ = _tmp53_;
		_tmp55_ = vala_typesymbol_is_subtype_of (_tmp47_, _tmp54_);
		_tmp41_ = _tmp55_;
		_vala_code_context_unref0 (_tmp49_);
	} else {
		_tmp41_ = FALSE;
	}
	if (_tmp41_) {
		result = TRUE;
		return result;
	}
	result = FALSE;
	return result;
}


static ValaSymbol* vala_pointer_type_real_get_member (ValaDataType* base, const gchar* member_name) {
	ValaPointerType * self;
	ValaSymbol* result = NULL;
	self = (ValaPointerType*) base;
	g_return_val_if_fail (member_name != NULL, NULL);
	result = NULL;
	return result;
}


static ValaSymbol* vala_pointer_type_real_get_pointer_member (ValaDataType* base, const gchar* member_name) {
	ValaPointerType * self;
	ValaSymbol* result = NULL;
	ValaSymbol* base_symbol = NULL;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	ValaTypeSymbol* _tmp2_;
	ValaTypeSymbol* _tmp3_;
	ValaSymbol* _tmp4_;
	ValaSymbol* _tmp5_;
	ValaSymbol* _tmp6_;
	const gchar* _tmp7_;
	ValaSymbol* _tmp8_;
	self = (ValaPointerType*) base;
	g_return_val_if_fail (member_name != NULL, NULL);
	_tmp0_ = vala_pointer_type_get_base_type (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = vala_data_type_get_data_type (_tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = _vala_code_node_ref0 ((ValaSymbol*) _tmp3_);
	base_symbol = _tmp4_;
	_tmp5_ = base_symbol;
	if (_tmp5_ == NULL) {
		result = NULL;
		_vala_code_node_unref0 (base_symbol);
		return result;
	}
	_tmp6_ = base_symbol;
	_tmp7_ = member_name;
	_tmp8_ = vala_semantic_analyzer_symbol_lookup_inherited (_tmp6_, _tmp7_);
	result = _tmp8_;
	_vala_code_node_unref0 (base_symbol);
	return result;
}


static gboolean vala_pointer_type_real_is_accessible (ValaDataType* base, ValaSymbol* sym) {
	ValaPointerType * self;
	gboolean result = FALSE;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	ValaSymbol* _tmp2_;
	gboolean _tmp3_;
	self = (ValaPointerType*) base;
	g_return_val_if_fail (sym != NULL, FALSE);
	_tmp0_ = vala_pointer_type_get_base_type (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = sym;
	_tmp3_ = vala_data_type_is_accessible (_tmp1_, _tmp2_);
	result = _tmp3_;
	return result;
}


static void vala_pointer_type_real_accept_children (ValaCodeNode* base, ValaCodeVisitor* visitor) {
	ValaPointerType * self;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	ValaCodeVisitor* _tmp2_;
	self = (ValaPointerType*) base;
	g_return_if_fail (visitor != NULL);
	_tmp0_ = vala_pointer_type_get_base_type (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = visitor;
	vala_code_node_accept ((ValaCodeNode*) _tmp1_, _tmp2_);
}


static void vala_pointer_type_real_replace_type (ValaCodeNode* base, ValaDataType* old_type, ValaDataType* new_type) {
	ValaPointerType * self;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	ValaDataType* _tmp2_;
	self = (ValaPointerType*) base;
	g_return_if_fail (old_type != NULL);
	g_return_if_fail (new_type != NULL);
	_tmp0_ = vala_pointer_type_get_base_type (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = old_type;
	if (_tmp1_ == _tmp2_) {
		ValaDataType* _tmp3_;
		_tmp3_ = new_type;
		vala_pointer_type_set_base_type (self, _tmp3_);
	}
}


static gboolean vala_pointer_type_real_is_disposable (ValaDataType* base) {
	ValaPointerType * self;
	gboolean result = FALSE;
	self = (ValaPointerType*) base;
	result = FALSE;
	return result;
}


static ValaDataType* vala_pointer_type_real_get_actual_type (ValaDataType* base, ValaDataType* derived_instance_type, ValaList* method_type_arguments, ValaCodeNode* node_reference) {
	ValaPointerType * self;
	ValaDataType* result = NULL;
	ValaPointerType* _result_ = NULL;
	ValaDataType* _tmp0_;
	gboolean _tmp1_ = FALSE;
	ValaDataType* _tmp2_;
	gboolean _tmp4_ = FALSE;
	ValaDataType* _tmp5_;
	ValaDataType* _tmp6_;
	self = (ValaPointerType*) base;
	g_return_val_if_fail (node_reference != NULL, NULL);
	_tmp0_ = vala_data_type_copy ((ValaDataType*) self);
	_result_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALA_TYPE_POINTER_TYPE, ValaPointerType);
	_tmp2_ = derived_instance_type;
	if (_tmp2_ == NULL) {
		ValaList* _tmp3_;
		_tmp3_ = method_type_arguments;
		_tmp1_ = _tmp3_ == NULL;
	} else {
		_tmp1_ = FALSE;
	}
	if (_tmp1_) {
		result = (ValaDataType*) _result_;
		return result;
	}
	_tmp5_ = vala_pointer_type_get_base_type (self);
	_tmp6_ = _tmp5_;
	if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp6_, VALA_TYPE_GENERIC_TYPE)) {
		_tmp4_ = TRUE;
	} else {
		ValaDataType* _tmp7_;
		ValaDataType* _tmp8_;
		gboolean _tmp9_;
		_tmp7_ = vala_pointer_type_get_base_type (self);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_data_type_has_type_arguments (_tmp8_);
		_tmp4_ = _tmp9_;
	}
	if (_tmp4_) {
		ValaPointerType* _tmp10_;
		ValaPointerType* _tmp11_;
		ValaDataType* _tmp12_;
		ValaDataType* _tmp13_;
		ValaDataType* _tmp14_;
		ValaList* _tmp15_;
		ValaCodeNode* _tmp16_;
		ValaDataType* _tmp17_;
		ValaDataType* _tmp18_;
		_tmp10_ = _result_;
		_tmp11_ = _result_;
		_tmp12_ = vala_pointer_type_get_base_type (_tmp11_);
		_tmp13_ = _tmp12_;
		_tmp14_ = derived_instance_type;
		_tmp15_ = method_type_arguments;
		_tmp16_ = node_reference;
		_tmp17_ = vala_data_type_get_actual_type (_tmp13_, _tmp14_, _tmp15_, _tmp16_);
		_tmp18_ = _tmp17_;
		vala_pointer_type_set_base_type (_tmp10_, _tmp18_);
		_vala_code_node_unref0 (_tmp18_);
	}
	result = (ValaDataType*) _result_;
	return result;
}


static ValaDataType* vala_pointer_type_real_infer_type_argument (ValaDataType* base, ValaTypeParameter* type_param, ValaDataType* value_type) {
	ValaPointerType * self;
	ValaDataType* result = NULL;
	ValaPointerType* pointer_type = NULL;
	ValaDataType* _tmp0_;
	ValaPointerType* _tmp1_;
	ValaPointerType* _tmp2_;
	self = (ValaPointerType*) base;
	g_return_val_if_fail (type_param != NULL, NULL);
	g_return_val_if_fail (value_type != NULL, NULL);
	_tmp0_ = value_type;
	_tmp1_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, VALA_TYPE_POINTER_TYPE) ? ((ValaPointerType*) _tmp0_) : NULL);
	pointer_type = _tmp1_;
	_tmp2_ = pointer_type;
	if (_tmp2_ != NULL) {
		ValaDataType* _tmp3_;
		ValaDataType* _tmp4_;
		ValaTypeParameter* _tmp5_;
		ValaPointerType* _tmp6_;
		ValaDataType* _tmp7_;
		ValaDataType* _tmp8_;
		ValaDataType* _tmp9_;
		_tmp3_ = vala_pointer_type_get_base_type (self);
		_tmp4_ = _tmp3_;
		_tmp5_ = type_param;
		_tmp6_ = pointer_type;
		_tmp7_ = vala_pointer_type_get_base_type (_tmp6_);
		_tmp8_ = _tmp7_;
		_tmp9_ = vala_data_type_infer_type_argument (_tmp4_, _tmp5_, _tmp8_);
		result = _tmp9_;
		_vala_code_node_unref0 (pointer_type);
		return result;
	}
	result = NULL;
	_vala_code_node_unref0 (pointer_type);
	return result;
}


static gboolean vala_pointer_type_real_check (ValaCodeNode* base, ValaCodeContext* context) {
	ValaPointerType * self;
	gboolean result = FALSE;
	ValaDataType* _tmp0_;
	ValaDataType* _tmp1_;
	ValaCodeContext* _tmp2_;
	gboolean _tmp3_;
	gboolean _tmp4_;
	gboolean _tmp5_;
	self = (ValaPointerType*) base;
	g_return_val_if_fail (context != NULL, FALSE);
	_tmp0_ = vala_pointer_type_get_base_type (self);
	_tmp1_ = _tmp0_;
	_tmp2_ = context;
	_tmp3_ = vala_code_node_check ((ValaCodeNode*) _tmp1_, _tmp2_);
	vala_code_node_set_error ((ValaCodeNode*) self, !_tmp3_);
	_tmp4_ = vala_code_node_get_error ((ValaCodeNode*) self);
	_tmp5_ = _tmp4_;
	result = !_tmp5_;
	return result;
}


ValaDataType* vala_pointer_type_get_base_type (ValaPointerType* self) {
	ValaDataType* result;
	ValaDataType* _tmp0_;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_base_type;
	result = _tmp0_;
	return result;
}


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


static void vala_pointer_type_class_init (ValaPointerTypeClass * klass) {
	vala_pointer_type_parent_class = g_type_class_peek_parent (klass);
	((ValaCodeNodeClass *) klass)->finalize = vala_pointer_type_finalize;
	g_type_class_add_private (klass, sizeof (ValaPointerTypePrivate));
	((ValaDataTypeClass *) klass)->to_qualified_string = (gchar* (*) (ValaDataType *, ValaScope*)) vala_pointer_type_real_to_qualified_string;
	((ValaDataTypeClass *) klass)->copy = (ValaDataType* (*) (ValaDataType *)) vala_pointer_type_real_copy;
	((ValaDataTypeClass *) klass)->compatible = (gboolean (*) (ValaDataType *, ValaDataType*)) vala_pointer_type_real_compatible;
	((ValaDataTypeClass *) klass)->get_member = (ValaSymbol* (*) (ValaDataType *, const gchar*)) vala_pointer_type_real_get_member;
	((ValaDataTypeClass *) klass)->get_pointer_member = (ValaSymbol* (*) (ValaDataType *, const gchar*)) vala_pointer_type_real_get_pointer_member;
	((ValaDataTypeClass *) klass)->is_accessible = (gboolean (*) (ValaDataType *, ValaSymbol*)) vala_pointer_type_real_is_accessible;
	((ValaCodeNodeClass *) klass)->accept_children = (void (*) (ValaCodeNode *, ValaCodeVisitor*)) vala_pointer_type_real_accept_children;
	((ValaCodeNodeClass *) klass)->replace_type = (void (*) (ValaCodeNode *, ValaDataType*, ValaDataType*)) vala_pointer_type_real_replace_type;
	((ValaDataTypeClass *) klass)->is_disposable = (gboolean (*) (ValaDataType *)) vala_pointer_type_real_is_disposable;
	((ValaDataTypeClass *) klass)->get_actual_type = (ValaDataType* (*) (ValaDataType *, ValaDataType*, ValaList*, ValaCodeNode*)) vala_pointer_type_real_get_actual_type;
	((ValaDataTypeClass *) klass)->infer_type_argument = (ValaDataType* (*) (ValaDataType *, ValaTypeParameter*, ValaDataType*)) vala_pointer_type_real_infer_type_argument;
	((ValaCodeNodeClass *) klass)->check = (gboolean (*) (ValaCodeNode *, ValaCodeContext*)) vala_pointer_type_real_check;
}


static void vala_pointer_type_instance_init (ValaPointerType * self) {
	self->priv = VALA_POINTER_TYPE_GET_PRIVATE (self);
}


static void vala_pointer_type_finalize (ValaCodeNode * obj) {
	ValaPointerType * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_POINTER_TYPE, ValaPointerType);
	_vala_code_node_unref0 (self->priv->_base_type);
	VALA_CODE_NODE_CLASS (vala_pointer_type_parent_class)->finalize (obj);
}


/**
 * A pointer type.
 */
GType vala_pointer_type_get_type (void) {
	static volatile gsize vala_pointer_type_type_id__volatile = 0;
	if (g_once_init_enter (&vala_pointer_type_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValaPointerTypeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_pointer_type_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaPointerType), 0, (GInstanceInitFunc) vala_pointer_type_instance_init, NULL };
		GType vala_pointer_type_type_id;
		vala_pointer_type_type_id = g_type_register_static (VALA_TYPE_DATA_TYPE, "ValaPointerType", &g_define_type_info, 0);
		g_once_init_leave (&vala_pointer_type_type_id__volatile, vala_pointer_type_type_id);
	}
	return vala_pointer_type_type_id__volatile;
}



