def dump_code(self, options, f=sys.stdout):
    classes = self.get_classes()
    if classes:
        for cls in classes:
            if cls.is_abstract():
                continue
            cls.dump(f=f)
            methods = cls.get_methods()
            dc = (options.dump_code or options.dump_all)
            ddi = (options.debug or options.dump_all)
            for method in methods:
                if (options.dump_code or options.dump_all):
                    method.dump(f=f, dump_code=dc, dump_debug_info=ddi)
            f.write('\n')
def dump_code(self, options, f=sys.stdout):
    classes = self.get_classes()
    if classes:
        for cls in classes:
            if cls.is_abstract():
                continue
            cls.dump(f=f)
            methods = cls.get_methods()
            dc = (options.dump_code or options.dump_all)
            ddi = (options.debug or options.dump_all)
            for method in methods:
                if (options.dump_code or options.dump_all):
                    method.dump(f=f, dump_code=dc, dump_debug_info=ddi)
            f.write('\n')