Skip to main content

match_this_call

Function match_this_call 

Source
fn match_this_call<'hir>(
    expr: &'hir Expr<'hir>,
    callable: &HashMap<Symbol, Vec<&'hir Function<'hir>>>,
) -> Option<MatchedCall<'hir>>
Expand description

Returns Some(...) if expr is a this.<name>(args) call where <name> resolves (via overload resolution by arity) to a view/pure external-interface function on the current contract.