neo-devpack-solidity 0.22.0

Production-focused Solidity-to-NeoVM compilation system
Documentation
1
2
3
4
5
6
7
8
9
10
fn typeof_argument(expr: &Expression) -> Option<&Expression> {
    if let Expression::FunctionCall(_, func, args) = expr {
        if args.len() == 1 && matches!(func.as_ref(), Expression::Variable(id) if id.name == "type")
        {
            return Some(&args[0]);
        }
    }

    None
}