solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
contract C {
    bytes1 a;

    function f(bytes32 x) public returns (uint256, uint256, uint256) {
        return (x.length, bytes16(uint128(2)).length, a.length + 7);
    }
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f(bytes32): "789" -> 32, 16, 8