aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-26 16:48:29 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-29 04:46:16 +0800
commit3f5eb965840b57a3d8922c39d1e9f75266993db6 (patch)
tree54b52a820fa2cfdc8b5bf22c35b1ca6ac16466d7 /AST.cpp
parent468f26b1cce189ea47af9f99b8efe0834a3eed8c (diff)
downloaddexon-solidity-3f5eb965840b57a3d8922c39d1e9f75266993db6.tar.gz
dexon-solidity-3f5eb965840b57a3d8922c39d1e9f75266993db6.tar.zst
dexon-solidity-3f5eb965840b57a3d8922c39d1e9f75266993db6.zip
Various small fixes for Sol Automatic Accessors
Diffstat (limited to 'AST.cpp')
-rw-r--r--AST.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/AST.cpp b/AST.cpp
index ca76d023..38adebf9 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -519,17 +519,6 @@ void Literal::checkTypeRequirements()
BOOST_THROW_EXCEPTION(createTypeError("Invalid literal value."));
}
-
-bool ParamDescription::operator!=(ParamDescription const& _other) const
-{
- return m_description.first == _other.getName() && m_description.second == _other.getType();
-}
-
-std::ostream& ParamDescription::operator<<(std::ostream& os) const
-{
- return os << m_description.first << ":" << m_description.second;
-}
-
std::string ParamDescription::getName() const
{
return m_description.first;
@@ -540,7 +529,6 @@ std::string ParamDescription::getType() const
return m_description.second;
}
-
ASTPointer<ASTString> FunctionDescription::getDocumentation() const
{
auto function = dynamic_cast<FunctionDefinition const*>(m_description.second);
@@ -575,7 +563,7 @@ vector<ParamDescription> const FunctionDescription::getParameters() 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;