aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-01-19 23:24:25 +0800
committerGitHub <noreply@github.com>2017-01-19 23:24:25 +0800
commit09403dd5ede68e020cb2ff17a7958bf5b42979df (patch)
treebd271816f5861a19444d98ce37b963f8449b737a /libsolidity/ast
parentba7dcbc15ef3ee900a4adc00e421983d6256c91c (diff)
parent23a654ade8bb20fc2768e88b77059a14dce21635 (diff)
downloaddexon-solidity-09403dd5ede68e020cb2ff17a7958bf5b42979df.tar.gz
dexon-solidity-09403dd5ede68e020cb2ff17a7958bf5b42979df.tar.zst
dexon-solidity-09403dd5ede68e020cb2ff17a7958bf5b42979df.zip
Merge pull request #1587 from ethereum/fixFunctionVisibility
Fix default function type name visibility.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/AST.h5
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; }