MCPcopy Create free account
hub / github.com/CodeBendKit/codeseek / get_function_callers

Method get_function_callers

rust-core/src/codegraph/repository.rs:172–178  ·  view source on GitHub ↗

获取函数的调用者

(&self, function_id: &uuid::Uuid)

Source from the content-addressed store, hash-verified

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> {

Callers

nothing calls this directly

Calls 1

get_callersMethod · 0.45

Tested by

no test coverage detected