Hi!
Firstofall, I think this Transmogrify idea is great. I plan to realize some special refactorings on top
of it. Therefore I got the following feature request.
It would be great to have the source code comments as part of the tree. I propose this because I
would like to analyse the comments especially for methods and classes.
A possible solution for this might be to include a CommentDef class into the symtab package that
could be accessed as part of the normal ast. That shouldn't be too complicated to realize, I think
from my poor understanding of the parser and grammar internals. An advanced solution would be to
have an access method at class ClassDef to get the comment for the method.
For any modification it would be suitable to have the option to set the comment text via the ast
tree node like any other changes to the ast.
What do you think of this idea? Do you have any proposals how I might be able to realize it myself?
Best regards,
Martin