| 3 | |
| 4 | #[derive(Debug, Default)] |
| 5 | pub 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. |
nothing calls this directly
no outgoing calls
no test coverage detected