diff options
Diffstat (limited to 'lib/transform.js')
-rw-r--r-- | lib/transform.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/transform.js b/lib/transform.js index bc08436e..dcf90dfa 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -147,6 +147,15 @@ TreeTransformer.prototype = new TreeWalker; } DEF(AST_Arrow, transform_arrow); DEF(AST_AsyncArrow, transform_arrow); + DEF(AST_Class, function(self, tw) { + if (self.name) self.name = self.name.transform(tw); + if (self.extends) self.extends = self.extends.transform(tw); + self.properties = do_list(self.properties, tw); + }); + DEF(AST_ClassProperty, function(self, tw) { + if (self.key instanceof AST_Node) self.key = self.key.transform(tw); + if (self.value) self.value = self.value.transform(tw); + }); DEF(AST_Call, function(self, tw) { self.expression = self.expression.transform(tw); self.args = do_list(self.args, tw); |