foundry_evm_traces::debug

Function parse_function_from_loc

Source
fn parse_function_from_loc(
    source: &SourceData,
    loc: &SourceElement,
) -> Option<String>
Expand description

Tries to parse the function name from the source code and detect the contract name which contains the given function.

Returns string in the format Contract::function.