aboutsummaryrefslogtreecommitdiff
path: root/lib/transform.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-07-14 13:24:09 +0300
committerMihai Bazon <mihai@bazon.net>2013-07-14 13:24:09 +0300
commit9243b0cb9dd8469b6f4dbbf6ff9508e56f0e6fc2 (patch)
tree1d2dc8ad8f2ca55874bc989c6fe27d55c9f6d737 /lib/transform.js
parentfc9ba323c475b107503f408af7fca19cb31a20f4 (diff)
downloadtracifyjs-9243b0cb9dd8469b6f4dbbf6ff9508e56f0e6fc2.tar.gz
tracifyjs-9243b0cb9dd8469b6f4dbbf6ff9508e56f0e6fc2.zip
Apply transformer to AST_VarDef's name
Fix #237
Diffstat (limited to 'lib/transform.js')
-rw-r--r--lib/transform.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/transform.js b/lib/transform.js
index 7a61e5f3..c3c34f58 100644
--- a/lib/transform.js
+++ b/lib/transform.js
@@ -159,6 +159,7 @@ TreeTransformer.prototype = new TreeWalker;
});
_(AST_VarDef, function(self, tw){
+ self.name = self.name.transform(tw);
if (self.value) self.value = self.value.transform(tw);
});