pub struct CallExtractor {
pub keywords: HashSet<String>,
/* private fields */
}Expand description
Extracts function calls from code
Fields§
§keywords: HashSet<String>Implementations§
Source§impl CallExtractor
impl CallExtractor
Sourcepub fn extract_calls(&self, func: &FunctionDef) -> Result<Vec<String>>
pub fn extract_calls(&self, func: &FunctionDef) -> Result<Vec<String>>
Extract function calls from a function body
Reads the function definition and extracts all function calls within its body. Filters out language keywords and built-in functions.
Sourcepub fn find_callers(&self, func_name: &str) -> Result<Vec<CallerInfo>>
pub fn find_callers(&self, func_name: &str) -> Result<Vec<CallerInfo>>
Find all functions that call the given function
Searches the codebase for all calls to func_name and identifies
the calling function for each occurrence. Uses case variants for cross-language support.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallExtractor
impl RefUnwindSafe for CallExtractor
impl Send for CallExtractor
impl Sync for CallExtractor
impl Unpin for CallExtractor
impl UnwindSafe for CallExtractor
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