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

Method line_index_start

crates/codegen/src/symboltable.rs:1195–1200  ·  view source on GitHub ↗
(&self, range: TextRange)

Source from the content-addressed store, hash-verified

1193 }
1194
1195 fn line_index_start(&self, range: TextRange) -> u32 {
1196 self.source_file
1197 .to_source_code()
1198 .line_index(range.start())
1199 .get() as _
1200 }
1201
1202 fn scan_statements(&mut self, statements: &[ast::Stmt]) -> SymbolTableResult {
1203 for statement in statements {

Callers 5

scan_annotation_innerMethod · 0.80
scan_statementMethod · 0.80
scan_expressionMethod · 0.80
scan_comprehensionMethod · 0.80

Calls 3

line_indexMethod · 0.80
getMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected