MCPcopy Index your code
hub / github.com/RustPython/RustPython / _disassemble_recursive

Function _disassemble_recursive

Lib/dis.py:835–847  ·  view source on GitHub ↗
(co, *, file=None, depth=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False)

Source from the content-addressed store, hash-verified

833 original_code=co.co_code, arg_resolver=arg_resolver, formatter=formatter)
834
835def _disassemble_recursive(co, *, file=None, depth=None, show_caches=False, adaptive=False, show_offsets=False, show_positions=False):
836 disassemble(co, file=file, show_caches=show_caches, adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions)
837 if depth is None or depth > 0:
838 if depth is not None:
839 depth = depth - 1
840 for x in co.co_consts:
841 if hasattr(x, 'co_code'):
842 print(file=file)
843 print("Disassembly of %r:" % (x,), file=file)
844 _disassemble_recursive(
845 x, file=file, depth=depth, show_caches=show_caches,
846 adaptive=adaptive, show_offsets=show_offsets, show_positions=show_positions
847 )
848
849
850def _make_labels_map(original_code, exception_entries=()):

Callers 2

disFunction · 0.85
_disassemble_strFunction · 0.85

Calls 3

disassembleFunction · 0.85
hasattrFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected