pub struct FunctionFinder { /* private fields */ }Expand description
Finds function definitions in code using pattern matching
Implementations§
Source§impl FunctionFinder
impl FunctionFinder
Sourcepub fn find_function(&self, func_name: &str) -> Option<FunctionDef>
pub fn find_function(&self, func_name: &str) -> Option<FunctionDef>
Find a single function definition, preferring exact matches
This method first tries to find an exact match for the function name. If that fails, it tries case-insensitive variants (snake_case, camelCase, PascalCase).
§Arguments
func_name- The name of the function to find
§Returns
The best matching FunctionDef, or None if not found.
Sourcepub fn find_definition(&self, func_name: &str) -> Result<Vec<FunctionDef>>
pub fn find_definition(&self, func_name: &str) -> Result<Vec<FunctionDef>>
Find all definitions of a function by name
Searches the codebase for function definitions matching the given name. Returns all found definitions with their file locations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunctionFinder
impl RefUnwindSafe for FunctionFinder
impl Send for FunctionFinder
impl Sync for FunctionFinder
impl Unpin for FunctionFinder
impl UnwindSafe for FunctionFinder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more