vala r2328 - in trunk: . vala



Author: juergbi
Date: Sat Jan 10 21:03:35 2009
New Revision: 2328
URL: http://svn.gnome.org/viewvc/vala?rev=2328&view=rev

Log:
2009-01-10  JÃrg Billeter  <j bitron ch>

	* vala/valacodenode.vala:
	* vala/valaparser.vala:
	* vala/valapointertype.vala:

	Fix pointer properties


Modified:
   trunk/ChangeLog
   trunk/vala/valacodenode.vala
   trunk/vala/valaparser.vala
   trunk/vala/valapointertype.vala

Modified: trunk/vala/valacodenode.vala
==============================================================================
--- trunk/vala/valacodenode.vala	(original)
+++ trunk/vala/valacodenode.vala	Sat Jan 10 21:03:35 2009
@@ -137,7 +137,7 @@
 	}
 
 	public virtual bool check (SemanticAnalyzer analyzer) {
-		return false;
+		return true;
 	}
 
 	public virtual void replace_type (DataType old_type, DataType new_type) {

Modified: trunk/vala/valaparser.vala
==============================================================================
--- trunk/vala/valaparser.vala	(original)
+++ trunk/vala/valaparser.vala	Sat Jan 10 21:03:35 2009
@@ -2198,8 +2198,10 @@
 		var type = parse_type ();
 
 		bool getter_owned = false;
-		if (accept (TokenType.HASH) && !context.deprecated) {
-			Report.warning (get_last_src (), "deprecated syntax, use `owned` modifier before `get'");
+		if (accept (TokenType.HASH)) {
+			if (!context.deprecated) {
+				Report.warning (get_last_src (), "deprecated syntax, use `owned` modifier before `get'");
+			}
 			getter_owned = true;
 		}
 

Modified: trunk/vala/valapointertype.vala
==============================================================================
--- trunk/vala/valapointertype.vala	(original)
+++ trunk/vala/valapointertype.vala	Sat Jan 10 21:03:35 2009
@@ -1,6 +1,6 @@
 /* valapointertype.vala
  *
- * Copyright (C) 2007-2008  JÃrg Billeter
+ * 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
@@ -111,4 +111,9 @@
 	public override bool is_disposable () {
 		return false;
 	}
+
+	public override bool check (SemanticAnalyzer analyzer) {
+		error = !base_type.check (analyzer);
+		return !error;
+	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]