diff options
author | chriseth <c@ethdev.com> | 2015-11-26 18:37:29 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-11-27 00:49:02 +0800 |
commit | 09b2f9acb7f5f47f53c4b56fdf0f86946551bf12 (patch) | |
tree | 5cd1fdff6a7285f46d352503a7e8d115d1950ede /libsolidity/analysis/ReferencesResolver.h | |
parent | c806b9bcdb26fe031da94b8cdb270cb3c75b8af9 (diff) | |
download | dexon-solidity-09b2f9acb7f5f47f53c4b56fdf0f86946551bf12.tar.gz dexon-solidity-09b2f9acb7f5f47f53c4b56fdf0f86946551bf12.tar.zst dexon-solidity-09b2f9acb7f5f47f53c4b56fdf0f86946551bf12.zip |
Resolve type names using regular AST visit.
Diffstat (limited to 'libsolidity/analysis/ReferencesResolver.h')
-rw-r--r-- | libsolidity/analysis/ReferencesResolver.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/analysis/ReferencesResolver.h b/libsolidity/analysis/ReferencesResolver.h index 6f5ced8c..a2d71dc3 100644 --- a/libsolidity/analysis/ReferencesResolver.h +++ b/libsolidity/analysis/ReferencesResolver.h @@ -60,13 +60,13 @@ public: private: virtual bool visit(Block const&) override { return m_resolveInsideCode; } virtual bool visit(Identifier const& _identifier) override; - virtual bool visit(UserDefinedTypeName const& _typeName) override; + virtual bool visit(ElementaryTypeName const& _typeName) override; + virtual void endVisit(UserDefinedTypeName const& _typeName) override; + virtual void endVisit(Mapping const& _typeName) override; + virtual void endVisit(ArrayTypeName const& _typeName) override; virtual bool visit(Return const& _return) override; - virtual void endVisit(NewExpression const& _new) override; virtual void endVisit(VariableDeclaration const& _variable) override; - TypePointer typeFor(TypeName const& _typeName); - /// Adds a new error to the list of errors. void typeError(SourceLocation const& _location, std::string const& _description); |