diff options
author | chriseth <c@ethdev.com> | 2017-01-19 18:10:09 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-01-19 18:11:40 +0800 |
commit | 23a654ade8bb20fc2768e88b77059a14dce21635 (patch) | |
tree | bd271816f5861a19444d98ce37b963f8449b737a /libsolidity/ast | |
parent | ba7dcbc15ef3ee900a4adc00e421983d6256c91c (diff) | |
download | dexon-solidity-23a654ade8bb20fc2768e88b77059a14dce21635.tar.gz dexon-solidity-23a654ade8bb20fc2768e88b77059a14dce21635.tar.zst dexon-solidity-23a654ade8bb20fc2768e88b77059a14dce21635.zip |
Fix default function type name visibility.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/AST.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 4af64963..6e81892b 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -867,7 +867,10 @@ public: std::vector<ASTPointer<VariableDeclaration>> const& parameterTypes() const { return m_parameterTypes->parameters(); } std::vector<ASTPointer<VariableDeclaration>> const& returnParameterTypes() const { return m_returnTypes->parameters(); } - Declaration::Visibility visibility() const { return m_visibility; } + Declaration::Visibility visibility() const + { + return m_visibility == Declaration::Visibility::Default ? Declaration::Visibility::Internal : m_visibility; + } bool isDeclaredConst() const { return m_isDeclaredConst; } bool isPayable() const { return m_isPayable; } |