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

Method _lineno_in_frame

Lib/bdb.py:500–508  ·  view source on GitHub ↗

Return True if the line number is in the frame's code object.

(self, lineno, frame)

Source from the content-addressed store, hash-verified

498 return False
499
500 def _lineno_in_frame(self, lineno, frame):
501 """Return True if the line number is in the frame's code object.
502 """
503 code = frame.f_code
504 if lineno < code.co_firstlineno:
505 return False
506 if code not in self.code_linenos:
507 self.code_linenos[code] = set(lineno for _, _, lineno in code.co_lines())
508 return lineno in self.code_linenos[code]
509
510 # Derived classes should override the user_* methods
511 # to gain control.

Callers 1

break_anywhereMethod · 0.95

Calls 2

setFunction · 0.85
co_linesMethod · 0.80

Tested by

no test coverage detected