aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-04-27 19:07:25 +0800
committerLiana Husikyan <liana@ethdev.com>2015-04-27 19:08:32 +0800
commit1087d34a665ad2d3595d8a5259d69e8f3d52eebe (patch)
treed544b73e03dd7bedfe0b105f9dea245ce10cdde1 /Types.cpp
parent88536f90e8403239380c280176250390bab2cd8d (diff)
downloaddexon-solidity-1087d34a665ad2d3595d8a5259d69e8f3d52eebe.tar.gz
dexon-solidity-1087d34a665ad2d3595d8a5259d69e8f3d52eebe.tar.zst
dexon-solidity-1087d34a665ad2d3595d8a5259d69e8f3d52eebe.zip
saved returnParameterNames in FunctionType constructor
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Types.cpp b/Types.cpp
index 40b0dba6..7a5b309d 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -1143,7 +1143,7 @@ FunctionTypePointer FunctionType::externalFunctionType() const
return FunctionTypePointer();
retParamTypes.push_back(type->externalType());
}
- return make_shared<FunctionType>(paramTypes, retParamTypes, m_parameterNames, m_location, m_arbitraryParameters);
+ return make_shared<FunctionType>(paramTypes, retParamTypes, m_parameterNames, m_returnParameterNames, m_location, m_arbitraryParameters);
}
MemberList const& FunctionType::getMembers() const
@@ -1165,6 +1165,7 @@ MemberList const& FunctionType::getMembers() const
parseElementaryTypeVector({"uint"}),
TypePointers{copyAndSetGasOrValue(false, true)},
strings(),
+ strings(),
Location::SetValue,
false,
m_gasSet,
@@ -1180,6 +1181,7 @@ MemberList const& FunctionType::getMembers() const
parseElementaryTypeVector({"uint"}),
TypePointers{copyAndSetGasOrValue(true, false)},
strings(),
+ strings(),
Location::SetGas,
false,
m_gasSet,
@@ -1267,7 +1269,8 @@ TypePointer FunctionType::copyAndSetGasOrValue(bool _setGas, bool _setValue) con
return make_shared<FunctionType>(
m_parameterTypes,
m_returnParameterTypes,
- strings(),
+ m_parameterNames,
+ m_returnParameterNames,
m_location,
m_arbitraryParameters,
m_gasSet || _setGas,