Return lineno dict for all code objects reachable from code.
(code, strs)
| 339 | return linenos |
| 340 | |
| 341 | def _find_lines(code, strs): |
| 342 | """Return lineno dict for all code objects reachable from code.""" |
| 343 | # get all of the lineno information from the code of this scope level |
| 344 | linenos = _find_lines_from_code(code, strs) |
| 345 | |
| 346 | # and check the constants for references to other code objects |
| 347 | for c in code.co_consts: |
| 348 | if inspect.iscode(c): |
| 349 | # find another code object, so recurse into it |
| 350 | linenos.update(_find_lines(c, strs)) |
| 351 | return linenos |
| 352 | |
| 353 | def _find_strings(filename, encoding=None): |
| 354 | """Return a dict of possible docstring positions. |
no test coverage detected
searching dependent graphs…