Skip to main content

Module query

Module query 

Source

Functionsยง

callees_of
For a given function name, returns all functions it directly calls.
callers_of
For a given function name, returns all functions that directly call it.
collect_call_sites_in_subtree ๐Ÿ”’
Collects all NodeKind::CallSite nodes in the AST subtree of root.
find_by_kind
Returns all nodes of the given kind.
find_calls_to
Returns all call sites that target a function with the given func_name.
get_enclosing_function ๐Ÿ”’
Walks up Edge::AstChild edges from start until a NodeKind::Function node is found.
unused_functions
Returns all functions that are never the target of a direct call.