renamed getCanonicalSignature

added externalTypes instead of types for interface functions
added simple test

todo
testing
This commit is contained in:
Liana Husikyan
2015-03-25 13:59:46 +01:00
parent e3ea90e997
commit 701b34fbeb
6 changed files with 17 additions and 14 deletions
+5 -3
View File
@@ -1127,7 +1127,7 @@ MemberList const& FunctionType::getMembers() const
}
}
string FunctionType::getCanonicalSignature(std::string const& _name) const
string FunctionType::externalTypes(std::string const& _name) const
{
std::string funcName = _name;
if (_name == "")
@@ -1138,8 +1138,10 @@ string FunctionType::getCanonicalSignature(std::string const& _name) const
string ret = funcName + "(";
for (auto it = m_parameterTypes.cbegin(); it != m_parameterTypes.cend(); ++it)
ret += (*it)->toString() + (it + 1 == m_parameterTypes.cend() ? "" : ",");
{
solAssert(!!(*it)->externalType(), "Parameter should have external type");
ret += (*it)->externalType()->toString() + (it + 1 == m_parameterTypes.cend() ? "" : ",");
}
return ret + ")";
}