MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / iterate

Function iterate

_pydevd_bundle/pydevd_api.py:81–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79 return _get_code_lines(code)
80
81 def iterate():
82 # First, get all line starts for this code object. This does not include
83 # bodies of nested class and function definitions, as they have their
84 # own objects.
85 for _, lineno in dis.findlinestarts(code):
86 if lineno is not None:
87 yield lineno
88
89 # For nested class and function definitions, their respective code objects
90 # are constants referenced by this object.
91 for const in code.co_consts:
92 if isinstance(const, types.CodeType) and const.co_filename == code.co_filename:
93 for lineno in _get_code_lines(const):
94 yield lineno
95
96 return iterate()
97

Callers 1

_get_code_linesFunction · 0.85

Calls 1

_get_code_linesFunction · 0.85

Tested by

no test coverage detected