vala r2094 - in trunk: . gobject vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2094 - in trunk: . gobject vala
- Date: Sun, 30 Nov 2008 11:09:26 +0000 (UTC)
Author: juergbi
Date: Sun Nov 30 11:09:26 2008
New Revision: 2094
URL: http://svn.gnome.org/viewvc/vala?rev=2094&view=rev
Log:
2008-11-30 JÃrg Billeter <j bitron ch>
* vala/valabinaryexpression.vala:
* vala/valasymbolresolver.vala:
* gobject/valaccodebasemodule.vala:
Separate visiting operands from visiting binary expression
Modified:
trunk/ChangeLog
trunk/gobject/valaccodebasemodule.vala
trunk/vala/valabinaryexpression.vala
trunk/vala/valasymbolresolver.vala
Modified: trunk/gobject/valaccodebasemodule.vala
==============================================================================
--- trunk/gobject/valaccodebasemodule.vala (original)
+++ trunk/gobject/valaccodebasemodule.vala Sun Nov 30 11:09:26 2008
@@ -2743,6 +2743,8 @@
}
public override void visit_binary_expression (BinaryExpression expr) {
+ expr.accept_children (codegen);
+
var cleft = (CCodeExpression) expr.left.ccodenode;
var cright = (CCodeExpression) expr.right.ccodenode;
Modified: trunk/vala/valabinaryexpression.vala
==============================================================================
--- trunk/vala/valabinaryexpression.vala (original)
+++ trunk/vala/valabinaryexpression.vala Sun Nov 30 11:09:26 2008
@@ -77,16 +77,18 @@
right = _right;
source_reference = source;
}
-
- public override void accept (CodeVisitor visitor) {
- left.accept (visitor);
- right.accept (visitor);
+ public override void accept (CodeVisitor visitor) {
visitor.visit_binary_expression (this);
visitor.visit_expression (this);
}
+ public override void accept_children (CodeVisitor visitor) {
+ left.accept (visitor);
+ right.accept (visitor);
+ }
+
public override void replace_expression (Expression old_node, Expression new_node) {
if (left == old_node) {
left = new_node;
Modified: trunk/vala/valasymbolresolver.vala
==============================================================================
--- trunk/vala/valasymbolresolver.vala (original)
+++ trunk/vala/valasymbolresolver.vala Sun Nov 30 11:09:26 2008
@@ -410,6 +410,10 @@
expr.accept_children (this);
}
+ public override void visit_binary_expression (BinaryExpression expr) {
+ expr.accept_children (this);
+ }
+
public override void visit_lambda_expression (LambdaExpression l) {
l.accept_children (this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]