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

Method into_codegen_error

crates/codegen/src/symboltable.rs:246–252  ·  view source on GitHub ↗
(self, source_path: String)

Source from the content-addressed store, hash-verified

244
245impl SymbolTableError {
246 pub fn into_codegen_error(self, source_path: String) -> CodegenError {
247 CodegenError {
248 location: self.location,
249 error: CodegenErrorType::SyntaxError(self.error),
250 source_path,
251 }
252 }
253}
254
255type SymbolTableResult<T = ()> = Result<T, SymbolTableError>;

Callers 6

_compile_symtableFunction · 0.80
compile_programFunction · 0.80
compile_program_singleFunction · 0.80
compile_block_expressionFunction · 0.80
compile_expressionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected