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

Method _extract_function_call_info

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

从AST符号提取函数调用信息

(
        &self,
        symbol: &dyn crate::codegraph::treesitter::ast_instance_structs::AstSymbolInstance,
        _file_path: &PathBuf,
    )

Source from the content-addressed store, hash-verified

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

Callers 1

parse_fileMethod · 0.80

Calls 3

to_stringMethod · 0.80
nameMethod · 0.80
full_rangeMethod · 0.80

Tested by

no test coverage detected