trying to fix function argument parsing
authorChristian Grothoff <christian@grothoff.org>
Thu, 19 May 2011 08:12:07 +0000 (08:12 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 19 May 2011 08:12:07 +0000 (08:12 +0000)
src/monkey/seaspider/org/gnunet/seaspider/ExpressionExtractorVisitor.java

index 464beda6b16ff8e29d6d966e616340bbb165b7db..def981ea35ef8e8771a93be89595c0973007cdc4 100644 (file)
@@ -579,7 +579,7 @@ public class ExpressionExtractorVisitor extends DepthFirstVisitor {
                                NodeSequence ns = (NodeSequence) nc.choice;
                                ns.elementAt(1).accept(this);
                                LineNumberInfo lin = LineNumberInfo.get(n);
-                               current_expression.commit(lin.colEnd);
+                               current_expression.commit(lin.lineEnd);
                                old.push("[");
                                old.push(current_expression.expression);
                                old.push("]");
@@ -591,6 +591,8 @@ public class ExpressionExtractorVisitor extends DepthFirstVisitor {
                                current_expression = new ExpressionBuilder();
                                NodeSequence ns = (NodeSequence) nc.choice;
                                ns.elementAt(1).accept(this);
+                               LineNumberInfo lin = LineNumberInfo.get (ns.elementAt(1));
+                               current_expression.commit(lin.lineEnd);
                                old.push("(");
                                old.push(current_expression.expression);
                                old.push(")");