solang-parser 0.2.1

Solang Solidity Parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.0;

contract C {
    function() internal view returns (uint) x;

    function g() public { x = f; }
    function a() public pure returns (uint) { return f(); } // this should be inlined
    function h() public view returns (uint) { return x() + 1; }
    function f() internal pure returns (uint) { return 6; }
}