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

Method get_source_line_number

crates/codegen/src/compile.rs:9904–9908  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

9902 }
9903
9904 fn get_source_line_number(&mut self) -> OneIndexed {
9905 self.source_file
9906 .to_source_code()
9907 .line_index(self.current_source_range.start())
9908 }
9909
9910 fn mark_generator(&mut self) {
9911 self.current_code_info().flags |= bytecode::CodeFlags::GENERATOR

Callers 6

push_outputMethod · 0.80
compile_statementMethod · 0.80
compile_class_defMethod · 0.80

Calls 2

line_indexMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected