aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-23 02:37:54 +0800
committerChristian <c@ethdev.com>2015-02-23 02:37:54 +0800
commita17108e3bc20b8826e5189d51594b1c5186a4184 (patch)
treee404efdb2efc3ed010057a13a33e79b2ae483cf3 /AST.h
parentc62828c8ff8248d0b7f714d4334d5a1c41b028e2 (diff)
downloaddexon-solidity-a17108e3bc20b8826e5189d51594b1c5186a4184.tar.gz
dexon-solidity-a17108e3bc20b8826e5189d51594b1c5186a4184.tar.zst
dexon-solidity-a17108e3bc20b8826e5189d51594b1c5186a4184.zip
Replaced "inheritable" by "internal".
Diffstat (limited to 'AST.h')
-rw-r--r--AST.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/AST.h b/AST.h
index 064457d3..138abf36 100644
--- a/AST.h
+++ b/AST.h
@@ -133,7 +133,7 @@ class Declaration: public ASTNode
{
public:
/// Visibility ordered from restricted to unrestricted.
- enum class Visibility { Default, Private, Inheritable, Public, External };
+ enum class Visibility { Default, Private, Internal, Public, External };
Declaration(Location const& _location, ASTPointer<ASTString> const& _name,
Visibility _visibility = Visibility::Default):
@@ -144,7 +144,7 @@ public:
Visibility getVisibility() const { return m_visibility == Visibility::Default ? getDefaultVisibility() : m_visibility; }
bool isPublic() const { return getVisibility() >= Visibility::Public; }
bool isVisibleInContract() const { return getVisibility() != Visibility::External; }
- bool isVisibleInDerivedContracts() const { return isVisibleInContract() && getVisibility() >= Visibility::Inheritable; }
+ bool isVisibleInDerivedContracts() const { return isVisibleInContract() && getVisibility() >= Visibility::Internal; }
/// @returns the scope this declaration resides in. Can be nullptr if it is the global scope.
/// Available only after name and type resolution step.
@@ -459,7 +459,7 @@ public:
bool isIndexed() const { return m_isIndexed; }
protected:
- Visibility getDefaultVisibility() const override { return Visibility::Inheritable; }
+ Visibility getDefaultVisibility() const override { return Visibility::Internal; }
private:
ASTPointer<TypeName> m_typeName; ///< can be empty ("var")