prepare AST_Destructuring for the Ents

This commit is contained in:
Fábio Santos 2015-08-13 02:56:57 +01:00
parent 9863f0efa3
commit 0e5129de9b

View File

@ -163,6 +163,10 @@ TreeTransformer.prototype = new TreeWalker;
if (self.value) self.value = self.value.transform(tw);
});
_(AST_Destructuring, function(self, tw) {
self.names = do_list(self.names, tw);
});
_(AST_Lambda, function(self, tw){
if (self.name) self.name = self.name.transform(tw);
self.argnames = do_list(self.argnames, tw);