Permalink
Browse files

Expressions builder no longer has clone(). Cloning expression trees i…

…s more complicated and needs more thought. Probably need a way of serializing and deserializing expression trees (or better yet, parsing the string representation back into a tree)
  • Loading branch information...
1 parent 04e47e8 commit 46bd68287d8ff79fe3123c702cc4c75869a5a11a @hiddentao committed Nov 3, 2012
Showing with 5 additions and 10 deletions.
  1. +1 −1 docs/squel.html
  2. +2 −4 squel.js
  3. +1 −1 squel.min.js
  4. +1 −1 src/squel.coffee
  5. +0 −3 test/expressions.test.coffee
View
@@ -36,7 +36,7 @@
<p>Expressions can be nested. Nested expression contains can themselves contain nested expressions.
When rendered a nested expression will be fully contained within brackets.</p>
-<p>All the build methods in this object return the object instance for chained method calling purposes.</p> </td> <td class="code"> <div class="highlight"><pre><span class="k">class</span> <span class="nx">Expression</span> <span class="k">extends</span> <span class="nx">Cloneable</span></pre></div> </td> </tr> <tr id="section-8"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-8">&#182;</a> </div> <p>The expression tree.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">tree: </span><span class="kc">null</span></pre></div> </td> </tr> <tr id="section-9"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-9">&#182;</a> </div> <p>The part of the expression tree we're currently working on.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">current: </span><span class="kc">null</span></pre></div> </td> </tr> <tr id="section-10"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-10">&#182;</a> </div> <p>Initialise the expression.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">constructor: </span><span class="o">-&gt;</span>
+<p>All the build methods in this object return the object instance for chained method calling purposes.</p> </td> <td class="code"> <div class="highlight"><pre><span class="k">class</span> <span class="nx">Expression</span></pre></div> </td> </tr> <tr id="section-8"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-8">&#182;</a> </div> <p>The expression tree.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">tree: </span><span class="kc">null</span></pre></div> </td> </tr> <tr id="section-9"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-9">&#182;</a> </div> <p>The part of the expression tree we're currently working on.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">current: </span><span class="kc">null</span></pre></div> </td> </tr> <tr id="section-10"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-10">&#182;</a> </div> <p>Initialise the expression.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nv">constructor: </span><span class="o">-&gt;</span>
<span class="vi">@tree =</span>
<span class="nv">parent: </span><span class="kc">null</span>
<span class="nv">nodes: </span><span class="p">[]</span>
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 46bd682

Please sign in to comment.