summaryrefslogtreecommitdiff
path: root/vala/valaarraycreationexpression.vala
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2007-12-02 22:21:56 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-12-02 22:21:56 +0000
commitc73cd35812dfb0fc0075f036290436fbd28fd1d5 (patch)
treecdaa20c5259e2abd0a5cc5623bd00140c76d2620 /vala/valaarraycreationexpression.vala
parent1376567aa297b3ed9479e2c87c641f0b0eed2276 (diff)
downloadvala-c73cd35812dfb0fc0075f036290436fbd28fd1d5.tar.gz
move unresolved type information from DataType into new UnresolvedType
2007-12-02 Juerg Billeter <j@bitron.ch> * vala/Makefile.am, vala/parser.y, vala/vala.h, vala/valaarraycreationexpression.vala, vala/valacallback.vala, vala/valacastexpression.vala, vala/valacatchclause.vala, vala/valaclass.vala, vala/valacodenode.vala, vala/valacodevisitor.vala, vala/valaconstant.vala, vala/valadatatype.vala, vala/valafield.vala, vala/valaforeachstatement.vala, vala/valaformalparameter.vala, vala/valainterface.vala, vala/valainterfacewriter.vala, vala/valalocalvariabledeclaration.vala, vala/valamemberaccess.vala, vala/valamemorymanager.vala, vala/valamethod.vala, vala/valaobjectcreationexpression.vala, vala/valaproperty.vala, vala/valasignal.vala, vala/valastruct.vala, vala/valasymbolresolver.vala, vala/valatypecheck.vala, vala/valaunresolvedtype.vala, vala/valavariabledeclarator.vala, gobject/valaccodegenerator.vala, vapigen/valagidlparser.vala: move unresolved type information from DataType into new UnresolvedType class, replace UnresolvedType instance by resolved DataType in SymbolResolver svn path=/trunk/; revision=749
Diffstat (limited to 'vala/valaarraycreationexpression.vala')
-rw-r--r--vala/valaarraycreationexpression.vala18
1 files changed, 16 insertions, 2 deletions
diff --git a/vala/valaarraycreationexpression.vala b/vala/valaarraycreationexpression.vala
index 6cfd2aaf2..0ac0d969b 100644
--- a/vala/valaarraycreationexpression.vala
+++ b/vala/valaarraycreationexpression.vala
@@ -31,7 +31,13 @@ public class Vala.ArrayCreationExpression : Expression {
/**
* The type of the elements of the array.
*/
- public DataType element_type { get; set construct; }
+ public DataType element_type {
+ get { return _element_type; }
+ set {
+ _element_type = value;
+ _element_type.parent_node = this;
+ }
+ }
/**
* The rank of the array.
@@ -47,7 +53,9 @@ public class Vala.ArrayCreationExpression : Expression {
* The root array initializer list.
*/
public InitializerList initializer_list { get; set construct; }
-
+
+ private DataType _element_type;
+
/**
* Add a size expression.
*/
@@ -86,4 +94,10 @@ public class Vala.ArrayCreationExpression : Expression {
public override bool is_pure () {
return false;
}
+
+ public override void replace_type (DataType! old_type, DataType! new_type) {
+ if (element_type == old_type) {
+ element_type = new_type;
+ }
+ }
}