[vala] Fix detection of unhandled errors in blocks



commit 7cae35d3a6b91e370423e021ae6de632c015d13a
Author: Jürg Billeter <j bitron ch>
Date:   Wed Sep 30 19:24:06 2009 +0200

    Fix detection of unhandled errors in blocks

 vala/valablock.vala |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/vala/valablock.vala b/vala/valablock.vala
index e9dfe2d..c473aca 100644
--- a/vala/valablock.vala
+++ b/vala/valablock.vala
@@ -1,6 +1,6 @@
 /* valablock.vala
  *
- * Copyright (C) 2006-2008  Jürg Billeter
+ * Copyright (C) 2006-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
@@ -144,7 +144,8 @@ public class Vala.Block : Symbol, Statement {
 			local.active = false;
 		}
 
-		foreach (Statement stmt in statement_list) {
+		// use get_statements () instead of statement_list to not miss errors within StatementList objects
+		foreach (Statement stmt in get_statements ()) {
 			add_error_types (stmt.get_error_types ());
 		}
 



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