获取函数的调用者
(&self, function_id: &uuid::Uuid)
| 170 | |
| 171 | /// 获取函数的调用者 |
| 172 | pub fn get_function_callers(&self, function_id: &uuid::Uuid) -> Vec<FunctionInfo> { |
| 173 | let call_graph = self.call_graph.read(); |
| 174 | call_graph.get_callers(function_id) |
| 175 | .into_iter() |
| 176 | .map(|(func, _)| func.clone()) |
| 177 | .collect() |
| 178 | } |
| 179 | |
| 180 | /// 获取函数调用的函数 |
| 181 | pub fn get_function_callees(&self, function_id: &uuid::Uuid) -> Vec<FunctionInfo> { |
nothing calls this directly
no test coverage detected