aboutsummaryrefslogtreecommitdiff
path: root/lib/transform.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-04-12 21:56:27 +0800
committerGitHub <noreply@github.com>2017-04-12 21:56:27 +0800
commit2244743545e8e5a75b4cce219605588cd29581b1 (patch)
treefc5b7077957e20489fada1b3388e39be2f958404 /lib/transform.js
parent04b89645058d85b8b67bb94fb9e39252160a0959 (diff)
downloadtracifyjs-2244743545e8e5a75b4cce219605588cd29581b1.tar.gz
tracifyjs-2244743545e8e5a75b4cce219605588cd29581b1.zip
convert `AST_Seq` from binary tree to array (#1460)
- rename `AST_Seq` to `AST_Sequence` - raise default sequences_limit from 200 to 800
Diffstat (limited to 'lib/transform.js')
-rw-r--r--lib/transform.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/transform.js b/lib/transform.js
index 3018e8ff..112e5f28 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -174,9 +174,8 @@ TreeTransformer.prototype = new TreeWalker;
self.args = do_list(self.args, tw);
});
- _(AST_Seq, function(self, tw){
- self.car = self.car.transform(tw);
- self.cdr = self.cdr.transform(tw);
+ _(AST_Sequence, function(self, tw){
+ self.expressions = do_list(self.expressions, tw);
});
_(AST_Dot, function(self, tw){