aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-01 09:41:14 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-01 09:41:14 +0800
commit82bcb7e33a4a00be8145588615c0d7a812fd4ce2 (patch)
treed4940591385832188eb1ebefa002bb7601bf9d6b /ExpressionCompiler.h
parentec7a9bf919c393b10a91f0bc77fe2932c66a0c6d (diff)
downloaddexon-solidity-82bcb7e33a4a00be8145588615c0d7a812fd4ce2.tar.gz
dexon-solidity-82bcb7e33a4a00be8145588615c0d7a812fd4ce2.tar.zst
dexon-solidity-82bcb7e33a4a00be8145588615c0d7a812fd4ce2.zip
Code generation for mapping state variable accessor
- Work in progress
Diffstat (limited to 'ExpressionCompiler.h')
-rw-r--r--ExpressionCompiler.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ExpressionCompiler.h b/ExpressionCompiler.h
index caecbfe8..d93ab28e 100644
--- a/ExpressionCompiler.h
+++ b/ExpressionCompiler.h
@@ -97,6 +97,10 @@ private:
unsigned appendArgumentCopyToMemory(TypePointers const& _types,
std::vector<ASTPointer<Expression const>> const& _arguments,
unsigned _memoryOffset = 0);
+ /// Appends code that copies a type to memory.
+ /// @returns the number of bytes copied to memory
+ unsigned appendTypeCopyToMemory(Type const& _expectedType, TypePointer const& _type,
+ Location const& _location, unsigned _memoryOffset = 0);
/// Appends code that evaluates a single expression and copies it to memory (with optional offset).
/// @returns the number of bytes copied to memory
unsigned appendExpressionCopyToMemory(Type const& _expectedType, Expression const& _expression,