diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-27 22:43:28 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-01-29 04:46:16 +0800 |
commit | ff91ab96ea843bd8ab9a7c57fd799add2ebc9873 (patch) | |
tree | 5ef16db4959a2bd8fdd773586f06c0b691704ce8 | |
parent | 6e793b24996610c5a88a0aafb9fad365d9f12b00 (diff) | |
download | dexon-solidity-ff91ab96ea843bd8ab9a7c57fd799add2ebc9873.tar dexon-solidity-ff91ab96ea843bd8ab9a7c57fd799add2ebc9873.tar.gz dexon-solidity-ff91ab96ea843bd8ab9a7c57fd799add2ebc9873.tar.bz2 dexon-solidity-ff91ab96ea843bd8ab9a7c57fd799add2ebc9873.tar.lz dexon-solidity-ff91ab96ea843bd8ab9a7c57fd799add2ebc9873.tar.xz dexon-solidity-ff91ab96ea843bd8ab9a7c57fd799add2ebc9873.tar.zst dexon-solidity-ff91ab96ea843bd8ab9a7c57fd799add2ebc9873.zip |
Fixes after rebasing on develop
-rw-r--r-- | AST.cpp | 4 | ||||
-rwxr-xr-x | AST.h | 4 | ||||
-rw-r--r-- | ExpressionCompiler.h | 3 |
3 files changed, 7 insertions, 4 deletions
@@ -563,7 +563,7 @@ vector<ParamDescription> const FunctionDescription::getParameters() const if (function) { vector<ParamDescription> paramsDescription; - for (auto const& param: function->getReturnParameters()) + for (auto const& param: function->getParameters()) paramsDescription.push_back(ParamDescription(param->getName(), param->getType()->toString())); return paramsDescription; @@ -580,7 +580,7 @@ vector<ParamDescription> const FunctionDescription::getReturnParameters() const if (function) { vector<ParamDescription> paramsDescription; - for (auto const& param: function->getParameters()) + for (auto const& param: function->getReturnParameters()) paramsDescription.push_back(ParamDescription(param->getName(), param->getType()->toString())); return paramsDescription; @@ -182,6 +182,10 @@ struct FunctionDescription FunctionDescription(std::shared_ptr<FunctionType const> _type, Declaration const* _decl): m_description(_type, _decl){} + /// constructor for a constructor's function definition. Used only inside mix. + FunctionDescription(Declaration const* _def): + m_description(nullptr, _def){} + FunctionDescription(): m_description(nullptr, nullptr){} diff --git a/ExpressionCompiler.h b/ExpressionCompiler.h index 7189bef9..bff2cd7c 100644 --- a/ExpressionCompiler.h +++ b/ExpressionCompiler.h @@ -130,8 +130,7 @@ private: /// also removes the reference from the stack (note that is does not reset the type to @a NONE). /// @a _expression is the current expression, used for error reporting. void retrieveValue(Expression const& _expression, bool _remove = false) const; - /// Convenience function to retrive Value from Storage. Specific version of - /// @ref retrieveValue + /// Convenience function to retrive Value from Storage. Specific version of @ref retrieveValue void retrieveValueFromStorage(Expression const& _expression, bool _remove = false) const; /// Stores a value (from the stack directly beneath the reference, which is assumed to /// be on the top of the stack, if any) in the lvalue and removes the reference. |