solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pragma abicoder               v2;

contract C {
    struct S { uint a; uint8 b; uint8 c; bytes2 d; }
    function f(S memory s) public pure returns (uint a, uint b, uint c, uint d) {
        a = s.a;
        b = s.b;
        c = s.c;
        d = uint16(s.d);
    }
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f((uint256,uint8,uint8,bytes2)): 1, 2, 3, "ab" -> 1, 2, 3, 0x6162