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

Method set_source_range

crates/codegen/src/compile.rs:9900–9902  ·  view source on GitHub ↗
(&mut self, range: TextRange)

Source from the content-addressed store, hash-verified

9898 }
9899
9900 const fn set_source_range(&mut self, range: TextRange) {
9901 self.current_source_range = range;
9902 }
9903
9904 fn get_source_line_number(&mut self) -> OneIndexed {
9905 self.source_file

Callers 15

compile_subscriptMethod · 0.80
compile_statementMethod · 0.80
compile_try_statementMethod · 0.80
compile_function_bodyMethod · 0.80
compile_function_defMethod · 0.80
compile_withMethod · 0.80
compile_forMethod · 0.80
compile_compareMethod · 0.80
compile_jump_ifMethod · 0.80
compile_expressionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected