获取函数调用的函数
(&self, function_id: &uuid::Uuid)
| 179 | |
| 180 | /// 获取函数调用的函数 |
| 181 | pub fn get_function_callees(&self, function_id: &uuid::Uuid) -> Vec<FunctionInfo> { |
| 182 | let call_graph = self.call_graph.read(); |
| 183 | call_graph.get_callees(function_id) |
| 184 | .into_iter() |
| 185 | .map(|(func, _)| func.clone()) |
| 186 | .collect() |
| 187 | } |
| 188 | |
| 189 | /// 获取代码片段 |
| 190 | pub fn get_snippet(&self, entity_id: &uuid::Uuid, entity_type: &str) -> Result<String, String> { |
nothing calls this directly
no test coverage detected