aboutsummaryrefslogtreecommitdiff
path: root/lib/transform.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-10-09 16:25:45 +0300
committerMihai Bazon <mihai@bazon.net>2012-10-09 18:20:39 +0300
commit1b0aab2ce9e7f429ceeda98ee0cda448085918ec (patch)
tree7bacc8e28f9af93cbc068ea7aa5256266a4d5333 /lib/transform.js
parent9ead49641da82de3a27ed813a056628f83da379c (diff)
downloadtracifyjs-1b0aab2ce9e7f429ceeda98ee0cda448085918ec.tar.gz
tracifyjs-1b0aab2ce9e7f429ceeda98ee0cda448085918ec.zip
added $propdoc to AST nodes and some cleanups
hopefully we can make the AST documentation self-generating
Diffstat (limited to 'lib/transform.js')
-rw-r--r--lib/transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transform.js b/lib/transform.js
index e19210f9..2ba004ee 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -65,7 +65,7 @@ TreeTransformer.prototype = new TreeWalker;
x = this;
descend(x, tw);
} else {
- x = this.clone();
+ tw.stack[tw.stack - 1] = x = this.clone();
descend(x, tw);
y = tw.after(x, in_list);
if (y !== undefined) x = y;