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

Method add_call_relation

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

添加调用关系

(&mut self, relation: CallRelation)

Source from the content-addressed store, hash-verified

59
60 /// 添加调用关系
61 pub fn add_call_relation(&mut self, relation: CallRelation) {
62 let is_resolved = relation.is_resolved;
63 self.call_relations.push(relation);
64
65 // 更新统计信息
66 if is_resolved {
67 self.stats.resolved_calls += 1;
68 } else {
69 self.stats.unresolved_calls += 1;
70 }
71 }
72
73 /// 添加图关系
74 pub fn add_graph_relation(&mut self, relation: GraphRelation) {

Callers 15

mainFunction · 0.45
_analyze_file_callsMethod · 0.45
_create_test_callsMethod · 0.45
to_petgraphMethod · 0.45
_analyze_file_callsMethod · 0.45

Calls

no outgoing calls