aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-20 22:58:04 +0800
committerChristian <c@ethdev.com>2015-01-20 22:58:04 +0800
commitd854e56789c4bf2f5caca563dd0e660dababf181 (patch)
tree79b755313238b71fe44ae01504ac95ef6c38e338 /Compiler.h
parent417f9c03d03a9fa52665bd238a42081d55df62c9 (diff)
downloaddexon-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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Compiler.h b/Compiler.h
index ea05f38e..2bae6b39 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -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.