(&self, args: impl IntoFuncArgs, vm: &VirtualMachine)
| 134 | |
| 135 | #[allow(dead_code)] |
| 136 | pub fn invoke_ref(&self, args: impl IntoFuncArgs, vm: &VirtualMachine) -> PyResult { |
| 137 | let (func, args) = match self { |
| 138 | Self::Function { target, func } => (func, args.into_method_args(target.clone(), vm)), |
| 139 | Self::Attribute(func) => (func, args.into_args(vm)), |
| 140 | }; |
| 141 | func.call(args, vm) |
| 142 | } |
| 143 | } |
nothing calls this directly
no test coverage detected