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

Method error_ranged

crates/codegen/src/compile.rs:721–731  ·  view source on GitHub ↗
(&mut self, error: CodegenErrorType, range: TextRange)

Source from the content-addressed store, hash-verified

719 }
720
721 fn error_ranged(&mut self, error: CodegenErrorType, range: TextRange) -> CodegenError {
722 let location = self
723 .source_file
724 .to_source_code()
725 .source_location(range.start(), PositionEncoding::Utf8);
726 CodegenError {
727 error,
728 location: Some(location),
729 source_path: self.source_file.name().to_owned(),
730 }
731 }
732
733 /// Get the SymbolTable for the current scope.
734 fn current_symbol_table(&self) -> &SymbolTable {

Callers 4

errorMethod · 0.80
compile_statementMethod · 0.80
compile_storeMethod · 0.80

Calls 5

source_locationMethod · 0.80
SomeClass · 0.50
startMethod · 0.45
to_ownedMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected