fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 26 Nov 2010 11:19:56 +0000 (11:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 26 Nov 2010 11:19:56 +0000 (11:19 +0000)
src/monkey/seaspider/org/gnunet/seaspider/ExpressionExtractorVisitor.java

index 59afc51cecd993664f58cd3b666f9b06110d01f0..464beda6b16ff8e29d6d966e616340bbb165b7db 100644 (file)
@@ -480,11 +480,16 @@ public class ExpressionExtractorVisitor extends DepthFirstVisitor {
                current_expression = new ExpressionBuilder();
                n.f0.accept(this);
                if (n.f1.present()) {
+                       LineNumberInfo lin = LineNumberInfo.get(n);
+                       current_expression.commit(lin.lineEnd);
                        operator = true;
                        NodeSequence ns = (NodeSequence) n.f1.node;
                        ns.nodes.get(0).accept(this);
                        operator = false;
+                       old.push(current_expression.expression);
+                       current_expression = new ExpressionBuilder();
                        ns.nodes.get(1).accept(this);
+                       current_expression.commit(lin.lineEnd);
                }
                old.push(current_expression.expression);
                current_expression = old;