Skip to main content

CallGraphProvider

Trait CallGraphProvider 

Source
pub trait CallGraphProvider {
    // Required methods
    fn call_count(&self, from: &str, to: &str) -> usize;
    fn callees(&self, method: &str) -> HashSet<String>;
    fn callers(&self, method: &str) -> HashSet<String>;
}
Expand description

Call graph interface for similarity calculation

Required Methods§

Source

fn call_count(&self, from: &str, to: &str) -> usize

Get number of calls from method1 to method2

Source

fn callees(&self, method: &str) -> HashSet<String>

Get methods called by the given method

Source

fn callers(&self, method: &str) -> HashSet<String>

Get methods that call the given method

Implementors§