This is a little tricky because we can't rewrite FunctionExpressions that are the value of a MemberDefinition. This means we have to filter these out while continuing the rewrite the other FunctionExpressions. In order to get .toString() working correctly on methods we'll have to override the toString() methods immediately after the ClassDeclaration. An edge case that we'll have to deal with is ClassExpressions.
This is a little tricky because we can't rewrite
FunctionExpression
s that are thevalue
of aMemberDefinition
. This means we have to filter these out while continuing the rewrite the otherFunctionExpression
s. In order to get.toString()
working correctly on methods we'll have to override thetoString()
methods immediately after theClassDeclaration
. An edge case that we'll have to deal with isClassExpression
s.