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

Method find_functions_by_name

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

根据函数名查找函数

(&self, name: &str)

Source from the content-addressed store, hash-verified

77
78 /// 根据函数名查找函数
79 pub fn find_functions_by_name(&self, name: &str) -> Vec<&FunctionInfo> {
80 self.function_names
81 .get(name)
82 .map(|ids| ids.iter().filter_map(|id| self.functions.get(id)).collect())
83 .unwrap_or_default()
84 }
85
86 /// 根据文件路径查找函数
87 pub fn find_functions_by_file(&self, file_path: &PathBuf) -> Vec<&FunctionInfo> {

Callers 15

mainFunction · 0.45
execute_callersFunction · 0.45
execute_calleesFunction · 0.45
_find_callee_functionMethod · 0.45
search_entitiesMethod · 0.45
_find_callee_functionMethod · 0.45
find_callersMethod · 0.45
find_calleesMethod · 0.45
find_call_chainsMethod · 0.45
search_snippetsMethod · 0.45

Calls 1

getMethod · 0.80