Tim, I know that this doesn't answer your question, but one of the features that I'm building into Rowan is just this capability: * project definitions composed of package definitions * package definitions composed of class and class extension definitions * class and class extensions definitions composed of method definitions ... there are also definitions that cover what is now handled by Metacello: conditional packages, package grouping and project dependencies ... I am intending/hoping that Rowan will eventually be available for Pharo:) ... I have to finish Rowan for GemStone first:) Dale On 5/19/19 10:23 AM, Tim Mackinnon wrote:
Hi - is there a way to iterate over all the code in a package (or class or baseline) in a generic way (to pretty print out class definitions, and methods - including extensions ).
I was kind of hoping that with TonelWriter and Fileout and Critics that we would have a generic visitor mechanism but it seems that all of them just implemented it again - which misses a big opportunity for refactoring so that when you want to reason/print/manipulate code - it would be more straight forward.
Is there anything/anyone addressing this ? Or maybe Iâve missed an obvious trick somewhere?
Tim
Sent from my iPhone