aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-12-15 18:43:59 +0800
committerchriseth <c@ethdev.com>2015-12-15 18:43:59 +0800
commit591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0 (patch)
tree282c36887814420e2fa86e132587ec9f192f30ad /libsolidity/ast/AST.h
parent98684cca9035c754adcdc99fd196716cb7802efd (diff)
parent53da78e6091d9bb0229b4a54a0042e23487550db (diff)
downloaddexon-solidity-591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0.tar
dexon-solidity-591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0.tar.gz
dexon-solidity-591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0.tar.bz2
dexon-solidity-591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0.tar.lz
dexon-solidity-591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0.tar.xz
dexon-solidity-591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0.tar.zst
dexon-solidity-591a4f1ff44af20fce9bafebf0fa0607e2bdfcc0.zip
Merge pull request #288 from chriseth/import_contexts
Do not clutter importee when importing.
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r--libsolidity/ast/AST.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h
index 1217d945..75cb9ab2 100644
--- a/libsolidity/ast/AST.h
+++ b/libsolidity/ast/AST.h
@@ -142,6 +142,7 @@ public:
virtual void accept(ASTConstVisitor& _visitor) const override;
ASTString const& identifier() const { return *m_identifier; }
+ virtual ImportAnnotation& annotation() const override;
private:
ASTPointer<ASTString> m_identifier;
@@ -172,8 +173,8 @@ public:
/// @returns the scope this declaration resides in. Can be nullptr if it is the global scope.
/// Available only after name and type resolution step.
- Declaration const* scope() const { return m_scope; }
- void setScope(Declaration const* _scope) { m_scope = _scope; }
+ ASTNode const* scope() const { return m_scope; }
+ void setScope(ASTNode const* _scope) { m_scope = _scope; }
virtual bool isLValue() const { return false; }
virtual bool isPartOfExternalInterface() const { return false; }
@@ -190,7 +191,7 @@ protected:
private:
ASTPointer<ASTString> m_name;
Visibility m_visibility;
- Declaration const* m_scope;
+ ASTNode const* m_scope;
};
/**