Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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)]
6
pub struct SourceCode<'src> {
7
pub path: &'src str,
8
pub text: &'src str,
9
pub index: LineIndex,
10
}
11
12
impl<
'src> SourceCode<'
src> {
13
pub fn new(path: &
'src str, text: &'
src str) -> Self {
Callers
1
parse
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected