+ # This function will call the attached block for each MMMethods
+ # in this program
+ fun with_each_methods
+ !action(m: MMMethod)
+ do
+ for m in main_module.mhe.greaters_and_self do
+ for c in m.local_classes do
+ # Process methods and attributes initialization
+ for p in c.local_local_properties do
+ if p isa MMMethod then
+ action(p)
+ end
+ end
+ end
+ end
+ end
+
+ # This function will call the attached block for each live local classes
+ # in this program
+ fun with_each_live_local_classes
+ !action(m: MMLocalClass)
+ do
+ for c in main_module.local_classes do
+ action(c)
+ end
+ end
+