获取函数调用的函数
(&self, function_id: &Uuid)
| 101 | |
| 102 | /// 获取函数调用的函数 |
| 103 | pub fn get_callees(&self, function_id: &Uuid) -> Vec<&CallRelation> { |
| 104 | self.call_relations |
| 105 | .iter() |
| 106 | .filter(|rel| rel.caller_id == *function_id) |
| 107 | .collect() |
| 108 | } |
| 109 | |
| 110 | /// 获取调用链(递归) |
| 111 | pub fn get_call_chain(&self, function_id: &Uuid, max_depth: usize) -> Vec<Vec<Uuid>> { |
no outgoing calls