从AST符号提取函数调用信息
(
&self,
symbol: &dyn crate::codegraph::treesitter::ast_instance_structs::AstSymbolInstance,
_file_path: &PathBuf,
)
| 534 | |
| 535 | /// 从AST符号提取函数调用信息 |
| 536 | fn _extract_function_call_info( |
| 537 | &self, |
| 538 | symbol: &dyn crate::codegraph::treesitter::ast_instance_structs::AstSymbolInstance, |
| 539 | _file_path: &PathBuf, |
| 540 | ) -> (String, usize) { |
| 541 | let call_name = symbol.name().to_string(); |
| 542 | let range = symbol.full_range(); |
| 543 | let line_number = range.start_point.row + 1; |
| 544 | |
| 545 | (call_name, line_number) |
| 546 | } |
| 547 | |
| 548 | /// 提取函数签名 |
| 549 | fn _extract_function_signature(&self, symbol: &dyn crate::codegraph::treesitter::ast_instance_structs::AstSymbolInstance) -> Option<String> { |
no test coverage detected