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

Method get_function

crates/jit/tests/common.rs:302–308  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

300 }
301
302 pub fn get_function(&self, name: &str) -> Function {
303 if let Some(StackValue::Function(function)) = self.locals.get(name) {
304 function.clone()
305 } else {
306 panic!("There was no function named {name}")
307 }
308 }
309}
310
311macro_rules! jit_function {

Callers 1

mainFunction · 0.80

Calls 2

getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected