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

Class SourceCode

crates/compiler-source/src/lib.rs:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5#[derive(Clone)]
6pub struct SourceCode<'src> {
7 pub path: &'src str,
8 pub text: &'src str,
9 pub index: LineIndex,
10}
11
12impl<'src> SourceCode<'src> {
13 pub fn new(path: &'src str, text: &'src str) -> Self {

Callers 1

parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected