(&self, vm: &crate::VirtualMachine)
| 44 | #[cfg(any(feature = "parser", feature = "codegen"))] |
| 45 | impl crate::convert::ToPyException for (CompileError, Option<&str>) { |
| 46 | fn to_pyexception(&self, vm: &crate::VirtualMachine) -> crate::builtins::PyBaseExceptionRef { |
| 47 | vm.new_syntax_error(&self.0, self.1) |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | #[cfg(any(feature = "parser", feature = "codegen"))] |
nothing calls this directly
no test coverage detected