aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ExpressionCompiler.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-04-27 07:02:10 +0800
committerchriseth <c@ethdev.com>2016-05-04 04:41:18 +0800
commit7ea3d950d7001c12567c99aebdfc0fb73e46721e (patch)
tree6213ce320dd19905f041f585d624d1914f8ff157 /libsolidity/codegen/ExpressionCompiler.h
parentaa4dcbb88cd0096a79fa975ec353dfbc4e341f53 (diff)
downloaddexon-solidity-7ea3d950d7001c12567c99aebdfc0fb73e46721e.tar.gz
dexon-solidity-7ea3d950d7001c12567c99aebdfc0fb73e46721e.tar.zst
dexon-solidity-7ea3d950d7001c12567c99aebdfc0fb73e46721e.zip
Allow calling internal functions of libraries.
Internal functions of libraries can be called as if the library were a base contract of the calling contract. As the calling convention for internal functions is to not create a new call context, the code of these functions will be pulled into the context of the caller, duplicating their code. This might pull in code of further internal or even private functions. The use case for such functions is to allow libraries which can operate on memory types such that these types can also be modified in place.
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.h')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.h b/libsolidity/codegen/ExpressionCompiler.h
index f00b24e8..43a92a10 100644
--- a/libsolidity/codegen/ExpressionCompiler.h
+++ b/libsolidity/codegen/ExpressionCompiler.h
@@ -78,7 +78,7 @@ private:
virtual bool visit(BinaryOperation const& _binaryOperation) override;
virtual bool visit(FunctionCall const& _functionCall) override;
virtual bool visit(NewExpression const& _newExpression) override;
- virtual void endVisit(MemberAccess const& _memberAccess) override;
+ virtual bool visit(MemberAccess const& _memberAccess) override;
virtual bool visit(IndexAccess const& _indexAccess) override;
virtual void endVisit(Identifier const& _identifier) override;
virtual void endVisit(Literal const& _literal) override;