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

Method get_range

crates/compiler-source/src/lib.rs:27–29  ·  view source on GitHub ↗
(&'src self, range: TextRange)

Source from the content-addressed store, hash-verified

25 }
26
27 pub fn get_range(&'src self, range: TextRange) -> &'src str {
28 &self.text[range.start().to_usize()..range.end().to_usize()]
29 }
30}
31
32pub struct SourceCodeOwned {

Callers

nothing calls this directly

Calls 3

to_usizeMethod · 0.45
startMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected