MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / new

Method new

src/pyspector/_rust_core/src/ast_parser.rs:23–30  ·  view source on GitHub ↗
(file_path: String, content: String, ast_json: String)

Source from the content-addressed store, hash-verified

21
22impl PythonFile {
23 pub fn new(file_path: String, content: String, ast_json: String) -> Self {
24 let ast: Option<AstNode> = serde_json::from_str(&ast_json).ok();
25 Self {
26 file_path,
27 content,
28 ast,
29 }
30 }
31}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected