(op_offset_to_line, op_offset, firstlineno, search=False)
| 63 | |
| 64 | |
| 65 | def _get_line(op_offset_to_line, op_offset, firstlineno, search=False): |
| 66 | op_offset_original = op_offset |
| 67 | while op_offset >= 0: |
| 68 | ret = op_offset_to_line.get(op_offset) |
| 69 | if ret is not None: |
| 70 | return ret - firstlineno |
| 71 | if not search: |
| 72 | return ret |
| 73 | else: |
| 74 | op_offset -= 1 |
| 75 | raise AssertionError("Unable to find line for offset: %s.Info: %s" % (op_offset_original, op_offset_to_line)) |
| 76 | |
| 77 | |
| 78 | def debug(s): |
no test coverage detected