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

Class CallGraph

src/pyspector/_rust_core/src/graph/call_graph_builder.rs:5–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4#[derive(Debug, Default)]
5pub struct CallGraph<'a> {
6 /// Maps function ID (file::function_name) to its AST node
7 pub functions: HashMap<String, &'a AstNode>,
8 /// Maps function ID to set of functions it calls
9 pub graph: HashMap<String, HashSet<String>>,
10 /// Maps file path to file content for line extraction
11 pub file_contents: HashMap<String, String>,
12}
13
14/// Returns true if a file path should be excluded from taint analysis.
15/// Excluded: test files, documentation code, and example code.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected