获取函数的调用者
(&self, function_id: &Uuid)
| 93 | |
| 94 | /// 获取函数的调用者 |
| 95 | pub fn get_callers(&self, function_id: &Uuid) -> Vec<&CallRelation> { |
| 96 | self.call_relations |
| 97 | .iter() |
| 98 | .filter(|rel| rel.callee_id == *function_id) |
| 99 | .collect() |
| 100 | } |
| 101 | |
| 102 | /// 获取函数调用的函数 |
| 103 | pub fn get_callees(&self, function_id: &Uuid) -> Vec<&CallRelation> { |
no outgoing calls