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

Method current_location

crates/vm/src/frame.rs:828–830  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

826 }
827
828 pub fn current_location(&self) -> SourceLocation {
829 self.code.locations[self.lasti() as usize - 1].0
830 }
831
832 /// Get the previous frame pointer for signal-safe traceback walking.
833 pub fn previous_frame(&self) -> *const Frame {

Callers 2

dump_frame_from_refFunction · 0.80
f_linenoMethod · 0.80

Calls 1

lastiMethod · 0.80

Tested by

no test coverage detected