fn collect_callee_funcs<'hir>(
hir: &'hir Hir<'hir>,
callee: &'hir Expr<'hir>,
bases: &[ContractId],
) -> Vec<&'hir Function<'hir>>Expand description
Collect the set of internal function candidates that a call expression may invoke.
Handles three callee shapes:
f(...)bareIdentwith function resolutionsContract.f(...)Memberwhose base resolves to aContractIdsuper.f(...)Memberwhose base is thesuperbuiltin; searches all linearized bases except the current contract (bases[0]), matching Solidity’s MRO dispatch semantics