<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #copied {background-color:#ccccff;}
  tr.alt #copied {background-color:#bbbbf7;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="5">Commit in <b><tt>metaas/trunk/src</tt></b></td></tr>
<tr><td><tt>main/antlr/org/asdt/core/internal/antlr/<a href="#file1">AS3.g3</a></tt> </td><td></td><td align="right" id="added">+1</td><td align="right" id="removed">-1</td><td nowrap="nowrap" align="center">528 -&gt; 529</td></tr>
<tr class="alt"><td><tt>test/java/uk/co/badgersinfoil/metaas/<a href="#file2">ExpressionParseTests.java</a></tt> </td><td></td><td align="right" id="added">+17</td><td></td><td nowrap="nowrap" align="center">528 -&gt; 529</td></tr>
<tr><td></td><td></td><td align="right" id="added">+18</td><td align="right" id="removed">-1</td><td></td></tr>
</table>
<small id="info">2 modified files</small><br />
<pre class="comment">
Fixup token boundries for METHOD_CALL node, so that I can try Sergey's example in the test harness.
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">metaas/trunk/src/main/antlr/org/asdt/core/internal/antlr</span><br />
<div class="fileheader"><big><b>AS3.g3</b></big> <small id="info">528 -&gt; 529</small></div>
<pre class="diff"><small id="info">--- trunk/src/main/antlr/org/asdt/core/internal/antlr/AS3.g3        2007-09-02 17:03:09 UTC (rev 528)
+++ trunk/src/main/antlr/org/asdt/core/internal/antlr/AS3.g3        2007-09-08 20:44:45 UTC (rev 529)
@@ -991,7 +991,7 @@
</small></pre><pre class="diff" id="context">                 |        DOT e4xExpression
                 |        (LBRACK expression rb=RBRACK -&gt; ^(ARRAY_ACC $postfixExpression expression)) {demarcate(root_0.getFirstChild()); root_0.getFirstChild().setStopToken((LinkedListToken)$rb);}
                 |        E4X_DESC e4xExpression
</pre><pre class="diff" id="removed">-                |        arguments -&gt; ^(METHOD_CALL $postfixExpression arguments)
</pre><pre class="diff" id="added">+                |        (arguments -&gt; ^(METHOD_CALL $postfixExpression arguments)) {demarcate(root_0.getFirstChild());}
</pre><pre class="diff" id="context">                 )*
 
                 (         in=INC -&gt; ^(POST_INC[$in] $postfixExpression)
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname">metaas/trunk/src/test/java/uk/co/badgersinfoil/metaas</span><br />
<div class="fileheader"><big><b>ExpressionParseTests.java</b></big> <small id="info">528 -&gt; 529</small></div>
<pre class="diff"><small id="info">--- trunk/src/test/java/uk/co/badgersinfoil/metaas/ExpressionParseTests.java        2007-09-02 17:03:09 UTC (rev 528)
+++ trunk/src/test/java/uk/co/badgersinfoil/metaas/ExpressionParseTests.java        2007-09-08 20:44:45 UTC (rev 529)
@@ -1,8 +1,14 @@
</small></pre><pre class="diff" id="context"> package uk.co.badgersinfoil.metaas;
 
</pre><pre class="diff" id="added">+import java.io.StringWriter;
</pre><pre class="diff" id="context"> import uk.co.badgersinfoil.metaas.dom.ASBinaryExpression;
 import uk.co.badgersinfoil.metaas.dom.ASExpression;
 import uk.co.badgersinfoil.metaas.dom.ASPrefixExpression;
</pre><pre class="diff" id="added">+import uk.co.badgersinfoil.metaas.impl.AS3FragmentParser;
+import uk.co.badgersinfoil.metaas.impl.ASTASExpression;
+import uk.co.badgersinfoil.metaas.impl.ASTPrinter;
+import uk.co.badgersinfoil.metaas.impl.antlr.ASTDot;
+import uk.co.badgersinfoil.metaas.impl.antlr.LinkedListTree;
</pre><pre class="diff" id="context"> import junit.framework.TestCase;
 
 public class ExpressionParseTests extends TestCase {
</pre><pre class="diff"><small id="info">@@ -39,4 +45,15 @@
</small></pre><pre class="diff" id="context">                 ASPrefixExpression inc = (ASPrefixExpression)expr;
                 assertEquals(ASPrefixExpression.Op.PREINC, inc.getOperator());
         }
</pre><pre class="diff" id="added">+
+        public void testInvokeInvocation() {
+                ASExpression expr = fact.newExpression("a().b()");
+                StringWriter buff = new StringWriter();
+                LinkedListTree ast = ((ASTASExpression)expr).getAST();
+new ASTDot(System.out).dotify(ast);
+                CodeMirror.assertTokenStreamNotDisjoint(ast);
+                new ASTPrinter(buff).print(ast);
+                LinkedListTree parsed = AS3FragmentParser.parseExpr(buff.toString());
+                CodeMirror.assertASTMatch(ast, parsed);
+        }
</pre><pre class="diff" id="context"> }
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.12</small></center>
</body></html>