summaryrefslogtreecommitdiff
path: root/vala/valatypeparameter.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-03-14 02:11:02 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-03-14 02:11:02 +0000
commit846d616500c8f53a4ea0d4e065e42b391b332265 (patch)
treefb32f780e679e39248b59be591179e432dc6403d /vala/valatypeparameter.vala
parent543cf1410020251f976bd4fa9a40f084b7f14e27 (diff)
downloadvala-846d616500c8f53a4ea0d4e065e42b391b332265.tar.gz
remove Array class, arrays are not type symbols
2008-03-14 Juerg Billeter <j@bitron.ch> * vala/Makefile.am, vala/valaarraytype.vala, vala/valadatatype.vala, vala/valamember.vala, vala/valasemanticanalyzer.vala, vala/valasymbolresolver.vala, vala/valatypeparameter.vala, vala/valatypesymbol.vala, gobject/valaccodegenerator.vala, gobject/valaccodegeneratorinvocationexpression.vala, gobject/valaccodegeneratormethod.vala: remove Array class, arrays are not type symbols svn path=/trunk/; revision=1124
Diffstat (limited to 'vala/valatypeparameter.vala')
-rw-r--r--vala/valatypeparameter.vala41
1 files changed, 1 insertions, 40 deletions
diff --git a/vala/valatypeparameter.vala b/vala/valatypeparameter.vala
index 3f51c47bc..c9d04ab1c 100644
--- a/vala/valatypeparameter.vala
+++ b/vala/valatypeparameter.vala
@@ -1,6 +1,6 @@
/* valatypeparameter.vala
*
- * Copyright (C) 2006-2007 Jürg Billeter
+ * Copyright (C) 2006-2008 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
@@ -50,45 +50,6 @@ public class Vala.TypeParameter : Symbol {
public override void accept (CodeVisitor! visitor) {
visitor.visit_type_parameter (this);
}
-
- /**
- * Returns the array type for elements of this type parameter.
- *
- * @param rank the rank the array should be of
- * @return array type for this type parameter
- */
- public Array! get_array (int rank) {
- Array array_type = null;
-
- if (array_types != null) {
- array_type = array_types[rank];
- }
-
- if (array_type == null) {
- if (array_types == null) {
- array_types = new HashMap<int,Array> ();
- }
-
- var new_array_type = new Array.with_type_parameter (this, rank, source_reference);
- parent_symbol.scope.add (new_array_type.name, new_array_type);
-
- /* add internal length field */
- new_array_type.scope.add (new_array_type.get_length_field ().name, new_array_type.get_length_field ());
- /* add internal resize method */
- new_array_type.scope.add (new_array_type.get_resize_method ().name, new_array_type.get_resize_method ());
- /* add internal move method */
- new_array_type.scope.add (new_array_type.get_move_method ().name, new_array_type.get_move_method ());
-
- /* link the array type to the same source as the container type */
- new_array_type.source_reference = this.source_reference;
-
- array_types[rank] = new_array_type;
-
- array_type = new_array_type;
- }
-
- return array_type;
- }
/**
* Checks two type parameters for equality.