aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast/AST.h
diff options
context:
space:
mode:
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r--libsolidity/ast/AST.h24
1 files changed, 4 insertions, 20 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h
index 0c37dad3..b267b6a4 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;
};
/**
@@ -1151,23 +1152,6 @@ private:
std::vector<ASTPointer<Expression>> m_components;
};
-class InlineArrayExpression: public Expression
-{
-public:
- InlineArrayExpression(
- SourceLocation const& _location,
- std::vector<ASTPointer<Expression>> const& _components
- ):
- Expression(_location), m_components(_components) {}
- virtual void accept(ASTVisitor& _visitor) override;
- virtual void accept(ASTConstVisitor& _visitor) const override;
-
- std::vector<ASTPointer<Expression>> const& components() const { return m_components; }
-
-private:
- std::vector<ASTPointer<Expression>> m_components;
-};
-
/**
* Operation involving a unary operator, pre- or postfix.
* Examples: ++i, delete x or !true