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

Method new_syntax_error

crates/vm/src/vm/vm_new.rs:685–691  ·  view source on GitHub ↗
(
        &self,
        error: &crate::compiler::CompileError,
        source: Option<&str>,
    )

Source from the content-addressed store, hash-verified

683
684 #[cfg(any(feature = "parser", feature = "compiler"))]
685 pub fn new_syntax_error(
686 &self,
687 error: &crate::compiler::CompileError,
688 source: Option<&str>,
689 ) -> PyBaseExceptionRef {
690 self.new_syntax_error_maybe_incomplete(error, source, false)
691 }
692
693 pub fn new_import_error(
694 &self,

Callers 14

shell_execFunction · 0.80
mainFunction · 0.80
runFunction · 0.80
evalFunction · 0.80
to_pyexceptionMethod · 0.80
import_fileFunction · 0.80
import_sourceFunction · 0.80
symtableFunction · 0.80
run_codeFunction · 0.80
compileFunction · 0.80
run_stringMethod · 0.80
run_block_exprMethod · 0.80

Tested by 1

test_nested_frozenFunction · 0.64