Skip to main content

resolve_member_overloads

Function resolve_member_overloads 

Source
fn resolve_member_overloads<'hir>(
    gcx: Gcx<'hir>,
    hir: &'hir Hir<'hir>,
    current_contract: Option<ContractId>,
    callee: &'hir Expr<'hir>,
    arg_count: usize,
) -> Vec<FunctionId>
Expand description

Returns all overloads of the called member function that match the call’s argument count. Matching by arity narrows overload candidates; the caller flags the call if any candidate mutates state, since Solar does not resolve which specific overload was selected.