<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/java/uk/co/badgersinfoil/metaas/dom/<a href="#file1">ASWithStatement.java</a></tt> </td><td></td><td align="right" id="added">+33</td><td align="right" id="removed">-3</td><td nowrap="nowrap" align="center">449 -> 450</td></tr>
<tr class="alt"><td><tt>main/java/uk/co/badgersinfoil/metaas/impl/<a href="#file2">ASTASWithStatement.java</a></tt> </td><td></td><td align="right" id="added">+2</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center">449 -> 450</td></tr>
<tr><td><tt>test/java/uk/co/badgersinfoil/metaas/<a href="#file3">StatementTests.java</a></tt> </td><td></td><td align="right" id="added">+3</td><td align="right" id="removed">-3</td><td nowrap="nowrap" align="center">449 -> 450</td></tr>
<tr><td></td><td></td><td align="right" id="added">+38</td><td align="right" id="removed">-8</td><td></td></tr>
</table>
<small id="info">3 modified files</small><br />
<pre class="comment">
more API documentation for with-statement, and a renaming of the poorly named 'condition' property to 'scope'
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">metaas/trunk/src/main/java/uk/co/badgersinfoil/metaas/dom</span><br />
<div class="fileheader"><big><b>ASWithStatement.java</b></big> <small id="info">449 -> 450</small></div>
<pre class="diff"><small id="info">--- trunk/src/main/java/uk/co/badgersinfoil/metaas/dom/ASWithStatement.java        2007-03-15 08:27:52 UTC (rev 449)
+++ trunk/src/main/java/uk/co/badgersinfoil/metaas/dom/ASWithStatement.java        2007-03-15 08:29:30 UTC (rev 450)
@@ -1,7 +1,37 @@
</small></pre><pre class="diff" id="added">+/**
+ * ASReturnStatement.java
+ *
+ * Copyright (c) 2007 David Holroyd
+ */
+
</pre><pre class="diff" id="context"> package uk.co.badgersinfoil.metaas.dom;
</pre><pre class="diff" id="added">+/**
+ * An ActionScript <code>with (expr) { }</code> construct.
+ *
+ * <p>Instances can be created with {@link StatementContainer#newWith(String)}:</p>
+ * <pre class="eg">ASWithStatement stmt = method.newWith("myObject");
+ *stmt.newExprStmt("trace(property)");</pre>
+ * <p>which will result in ActionScript code like,</p>
+ * <pre class="eg">with (myObject)) {
+ *         trace(property);
+ *}</pre>
+ */
</pre><pre class="diff" id="context"> public interface ASWithStatement extends Statement, StatementContainer {
</pre><pre class="diff" id="removed">-        public String getConditionString();
-        public void setCondition(String string);
-}
</pre><pre class="diff" id="added">+        /**
+         * Returns a string representation of the expression who's value
+         * will be used as new scope for the execution of the statements in
+         * the body of this with-statement.
+         */
+        public String getScopeString();
+
+        /**
+         * Changes the expression who's value will be used as new scope for the
+         * execution of the statements in the body of this with-statement.
+         *
+         * @throws SyntaxException if the given string is not a valid
+         * ActionScript expression.
+         */
+        public void setScope(String string);
+}
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname">metaas/trunk/src/main/java/uk/co/badgersinfoil/metaas/impl</span><br />
<div class="fileheader"><big><b>ASTASWithStatement.java</b></big> <small id="info">449 -> 450</small></div>
<pre class="diff"><small id="info">--- trunk/src/main/java/uk/co/badgersinfoil/metaas/impl/ASTASWithStatement.java        2007-03-15 08:27:52 UTC (rev 449)
+++ trunk/src/main/java/uk/co/badgersinfoil/metaas/impl/ASTASWithStatement.java        2007-03-15 08:29:30 UTC (rev 450)
@@ -17,11 +17,11 @@
</small></pre><pre class="diff" id="context">                 return new ASTStatementList(ast.getLastChild());
        }
</pre><pre class="diff" id="removed">-        public String get<span id="removedchars">Condition</span>String() {
</pre><pre class="diff" id="added">+        public String get<span id="addedchars">Scope</span>String() {
</pre><pre class="diff" id="context">                 return ASTUtils.stringifyNode(ast.getFirstChild().getFirstChild());
        }
</pre><pre class="diff" id="removed">-        public void set<span id="removedchars">Condition</span>(String expr) {
</pre><pre class="diff" id="added">+        public void set<span id="addedchars">Scope</span>(String expr) {
</pre><pre class="diff" id="context">                 LinkedListTree cond = AS3FragmentParser.parseCondition(expr);
                ast.setChildWithTokens(INDEX_CONDITION, cond);
        }
</pre></div>
<hr /><a name="file3" /><div class="file">
<span class="pathname">metaas/trunk/src/test/java/uk/co/badgersinfoil/metaas</span><br />
<div class="fileheader"><big><b>StatementTests.java</b></big> <small id="info">449 -> 450</small></div>
<pre class="diff"><small id="info">--- trunk/src/test/java/uk/co/badgersinfoil/metaas/StatementTests.java        2007-03-15 08:27:52 UTC (rev 449)
+++ trunk/src/test/java/uk/co/badgersinfoil/metaas/StatementTests.java        2007-03-15 08:29:30 UTC (rev 450)
@@ -169,9 +169,9 @@
</small></pre><pre class="diff" id="context">         public void testWith() {
                ASWithStatement with = meth.newWith("foo");
                with.addStmt("trace(test)");
</pre><pre class="diff" id="removed">-                assertEquals("foo", with.getConditionString());
-                with.setCondition("bar");
-                assertEquals("bar", with.getConditionString());
</pre><pre class="diff" id="added">+                assertEquals("foo", with.getScopeString());
+                with.setScope("bar");
+                assertEquals("bar", with.getScopeString());
</pre><pre class="diff" id="context">         }
        public void testDeclaration() {
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.12</small></center>
</body></html>