Yes there is: just write some code (AppleScript or JXA will do) to recursively “walk” through a macro and act accordingly when it finds a comment action.
I’ve done this - the recursively walking through bit - for another private project and demonstrated its use for other purposes in this thread for example;
I also use this technique to “prettify” macros (changing colours and renaming macro parameters), to error-check macros and a variety of other stuff in the Checkpoint system I released some time ago to aid with KM debugging.
If there’s a serious request for this, I’ll produce a macro to achieve it since I already have the code to do it but I’m not inclined to waste time on a whim.
You can roll your own @macdevign_mac but as we’ve discussed in other threads, it’s not trivial