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

Method _analyze_call_relations

rust-core/src/codegraph/parser.rs:1021–1030  ·  view source on GitHub ↗

分析调用关系

(&self, code_graph: &mut CodeGraph)

Source from the content-addressed store, hash-verified

1019
1020 /// 分析调用关系
1021 fn _analyze_call_relations(&self, code_graph: &mut CodeGraph) {
1022 // 使用TreeSitter解析器分析每个文件的调用关系
1023 for (file_path, functions) in &self.file_functions {
1024 if let Ok(symbols) = self.ts_parser.parse_file(file_path) {
1025 self._analyze_file_call_relations(&symbols, functions, code_graph);
1026 } else {
1027 warn!("Failed to parse file for call analysis: {}", file_path.display());
1028 }
1029 }
1030 }
1031
1032 /// 分析单个文件的调用关系
1033 fn _analyze_file_call_relations(

Callers 1

build_code_graphMethod · 0.80

Calls 2

parse_fileMethod · 0.45

Tested by

no test coverage detected