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

Method line_index

crates/compiler-source/src/lib.rs:18–20  ·  view source on GitHub ↗
(&self, offset: TextSize)

Source from the content-addressed store, hash-verified

16 }
17
18 pub fn line_index(&self, offset: TextSize) -> LineNumber {
19 self.index.line_index(offset)
20 }
21
22 pub fn source_location(&self, offset: TextSize) -> SourceLocation {
23 self.index

Callers 4

ast_to_objectMethod · 0.80
line_index_startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected