diff options
author | Christian <c@ethdev.com> | 2015-01-20 22:58:04 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-20 22:58:04 +0800 |
commit | d854e56789c4bf2f5caca563dd0e660dababf181 (patch) | |
tree | 79b755313238b71fe44ae01504ac95ef6c38e338 /Compiler.h | |
parent | 417f9c03d03a9fa52665bd238a42081d55df62c9 (diff) | |
download | dexon-solidity-d854e56789c4bf2f5caca563dd0e660dababf181.tar.gz dexon-solidity-d854e56789c4bf2f5caca563dd0e660dababf181.tar.zst dexon-solidity-d854e56789c4bf2f5caca563dd0e660dababf181.zip |
Include virtual function overrides in constructor context.
Diffstat (limited to 'Compiler.h')
-rw-r--r-- | Compiler.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -21,6 +21,7 @@ */ #include <ostream> +#include <functional> #include <libsolidity/ASTVisitor.h> #include <libsolidity/CompilerContext.h> @@ -49,7 +50,9 @@ private: std::vector<ASTPointer<Expression>> const& _arguments); void appendConstructorCall(FunctionDefinition const& _constructor); /// Recursively searches the call graph and returns all functions referenced inside _nodes. - std::set<FunctionDefinition const*> getFunctionsCalled(std::set<ASTNode const*> const& _nodes); + /// _resolveOverride is called to resolve virtual function overrides. + std::set<FunctionDefinition const*> getFunctionsCalled(std::set<ASTNode const*> const& _nodes, + std::function<FunctionDefinition const*(std::string const&)> const& _resolveOverride); void appendFunctionSelector(ContractDefinition const& _contract); /// Creates code that unpacks the arguments for the given function, from memory if /// @a _fromMemory is true, otherwise from call data. @returns the size of the data in bytes. |