diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-15 20:22:50 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-14 22:58:04 +0800 |
commit | 5b5367dc1237634886a8ccf1029d95b83a0d8e63 (patch) | |
tree | 517f18eb028060f64efd424a8b0560e07e14f3c6 /libsolidity/ast/AST.h | |
parent | 1c85ba10e13879f680579031234c911099433596 (diff) | |
download | dexon-solidity-5b5367dc1237634886a8ccf1029d95b83a0d8e63.tar dexon-solidity-5b5367dc1237634886a8ccf1029d95b83a0d8e63.tar.gz dexon-solidity-5b5367dc1237634886a8ccf1029d95b83a0d8e63.tar.bz2 dexon-solidity-5b5367dc1237634886a8ccf1029d95b83a0d8e63.tar.lz dexon-solidity-5b5367dc1237634886a8ccf1029d95b83a0d8e63.tar.xz dexon-solidity-5b5367dc1237634886a8ccf1029d95b83a0d8e63.tar.zst dexon-solidity-5b5367dc1237634886a8ccf1029d95b83a0d8e63.zip |
Warn if no visibility is specified on contract functions.
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r-- | libsolidity/ast/AST.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index cecc2f04..75b8e946 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -180,6 +180,7 @@ public: /// @returns the declared name. ASTString const& name() const { return *m_name; } + bool noVisibilitySpecified() const { return m_visibility == Visibility::Default; } Visibility visibility() const { return m_visibility == Visibility::Default ? defaultVisibility() : m_visibility; } bool isPublic() const { return visibility() >= Visibility::Public; } virtual bool isVisibleInContract() const { return visibility() != Visibility::External; } |