solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
contract C {
  function f() public pure returns (uint r) {
    assembly { function f() -> x { x := 1 } r := f() }
  }
  function g() public pure returns (uint r) {
    assembly { function f() -> x { x := 2 } r := f() }
  }
}
// ====
// compileViaYul: also
// ----
// f() -> 1
// g() -> 2