vala r2070 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2070 - in trunk: . vala
- Date: Fri, 28 Nov 2008 16:03:25 +0000 (UTC)
Author: juergbi
Date: Fri Nov 28 16:03:25 2008
New Revision: 2070
URL: http://svn.gnome.org/viewvc/vala?rev=2070&view=rev
Log:
2008-11-28 JÃrg Billeter <j bitron ch>
* vala/valaflowanalyzer.vala:
Analyze errors in return expressions
Modified:
trunk/ChangeLog
trunk/vala/valaflowanalyzer.vala
Modified: trunk/vala/valaflowanalyzer.vala
==============================================================================
--- trunk/vala/valaflowanalyzer.vala (original)
+++ trunk/vala/valaflowanalyzer.vala Fri Nov 28 16:03:25 2008
@@ -858,6 +858,10 @@
current_block.add_node (stmt);
+ if (stmt.return_expression != null) {
+ handle_errors (stmt.return_expression);
+ }
+
for (int i = jump_stack.size - 1; i >= 0; i--) {
var jump_target = jump_stack[i];
if (jump_target.is_return_target) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]