分析调用关系
(&self, code_graph: &mut CodeGraph)
| 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( |
no test coverage detected