/* valaswitchsection.vala
*
- * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2010 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
local.active = false;
}
+ // 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 ());
+ }
+
analyzer.current_symbol = old_symbol;
analyzer.insert_block = old_insert_block;
/* valaswitchstatement.vala
*
- * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2010 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
foreach (SwitchSection section in sections) {
section.check (analyzer);
+
+ add_error_types (section.get_error_types ());
}
return !error;