diff options
author | chriseth <c@ethdev.com> | 2017-03-06 21:12:20 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-03-06 21:12:42 +0800 |
commit | f300bdb020ca55b05f1725dc2157fb636c1e4801 (patch) | |
tree | 25bbe9e6a2e8f9196236b3650939f2ddec71cf63 /libsolidity/ast/AST.h | |
parent | ca4e2933dd9b149653070815dd6255e3b8735d6d (diff) | |
download | dexon-solidity-f300bdb020ca55b05f1725dc2157fb636c1e4801.tar.gz dexon-solidity-f300bdb020ca55b05f1725dc2157fb636c1e4801.tar.zst dexon-solidity-f300bdb020ca55b05f1725dc2157fb636c1e4801.zip |
Move public constructor property into AST itself.
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r-- | libsolidity/ast/AST.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 743fdaa1..8031760d 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -356,6 +356,8 @@ public: /// Returns the constructor or nullptr if no constructor was specified. FunctionDefinition const* constructor() const; + /// @returns true iff the constructor of this contract is public (or non-existing). + bool constructorIsPublic() const; /// Returns the fallback function or nullptr if no fallback function was specified. FunctionDefinition const* fallbackFunction() const; |