aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-23 00:40:22 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-29 04:46:16 +0800
commit3cc04923015cc3f40ad285fba5ed71464bd9ff2a (patch)
tree5d32036c4a1aa893348af4e907f8b1453bd4b3e3 /Compiler.h
parent9759eec2da1d75c70b8cd3eff3fe1bffade6854d (diff)
downloaddexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar
dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.gz
dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.bz2
dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.lz
dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.xz
dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.tar.zst
dexon-solidity-3cc04923015cc3f40ad285fba5ed71464bd9ff2a.zip
Work in progress for state variable accessors
- Changed the code so that a generic declaration with the combination of a function type can be used wherer a function definition was used before - Since using an std::pair everywhere is really tiring with this commit I am in the process of abstracting it into a function
Diffstat (limited to 'Compiler.h')
-rw-r--r--Compiler.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Compiler.h b/Compiler.h
index b6547646..f40339b0 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -56,10 +56,10 @@ private:
std::function<FunctionDefinition const*(std::string const&)> const& _resolveFunctionOverride,
std::function<ModifierDefinition const*(std::string const&)> const& _resolveModifierOverride);
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.
- unsigned appendCalldataUnpacker(FunctionDefinition const& _function, bool _fromMemory = false);
- void appendReturnValuePacker(FunctionDefinition const& _function);
+ /// Creates code that unpacks the arguments for the given function represented by a vector of TypePointers.
+ /// From memory if @a _fromMemory is true, otherwise from call data. @returns the size of the data in bytes.
+ unsigned appendCalldataUnpacker(TypePointers const& _typeParameters, bool _fromMemory = false);
+ void appendReturnValuePacker(TypePointers const& _typeParameters);
void registerStateVariables(ContractDefinition const& _contract);