diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-04-12 21:56:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 21:56:27 +0800 |
commit | 2244743545e8e5a75b4cce219605588cd29581b1 (patch) | |
tree | fc5b7077957e20489fada1b3388e39be2f958404 /lib/transform.js | |
parent | 04b89645058d85b8b67bb94fb9e39252160a0959 (diff) | |
download | tracifyjs-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.js | 5 |
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){ |