vala r2095 - in trunk: . gobject vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2095 - in trunk: . gobject vala
- Date: Sun, 30 Nov 2008 11:14:27 +0000 (UTC)
Author: juergbi
Date: Sun Nov 30 11:14:27 2008
New Revision: 2095
URL: http://svn.gnome.org/viewvc/vala?rev=2095&view=rev
Log:
2008-11-30 JÃrg Billeter <j bitron ch>
* vala/valaexpressionstatement.vala:
* vala/valanullchecker.vala:
* vala/valasymbolresolver.vala:
* gobject/valaccodebasemodule.vala:
Separate visiting expressions from visiting expression statements
Modified:
trunk/ChangeLog
trunk/gobject/valaccodebasemodule.vala
trunk/vala/valaexpressionstatement.vala
trunk/vala/valanullchecker.vala
trunk/vala/valasymbolresolver.vala
Modified: trunk/gobject/valaccodebasemodule.vala
==============================================================================
--- trunk/gobject/valaccodebasemodule.vala (original)
+++ trunk/gobject/valaccodebasemodule.vala Sun Nov 30 11:14:27 2008
@@ -1806,6 +1806,8 @@
}
public override void visit_expression_statement (ExpressionStatement stmt) {
+ stmt.accept_children (codegen);
+
if (stmt.expression.error) {
stmt.error = true;
return;
Modified: trunk/vala/valaexpressionstatement.vala
==============================================================================
--- trunk/vala/valaexpressionstatement.vala (original)
+++ trunk/vala/valaexpressionstatement.vala Sun Nov 30 11:14:27 2008
@@ -53,13 +53,15 @@
this.source_reference = source_reference;
this.expression = expression;
}
-
- public override void accept (CodeVisitor visitor) {
- expression.accept (visitor);
+ public override void accept (CodeVisitor visitor) {
visitor.visit_expression_statement (this);
}
+ public override void accept_children (CodeVisitor visitor) {
+ expression.accept (visitor);
+ }
+
public override void replace_expression (Expression old_node, Expression new_node) {
if (expression == old_node) {
expression = new_node;
Modified: trunk/vala/valanullchecker.vala
==============================================================================
--- trunk/vala/valanullchecker.vala (original)
+++ trunk/vala/valanullchecker.vala Sun Nov 30 11:14:27 2008
@@ -134,6 +134,10 @@
}
}
+ public override void visit_expression_statement (ExpressionStatement stmt) {
+ stmt.accept_children (this);
+ }
+
public override void visit_if_statement (IfStatement stmt) {
stmt.accept_children (this);
Modified: trunk/vala/valasymbolresolver.vala
==============================================================================
--- trunk/vala/valasymbolresolver.vala (original)
+++ trunk/vala/valasymbolresolver.vala Sun Nov 30 11:14:27 2008
@@ -338,6 +338,10 @@
list.accept_children (this);
}
+ public override void visit_expression_statement (ExpressionStatement stmt) {
+ stmt.accept_children (this);
+ }
+
public override void visit_if_statement (IfStatement stmt) {
stmt.accept_children (this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]