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

Method get_callers

rust-core/src/codegraph/graph.rs:95–100  ·  view source on GitHub ↗

获取函数的调用者

(&self, function_id: &Uuid)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls